Post your questions and help other users.
Moderator: Martin
-
LegacyMJR
- Posts: 4
- Joined: 02 Mar 2015 11:32
Post
by LegacyMJR » 07 Mar 2015 23:33

- call activity.JPG (36 KiB) Viewed 8389 times
I am a bit confused as to how to use this. I assume it is what I should use to start another app when I want to pass a data string. I am new to Android and have built my app using MIT app Inventor2. The "blocks" I use to call the app from MIT app Inventor are on the attachment. Can you help me to codify the Action in Automagic. I have figured out the remainder of the flow.

- call activity.JPG (36 KiB) Viewed 8389 times
The passed text is just a longish ascii text string.
Thanks
-
Martin
- Posts: 4468
- Joined: 09 Nov 2012 14:23
Post
by Martin » 08 Mar 2015 19:09
Hi,
I'm not exactly sure how to read the app inventor diagram so I might be wrong but I would try this (in action Start Activity):
Action: android.intent.action.VIEW (I'm not sure about this one, it seems to be not explicitly listed in the diagram)
Explicit Component: checked
Package Name: appinventor.ai_legacym.noTextDriving
Class Name: appinventor.ai_legacym.noTextDriving.Screen1
Extras: putString("APP_INVENTOR_START", "xyz");
I think ntdMessageText.Text is some kind of property or variable so you could use the value stored in this property instead of "xyz".
Regards,
Martin
-
LegacyMJR
- Posts: 4
- Joined: 02 Mar 2015 11:32
Post
by LegacyMJR » 08 Mar 2015 19:23
Thanks I will give it a try and get back to you.