Using ActivityStarter to start third party apps: Error 601

804 views
Skip to first unread message

Audio & Video Guide

unread,
Sep 22, 2014, 11:55:56 AM9/22/14
to mitappinv...@googlegroups.com
Hi everyone,

I'm using ActivityStarter to start a thirdparty app: OsmAnd. (the free version).
I'm receiving an "Error 601: No corresponding activity was found". The OsmAnd app is installed on my Android device where I'm running my AppInventor app and I've tried several configurations for ActivityStarter. Can someone explain what are the possible causes for Error 601? I've not been successful in obtaining the right cause on the net.

i try this configuration:

Action: android.intent.action.MAIN
ActivityClass: net.osmand.activities.MapActivity
ActivityPackage: net.osmand

the sorce code for OsmAnd is here:

can someone help to find what is the correct configuration?

another qustion:
what is the data Uri if i want to open the map in the app with Place marker (i have lot + lan)?

thanks.


Taifun

unread,
Sep 22, 2014, 1:30:18 PM9/22/14
to mitappinv...@googlegroups.com
i try this configuration:
Action: android.intent.action.MAIN
ActivityClass: net.osmand.activities.MapActivity
ActivityPackage: net.osmand

where did you find that configuration?
probably it works, if you use ActivityPackage: net.osmand.activities
if not see here how to find it out yourself here Using the Activity Starter in chapter "Figuring out how to set the properties"

what is the data Uri if i want to open the map in the app with Place marker (i have lot + lan)?
see here

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Audio & Video Guide

unread,
Sep 22, 2014, 5:30:56 PM9/22/14
to mitappinv...@googlegroups.com
Thanks Taifun, but i didnt anderstend how to find the correct configuration.
i try your suggestion to use ActivityPackage: net.osmand.activities and still not working....error 601.
i look at Using the Activity Starter in chapter "Figuring out how to set the properties":

Figuring out how to set the properties

If you can't find documentation for the activities you want to start, one way to figure out how to set the properties is to start up the activity manually and look at what appears in the Android System Log. For example, if you use YouTube to play a video, you'll see in the log:

I/ActivityManager( 86): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.youtube.com/watch?v=8ADwPLSFeY8 flg=0x3800000 cmp=com.google.android.youtube/.PlayerActivity }


is start up the activity manually meas to open the app?

where can i find the Android System Log?

i will appreciate your answer. 

Taifun

unread,
Sep 22, 2014, 5:37:43 PM9/22/14
to mitappinv...@googlegroups.com
is start up the activity manually meas to open the app?
open OsmAnd and watch the log 

where can i find the Android System Log?
more info see here  http://ai2.appinventor.mit.edu/reference/other/testing.html in chapter "System Logs"
Taifun

Audio & Video Guide

unread,
Sep 23, 2014, 1:40:10 PM9/23/14
to
hi taifun,
i did what you tell me and able to create android system log file (attached).
i  looking for: "cmp=" and not found something relevant for OsmAnd app.

i try this configuration (find from the log file):

Action: android.intent.action.ACTIVITY_STATE
ActivityClass: net.osmand.plus.activities
ActivityPackage: net.osmand


still get error 601.

please HELP ;)

Thanks.
logcat.txt
Message has been deleted
Message has been deleted

Audio & Video Guide

unread,
Sep 23, 2014, 1:43:42 PM9/23/14
to mitappinv...@googlegroups.com
logcat.zip

Taifun

unread,
Sep 23, 2014, 4:27:03 PM9/23/14
to mitappinv...@googlegroups.com
V/SmartFaceService - 3rd party pause( 2918): onReceive [android.intent.action.ACTIVITY_STATE/net.osmand/create]
V/SmartFaceService - 3rd party pause( 2918): onReceive [android.intent.action.ACTIVITY_STATE/net.osmand/pause]
D/ActivityManager( 2918): Trying to launch net.osmand/.plus.activities.MapActivity
this seems to be not a LogCat log and does not seem to help therefore?

I now prepared something for you here

Taifun



Audio & Video Guide

unread,
Sep 23, 2014, 5:45:35 PM9/23/14
to mitappinv...@googlegroups.com
Taifun You are grate.
big progress.
now when i click the button OsmAnd app is open (Main Memu).
i want it open with place marker (lan + lot).
i try this but not working - only the main menu screen is open.
i put in DataUri: geo:lan,lot....also not responding.

any suggestions?

Thanks very much.

Taifun

unread,
Sep 23, 2014, 6:12:08 PM9/23/14
to mitappinv...@googlegroups.com

Audio & Video Guide

unread,
Sep 24, 2014, 1:50:27 AM9/24/14
to
hi;
i try it also and still OsmAnd is open in main menu only.

i think mybee the ActivityClass should be change.

now the configurations is:

ActionActivityClassActivityPackageDataUri
android.intent.action.MAINnet.osmand.plus.activities.MainMenuActivitynet.osmandhttp://download.osmand.net/go?lat=41.890649&lon=12.490986&z=10

if you click (computer) on DataUri value it will open with "google maps".

i try to do this:

ActionActivityClassActivityPackageDataUri
android.intent.action.MAIN

http://maps.google.com/?q=41.890649,12.490986

now, when i click on the app button the system ask me which navigate app to use.
when i choose OsmAnd, the mark place is open whit OsmAnd.

so i still wonder what shuold bee the ActivityClass to open mark place with OsmAnd with one click?

Thanks.

Taifun

unread,
Sep 24, 2014, 10:05:04 AM9/24/14
to mitappinv...@googlegroups.com
as already said, use LogCat to find it out yourself

Taifun

unread,
Sep 27, 2014, 12:30:51 PM9/27/14
to mitappinv...@googlegroups.com
did you find it out meanwhile?
see also my updated example here
Taifun

Audio & Video Guide

unread,
Sep 27, 2014, 12:37:47 PM9/27/14
to mitappinv...@googlegroups.com
WOW...Thanks very much.
I will try it and report here.

Audio & Video Guide

unread,
Sep 30, 2014, 2:50:03 PM9/30/14
to mitappinv...@googlegroups.com
hallo Taifun.
thanks very much, your solution is work grate with the Companion

but i cant update my app.
please see here if you can help:



Marc Spanjol

unread,
Oct 7, 2014, 6:47:20 PM10/7/14
to
Hello all,
i also get that error601 and i allready did it like taifun said, i also restarted the app as i read somewhere.
i tried it with the connected phone and with the app installed on my phone.

i attached the screenshots for detailed view.

thx a lot for your help in advance.


edit: I was not connected to the mobile phone while taking the screen shot that was the warning sign ;)
Screenshot from 2014-10-07 19:37:52.png
Screenshot from 2014-10-07 19:40:47.png

Taifun

unread,
Oct 7, 2014, 7:23:04 PM10/7/14
to mitappinv...@googlegroups.com
@Marc: in this thread we talk about starting the OsmAnd app with the Activity Starter
You might want to start a new thread. Thank you.
Taifun
Reply all
Reply to author
Forward
0 new messages