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.
The passed text is just a longish ascii text string.
Thanks
How to use Start Activity with date string
Moderator: Martin
Re: How to use Start Activity with date string
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
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
Thanks I will give it a try and get back to you.
Re: How to use Start Activity with date string
Works perfectly thanks.