NullPointerException
NullPointerException

Reputation: 37635

How to start Facebook app programatically?

i need to add a functionality on my app to start Facebook

Upvotes: 0

Views: 1749

Answers (1)

NullPointerException
NullPointerException

Reputation: 37635

solved:

Intent intent = new Intent("android.intent.category.LAUNCHER");
intent.setClassName("com.facebook.katana", "com.facebook.katana.LoginActivity");
startActivity(intent);

thanks alextsc

Upvotes: 2

Related Questions