0

Is there any possibility to invoke facebook & twitter app from andriod emulator( im using android emulator 3.2honey comb)

Please help me on this???

Jamie Hutton
  • 260
  • 3
  • 13
Quick learner
  • 699
  • 4
  • 22
  • 39
  • please be specific in ur question, do u have the facebook app installed? – Pratik Bhat Dec 19 '11 at 06:03
  • Ya facebook app is installed in my emulator, bt the thing is i have and image,button on my main screen if i click that image,button it should invoke facebook app installed in my emulator. How can i do that?? – Quick learner Dec 19 '11 at 06:20
  • u should check this answer: http://stackoverflow.com/questions/4810803/open-facebook-page-from-android-app/4814030#4814030 ... but i feel u will have to use facebook -android sdk..http://developers.facebook.com/docs/mobile/android/build/ search on that – Pratik Bhat Dec 19 '11 at 06:30
  • thanks for the help.. so can u please tell me how to invoke twitter app also ??? – Quick learner Dec 19 '11 at 07:39

1 Answers1

1

This currently works, although you can't bet on it when the facebook app updates.

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setClassName("com.facebook.katana", "com.facebook.katana.ProfileTabHostActivity");
intent.putExtra("extra_user_id", user_id);
this.startActivity(intent);

You may want to place this in a try-catch(NullPointerException e) block so as not to crash the app when it doesn't work anymore.

josephus
  • 8,284
  • 1
  • 37
  • 57
  • Hi this is working bt am unable to connect to facebook app with my login credentials.But in browser am able to login with same login credentials..Is there any thing do i need to setup for this..Please help me out??? – Quick learner Dec 19 '11 at 09:05