How do I use Activity Starter to launch the Calculator App?

1,782 views
Skip to first unread message

Aurora Metter

unread,
Jan 22, 2014, 4:20:53 PM1/22/14
to mitappinv...@googlegroups.com
How do I use Activity Starter to launch the Calculator App and is there a way for it to return a value?

Thanks!

Aurora






Michael Phox

unread,
Jan 22, 2014, 4:32:00 PM1/22/14
to Aurora Metter, mitappinv...@googlegroups.com
According to the Activity Starter documentation

The activity starter can be used to

- start another app inventor app
- start the camera
- perform a web search
- open the browser

so it doesn't look like you can use it to open your phone's calculator application.

If you needed to, you could program a basic calculator application with app inventor and use it to return the values that you need.

Hope this helps


--
You received this message because you are subscribed to the Google Groups "MIT App Inventor Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitappinventort...@googlegroups.com.
To post to this group, send email to mitappinv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitappinventortest/0878f9a7-0f7e-4041-93a5-ff2bec381b49%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Taifun

unread,
Jan 22, 2014, 4:42:11 PM1/22/14
to mitappinv...@googlegroups.com, Aurora Metter
there is also this documentation Using the Activity Starter
also these links might help
Taifun

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



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.

Reply all
Reply to author
Forward
0 new messages