android - String uri to open a page in facebook lite app -
when wanna open page on normal facebook app (calling through app) use follow string make uri.parse(). "fb://page/[pageid]"
, , works this:
string uristr = "fb://page/[pageid]"; uri uri = uri.parse(uristr); startactivity(new intent(intent.action_view, uri));
however when try open in facebook lite, same doesn't work, , app closed error. :( exist way? correct string open same page in facebook lite? knows? thx
edit
logcat error:
android.content.activitynotfoundexception: no activity found handle intent
look this
string uri = "facebook://facebook.com/inbox"; intent intent = new intent(intent.action_view, uri.parse(uri)); startactivity(intent);
or special activity
intent intent = new intent("android.intent.category.launcher"); intent.setclassname("com.facebook.katana", "com.facebook.katana.loginactivity"); startactivity(intent);
hope help.
Comments
Post a Comment