Access locations in Google+

356 views
Skip to first unread message

bdanders

unread,
Jul 11, 2013, 10:58:02 AM7/11/13
to tas...@googlegroups.com
Until the recent Google Maps update that removed Latitude from the app, I was able to go directly to a friends location in Latitude browsing the url latitude://latitude/friends/location/my.frie...@gmail.com

I'd like to extend this functionality to the 'Locations' screen in Google+ but so far I haven't had any luck finding a way to do that. Does anybody have any thoughts on how I might get this to work again?

Tony Karakashian

unread,
Jul 31, 2013, 5:41:39 PM7/31/13
to tas...@googlegroups.com
Hey, look at that, someone having the same issue as me! :)  I, too, mourn the loss of Latitude.  It just worked.  I've made some progress, but I don't think it's possible. Specifically, while watching the logs while switching to it, I found that they're launched using the activity com.google.android.apps.plus/.locations.FriendLocationsActivity.  This one appears to not be launchable by other apps. 

If I run:

am start -a android.intent.action.MAIN -n com.google.android.apps.plus/.locations.FriendLocationsActivity

I get:

Starting: Intent { act=android.intent.action.MAIN cmp=com.google.android.apps.plus/.locations.FriendLocationsActivity }
java.lang.SecurityException: Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL

This indicates an issue since 4.2 which added multi-user support.  However, if I run it with the "--user 0" switch, we get:

Starting: Intent { act=android.intent.action.MAIN cmp=com.google.android.apps.plus/.locations.FriendLocationsActivity }
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.google.android.apps.plus/.locations.FriendLocationsActivity } from null (pid=981, uid=10155) not exported from uid 10206

Which is also normal.  The way I've worked around this in the past is to run the am command as root and typically it fires the app right up the way I want.  If I run the command as root, it DOES launch Google+ directly into the Locations screen, however it constantly asks me to turn on Location Sharing (which is already on). If I click "Sure, turn it on", I get a toast that I'm not signed into Google+...almost as if it were running as a different user. :)   I did try launching the app directly and then calling the activity, thinking it might just reuse the already running app, but no such luck. 

So, if anyone can expand on how to work around such limitations, hopefully they'll share.  One other item I'm thinking of just now...when Google moved Locations into Plus, a lot of folks using custom ROMs had issues.  It would show an image of the people on the screen, but no map under them to make it useful.  The only workaround was to make Google+ a system app and move its libraries into system, too.  There is the possibility my having done that is exacerbating the issue, so you might want to try the above steps if you're running a stock ROM.  Another option I've seen, but am no interested in trying, is to move Tasker to /system/app.  Typically, apps that don't export some activities will allow system apps to run them.  Might be an exercise worth trying someday, but not in the mood to do it anytime soon...

-T

Brandon Horwath

unread,
Jul 31, 2013, 7:31:25 PM7/31/13
to tas...@googlegroups.com
See post title, "trouble with Google".

bdanders

unread,
Aug 1, 2013, 9:50:30 AM8/1/13
to tas...@googlegroups.com
I get the same problem prompt to enable sharing. I've pretty much decided to just make my own version of latitude with Tasker and AutoRemote. I really only want to share locations with my wife anyway, so it's pretty simple to just get location every half hour and send it to the other phone to be displayed on a map scene.

bdanders

unread,
Aug 19, 2013, 1:07:56 PM8/19/13
to tas...@googlegroups.com
I found an intent that will open the locations page in the latest version of Google+.

Action: com.google.android.apps.plus.LOCATION_PLUS_MAP
Category: Default
Package: com.google.android.apps.plus
Target: Activity

I'd still like to find an extra that will go to a specific person, but it's a start.

Tony Karakashian

unread,
Aug 19, 2013, 1:56:08 PM8/19/13
to tas...@googlegroups.com
That did it!  Nice, thanks!




Tony Karakashian | TEDxRochester | 585-230-7169


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/i4PS01GcBFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Peter Radcliffe

unread,
Aug 19, 2013, 3:03:10 PM8/19/13
to tas...@googlegroups.com
bdanders <the.bryce...@gmail.com> probably said:
>I found an intent that will open the locations page in the latest version
>of Google+.
>
>Action: com.google.android.apps.plus.LOCATION_PLUS_MAP
>Category: Default
>Package: com.google.android.apps.plus
>Target: Activity
>
>I'd still like to find an extra that will go to a specific person, but it's
>a start.

That's something I was just wanting the other day. Thanks!

P.

--
pir

Steve Kaminski

unread,
Aug 21, 2013, 2:50:59 PM8/21/13
to tas...@googlegroups.com
Thank you for this. I also needed it.

Stefan Sarzio

unread,
Oct 24, 2013, 9:14:40 AM10/24/13
to tas...@googlegroups.com
This doesn't work for me. I used c&p. What might I have done wrong?

Or is it maybe due to a new version of Google+?

Raymond Cool

unread,
Oct 24, 2013, 10:32:56 AM10/24/13
to tas...@googlegroups.com
This still works for me. My G+ app is up to date. So it's probably something else.

bdanders

unread,
Oct 24, 2013, 12:52:46 PM10/24/13
to tas...@googlegroups.com
It still works fine for me as well. What do you mean when you said you used "c&p"?

Dave Fisher

unread,
Oct 24, 2013, 4:46:23 PM10/24/13
to tas...@googlegroups.com
Copy & Paste


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

bdanders

unread,
Oct 24, 2013, 4:58:09 PM10/24/13
to tas...@googlegroups.com
Try importing this task.


On Thursday, October 24, 2013 9:14:40 AM UTC-4, Stefan Sarzio wrote:
G__Locations.tsk.xml

Marta Hintz

unread,
Oct 24, 2013, 7:07:36 PM10/24/13
to tas...@googlegroups.com
Nice - works well!
Marta

Stefan Sarzio

unread,
Oct 25, 2013, 2:48:50 AM10/25/13
to tas...@googlegroups.com
Thanks a lot, Bryce - works like a charm!

I still don't know where my mistake was...but I'm happy that it works!


2013/10/24 bdanders <the.bryce...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/i4PS01GcBFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages