unfortunately you forgot to add a screenshot of your relevant blocks...
see also Using the Activity Starter chapter " Discovering how to set the ActivityStarter properties"
I've created an App that takes button presses from Arduino and then acts on them.
One of the button presses opens another app (in this case google assistant preceded by some text to speech).
When the MIT App Inventor App is in the foreground its works fine, the text to speech fires and then the Google Assistant toast pops up.....
When the MIT App Inventor App is in the background after pressing the Arduino button the text to speech fires but the Google Assistant only fires when the MIT App Inventor App is brought to the foreground.
On Android 8 the Google Assistant fires & the toast pops up no matter if the app is in the background or foreground, but on Android 12 Google Assistant toast only pops up when the MIT App Inventor App is in the foreground (I've only got Android 8 &12 devices to hand).
Is there away to force the Google Assistant to open whilst My App is in the background, (I think this is possible as using the App "Automate" I can create a Flow that opens the Google Assistant in the foreground no matter if there are other apps open in the foreground.
How can I bring the MIT App Inventor App to the foreground as a work around before the Google Assistant fires
IE
After Arduino button pressed,
Fire text to speech blocks, fire bring MIT App Inventor App to front blocks, fire start Google Assistant blocks.
Any ideas\help would be most appreciated, as it's doing my nut in
Hi, I found a solution.
I used to get 601 error too, until I filled correctly the Activity Class - can not be empty.
(I used Automate App -> New flow -> App start block, where I browsed available Packages and Activity Classes).
Data URI: content://com.llamalab.automate.provider/flows/Your-flow-id/
You find "Your-flow-id", if You open in Your Automate flow, open the Flow beginning block - it at the bottom in Current values section. For me, it works both with and without the "/statements/1" part.
Tested with Automate 1.33.4 (14Jun2022) on Samsung Galaxy S7, on Android 8.0.0
MIT App Inv Activity starter + Automate is great combination for recording high-resolution videos from MIT App Inventor in the background using simple Automate flow. Simply no DefaultFileScope problems