Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To just start the default Launcher Activity:</p> <pre><code>Intent intent = new Intent("android.intent.category.LAUNCHER"); intent.setClassName("com.facebook.katana", "com.facebook.katana.LoginActivity"); startActivity(intent); </code></pre> <p>I did some research, because I wanted to find this out :). I found some ways how to start different activities easily. But I can not guarantee that this will work after upgrades of facebook. I tested it with my current facebook app and it works. At least I tested it with "adb shell" using "am start .....".</p> <p>Basic is:</p> <pre><code>String uri = "facebook://facebook.com/inbox"; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); startActivity(intent); </code></pre> <p>the facebook.com part is not checked. you can even type: "facebook://gugus.com/inbox" having the same effect.</p> <p>How to do this in adb.</p> <pre><code>1. Start adb shell through console: "adb shell" 2. run: "am start -a android.intent.action.VIEW -d facebook://facebook.com/inbox" </code></pre> <p>this will start the inbox activity. Here some Uris with examples. I think they speak for themselves what they do.</p> <pre><code>facebook://facebook.com/inbox facebook://facebook.com/info?user=544410940 (id of the user. "patrick.boos" won't work) facebook://facebook.com/wall facebook://facebook.com/wall?user=544410940 (will only show the info if you have added it as friend. otherwise redirects to another activity) facebook://facebook.com/notifications facebook://facebook.com/photos facebook://facebook.com/album facebook://facebook.com/photo facebook://facebook.com/newsfeed </code></pre> <p>there might be additianl parameters you can give to certain of those uris, but I have no time to go through all the code of those activities.</p> <p>How did I do this? check out apktool.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload