android - how to find the name of the main activity of an application? -


for example, want start gmail in code/command line, don't know main activity name.

am start -n com.google.android.gm/.xxxxx

it's available through decompiling apk, it's difficult.

thanks.

you can plug phone computer , @ ddms log, application launches printed there, e.g:

05-11 09:19:15.725: info/activitymanager(96): starting: intent { act=android.intent.action.main cat=[android.intent.category.launcher] flg=0x2000000 cmp=com.google.android.gm/.conversationlistactivity bnds=[125,410][235,540] } pid 2457 

so, com.google.android.gm/.conversationlistactivity, seem right choice, @ least, that's icon seems launch.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -