私はアンドロイドアプリケーションからFacebookのリンクを開きたいと思います。 URLはhttp://www.facebbok.com/abcxyzのようになります。 Facebookアプリケーションでは 'abcxyz'ページが開きますが、ブラウザでは常に開いています。オープンFacebook Facebookアプリケーションと
コード:
try
{
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
activityContext.startActivity(browserIntent);
}
catch (ActivityNotFoundException ex)
{
ex.printStackTrace();
}
私のアンドロイドOSのバージョンは6.0.1です。
私はInstagram、http://www.instagram.com/abcxyzと同じ問題を抱えていますが、Youtubeのような他のアプリケーションも同様です。
はこの作品.. http://stackoverflow.com/questions/24526882/open-facebook-page-をいfrom-android-app-in-facebook-version-v11 ..? –
@DemoUser下の解決策は私のために働いた –