Where's my car has error Error 601: No corresponding activity was found.

50 views
Skip to first unread message
Assigned to ewpa...@gmail.com by steve....@gmail.com

CC

unread,
Apr 15, 2019, 5:16:32 PM4/15/19
to MIT App Inventor Forum
I downloaded Android Where's My Car from the MIT App Inventor 2 website. I changed nothing but there is an error: 

Error 601: No corresponding activity was found.

Will someone please tell me what I need to add to make the app work? I am running the app from a macbook pro but using an Android phone. 

Thank you.




TimAI2

unread,
Apr 15, 2019, 5:27:54 PM4/15/19
to MIT App Inventor Forum
That will be an issue with the activityStarter and Google maps
Things have moved on a bit in AppInventor since that tutorial was written - the original should still work though
Possible that if testing inside your are not getting a GPS signal?
AI2 now has its own maps component.

I drew up a remix of the concept using the built-in map component and the CloudDB


Worth a try? Ensure you set a new token for the cloudDB

CC

unread,
Apr 15, 2019, 5:38:20 PM4/15/19
to MIT App Inventor Forum
Thank you for your reply. If AppInventor has moved on from Google Maps, is there a tutorial that shows how to use the AI2 maps component and if there is, will you please point me to it? When trying to learn how to use a map, it is very difficult when the posted tutorials do not work.

As for the existing Where's My Car app: GPS is working fine; other apps using it work. 

SteveJG

unread,
Apr 15, 2019, 5:53:00 PM4/15/19
to mitappinv...@googlegroups.com
The original Where Is My Car tutorial for AI2 works fine!     The problem is with an issue downloading the aia file.  Where do you find the 601 error CC?   When you download the aia or run the aia file?
OR are you attempting to run the app using an emulator.  That will not work, the app must be run on an Android device.   Or are you attempting to run the app without turning on the device's Location Setting or you have a Tablet that does not have a GPS receiver?


@Tim     The ActivityStarter code to display a Google Map works fine.

GoogleMap.PNG

The above code displays the Google Map.     Developers have no issues using the ActivityStarter to show a GoogleMap,   An issue developers have is when using a Google Static Map.  Where as once upon a time a StaticMap worked without an api key, since late last year, Google requires developers obtain and use the api key.  An api key is not required when using the ActivityStarter.




@ Evan ... there is an issue downloading WhereIsMyCar from the MIT site.  Actually, multiple links are glitched.


Regards,
Steve

TimAI2

unread,
Apr 15, 2019, 6:59:00 PM4/15/19
to MIT App Inventor Forum
@ Steve - never said it didn't :)

SteveJG

unread,
Apr 15, 2019, 7:25:29 PM4/15/19
to MIT App Inventor Forum
OK Tim.  "That will be an issue with the activityStarter and Google maps"  ...The 6001 error is not an ActivityStarter issue or a Google Map issue. :)  It is something else.

CC

unread,
Apr 15, 2019, 8:31:42 PM4/15/19
to MIT App Inventor Forum
Hello Steve, 
Thank you for your reply.
I downloaded the .aia file from http://explore.appinventor.mit.edu/ai2/android-wheres-my-car to my macbook pro. I ran it from there and connected an AI companion (Android phone w/sim & wifi). The device has GPS that is turned on, location setting is turned on. 

The 601 error happened when I ran the code (on the AI companion, the new companion was downloaded days ago) and pressed Show Directions From Current to Remembered.

I walked around the block and ran it from different locations outside and got a different error, actually, but didn't write it down. It was not a 601. 

In any case, I have not gotten it to work. So I am trying a different app that I again downloaded from the MIT page. http://explore.appinventor.mit.edu/ai2/android-wheres-my-car .  I just wanted to see a google map work! In this app, the google map works fine but for some reason TinyDB does not persist any more. It persisted earlier in the day but even though I made no changes to the file, the information I enter does not persist. I did change the name of the app. So I am going to delete it and re-download. 

It is so difficult when apps we download don't work because it is hard to figure out why. Thank you for your help.






CC

unread,
Apr 15, 2019, 8:33:33 PM4/15/19
to MIT App Inventor Forum

SteveJG

unread,
Apr 15, 2019, 8:45:57 PM4/15/19
to mitappinv...@googlegroups.com
When you use the Companion to store information in the TinyDB the data in the TinyDB is not persistent.   To get the data persistent on your device, you need to compile the app (create the apk) and then use the QRcode to upload it to your phone/tablet.

To get the stored data to persist, work with the compiled app loaded on your device and add the new location information using the compiled app.   Does that work for you?  Do you see the map?

Regards,
Steve

CC

unread,
Apr 15, 2019, 9:12:42 PM4/15/19
to MIT App Inventor Forum
Hi Steve,

I never ran an app this way. Somehow, previous times, data seemed to persist. But I will try it the way you say, but may I ask for clarification?

On my device I click Build and then select App (provide QR code for .apk)

I scanned the QR code with my phone and ran and saved a few addresses.

I quit AI Companion on my phone and reset the connection on my device.

I pressed Connect on the device and got a QR Code that I read with the phone. There was no data.

So now what? Do I have to Build every time? Even though no change was made to the code?

I opened the app on my phone and there was no data.

I deleted the app on my phone and rebuilt on my device and read the QR code with the phone and stored more data. This time, I opened the app on my phone and there was still no data!

Will you please let me know what I should try now? thank you...













SteveJG

unread,
Apr 15, 2019, 9:33:40 PM4/15/19
to mitappinv...@googlegroups.com
Ok... let's look at a few possibilities:

1)  Build the app, load with the qrcode to your device.  Wait for the app to get a satellite fix...this may take 30 to 40 seconds.  Coordinate information should appear on your screen.   Only after that information appears should you save to the TinyDB.   Any data you 'save' while using Companion will NOT be saved for use on your compiled app CC.   Only the data you save while using the compiled app will save.

2) You only have to build and save to your device once.  Then save the data.   Turn off the app.  Restart it and the data should be there.

Try again and let me know what happens.

...


CC

unread,
Apr 15, 2019, 9:43:46 PM4/15/19
to MIT App Inventor Forum
Hi Steve, 
While I wait for the coordinate information, may I ask a question please? 

I clicked on the MapIt icon on my device at 9:36. 

Every time I have run an app in the past, I ran it from my device and clicked Connect an AI Companion (my phone) with a QR code. (I never built it.) TinyDB has persisted that way. Are you saying TinyDB will not persist running the app this way? I will try a different app and see if the TinyDB persists.

It is 9:43 now and coordinate information hasn't showed up yet. Perhaps there isn't any. I will try to load more. 


CC

unread,
Apr 15, 2019, 9:48:35 PM4/15/19
to MIT App Inventor Forum
I ran the app by clicking the MapIt icon on my phone. The data I put in at 9:43 is not there!

SteveJG

unread,
Apr 15, 2019, 9:54:47 PM4/15/19
to MIT App Inventor Forum
1)  Yes, I am saying ...TinyDB will not persist running the app this way?  ..that is running from Companion.   You MUST run the built app.

2)   Sorry,  coordinate information will not appear on the MapIt screen.  Thought you were still on Where Is My Car.
Here you need to add the information.

mapit.PNG

right away ... using, I think #2     Once it is there, you should be able to use #3 and #4 .  You cannot Map It untill you have a saved Address.    Did you save any addresses after you compiled and loaded the app (installed it)?

SteveJG

unread,
Apr 15, 2019, 9:57:31 PM4/15/19
to MIT App Inventor Forum
If you are still having issues I will try to help but need to leave now.

You can try this simple attached app.  Download it then run it.   It should show you where you are located on a Google Map CC.

Sorry..got to run... -Steve
SimpleActivityStarterMap.aia
Reply all
Reply to author
Forward
0 new messages