Activity starter to launch google handwriting input

hi

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

com.google.android.apps.handwriting.ime

i don’t know what to do to get the intent and the class however i read this several times
[http://ai2.appinventor.mit.edu.ezproxy.canberra.edu.au/reference/other/activitystarter.html]

regards

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 dat=vnd.youtube:nAPk9ycCbfc cmp=com.google.android.youtube/.PlayerActivity }

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

this might help
https://community.appybuilder.com/t/capturing-device-logs-using-adb/83?u=taifun
Taifun


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

hi

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 ?

regards

how does your logcat output look like?
Taifun

hi

here is an extract of the logcat :

ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.google.android.apps.handwriting.ime/com.google.android.apps.handwriting.ime.WelcomeActivity}} from uid 10085
W ActivityManager: Launch on display check: display not found
I ActivityManager: [IOP] sourceDir : /data/app/com.google.android.apps.handwriting.ime-8TdgjLAdA-S7xQGgwEjgtw== 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

Regards

you might want to try
Action=android.intent.action.MAIN
ActivityPackage=com.google.android.apps.handwriting.ime
ActivityClass=com.google.android.apps.handwriting.ime.WelcomeActivity

Taifun

hi
i just tried your proposal and it works !

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

"com.google.android.apps.handwriting.ime.com.google.android.apps.handwriting.ime.WelcomeActivity"

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
cmp=lysesoft.andexplorer/.SplashActivity

Taifun

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