Activity starter to launch google handwriting input


i want to start google handwriting input from an app inventor app
the only thing i have is the package name

i don’t know what to do to get the intent and the class however i read this several times


from that link you mentioned

Discovering how to set the ActivityStarter properties

If you want to start an app and you you don't have the source code or documentation, you might still be able figure out the package name and class name (and sometimes the intent) by launching the app and inspecting the Android system log.

For example, if you use the YouTube application to play a video, you'll see in the log:

I/ActivityManager( 86): Starting activity: Intent { act=android.intent.action.VIEW }

If you can find the "cmp=" string, then the ActivityPackage is the part before the slash, e.g., The ActivityClass is is the entire "cmp=" part, without the slash character, e.g., There may also in general be "dat=" information that should be specify as the DataUri property.

this might help

Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Here is another example. I connected my phone to my computer. Started adb logcat, then started AndExplorer on the phone. It generated this output:

ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=lysesoft.andexplorer/.SplashActivity bnds=[1080,1126][1440,1639] (has extras)} from uid 2897 pid 20207 on display 0

ActivityPackage = lysesoft.andexplorer
ActivityClass = lysesoft.andexplorer.SplashActivity


I reproduced the example given but the display of the logcat is an uninterrupted list of information
so i used this command ligne :
adb logcat ActivityManager:I andexplorer:I *:s
i have could retrieve this informations:

ActivityPackage = lysesoft.andexplorer
ActivityClass = lysesoft.andexplorer.SplashActivity

with your help i tried that :

but i got this error : error 601 no corresponding activity was found

i would like to know if in your example your action is MAIN ?


how does your logcat output look like?


here is an extract of the logcat :

ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{}} from uid 10085
W ActivityManager: Launch on display check: display not found
I ActivityManager: [IOP] sourceDir : /data/app/ in ActivityStacksupervisor
W ActivityManager: Launch on display check: display not found
I ActivityManager: mTimer start at this point for Notification solution
I ActivityManager: mTimer scheduling done


you might want to try


i just tried your proposal and it works !

by reading the post i put too much data for the ActivityClass :


The ActivityClass is after the slash ?

Thanks very much

probably the documentation was not 100% accurate in your case...
usually the cmp string looks like this


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.