Skip to first unread message

Raymond Knutsen Lystad

unread,
Nov 2, 2014, 1:24:31 PM11/2/14
to mitappinv...@googlegroups.com
Hello. I think to run other app comming NOT from MIT App Inventor 2. I use try to open Minecraft PE Demo, but it's can't to run it. I set:
ActivityStarter1.ActivityPackage:com.mojang.minecraftpe.demo
ActivityStarter1.ActivityClass:com.mojang.minecraftpe.demo.Screen1

Not found. Can you help me?

Taifun

unread,
Nov 2, 2014, 2:58:22 PM11/2/14
to mitappinv...@googlegroups.com
see here how to find it out Using the Activity Starter          
and don't forget to define the Action...
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Raymond Knutsen Lystad

unread,
Nov 2, 2014, 3:09:02 PM11/2/14
to mitappinv...@googlegroups.com
I have try it. Not work

Taifun

unread,
Nov 2, 2014, 3:25:15 PM11/2/14
to mitappinv...@googlegroups.com
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Raymond Knutsen Lystad

unread,
Nov 2, 2014, 4:17:22 PM11/2/14
to


Taifun

unread,
Nov 2, 2014, 5:21:37 PM11/2/14
to mitappinv...@googlegroups.com
some questions:
1. what is ResetActivityStarterRunApp?
2. where is the RunApp.Activity property defined?
3. where do you call RunApp.StartActivity?
4. why is Package and Class identical?
5. what is OtherApp?

as explained in the link Using the Activity Starter 

Figuring out how to set the properties

If you can't find documentation for the activities you want to start, one way to figure out how to set the properties is to start up the activity manually and look at what appears in the Android System Log. For example, if you use YouTube to play a video, you'll see in the log:

I/ActivityManager( 86): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.youtube.com/watch?v=8ADwPLSFeY8 flg=0x3800000 cmp=com.google.android.youtube/.PlayerActivity }

If you can find the "cmp=" string, then the ActivityPackage is the part before the slash, and the ActivityClass is is the entire "cmp=" part, without the slash character. As in the YouTube example, there may also be "dat=" information that can specify with the DataUri property.

Taifun

Raymond Knutsen Lystad

unread,
Nov 3, 2014, 3:55:23 AM11/3/14
to

OtherApp is sure to run app. Package and Class is show button text and if not found app, so will go to Google Play. RunApp.StartActivity is there to go button on 'Download on Google Play' and 'Start app'. And ResetActivityStarterRunApp is reset all text on activity

Taifun

unread,
Nov 3, 2014, 8:34:35 AM11/3/14
to mitappinv...@googlegroups.com
ok, now you are trying to start an App Inventor app...
this looks fine as soon as your login name is xerrror10 and your project name is Dagbok and there is that app installed on that device, else you will get a" 601 error no corresponding activity was found"
Taifun

Raymond Knutsen Lystad

unread,
Nov 3, 2014, 9:01:10 AM11/3/14
to mitappinv...@googlegroups.com
Yes. It's a 1 run app. It's a more button to start a game. 
Reply all
Reply to author
Forward
0 new messages