Page 1 of 1

How to use Start Activity with date string

Posted: 07 Mar 2015 23:33
by LegacyMJR
call activity.JPG
call activity.JPG (36 KiB) Viewed 8391 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
call activity.JPG (36 KiB) Viewed 8391 times
The passed text is just a longish ascii text string.

Thanks

Re: How to use Start Activity with date string

Posted: 08 Mar 2015 19:09
by Martin
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

Re: How to use Start Activity with date string

Posted: 08 Mar 2015 19:23
by LegacyMJR
Thanks I will give it a try and get back to you.

Re: How to use Start Activity with date string

Posted: 08 Mar 2015 19:40
by LegacyMJR
Works perfectly thanks.