I want to open my facebook profile link (on facebook app) on Button click. If the facebook app is present then facebook app should open with my profile. If app is not present browser should open.
How to do that?
I want to open my facebook profile link (on facebook app) on Button click. If the facebook app is present then facebook app should open with my profile. If app is not present browser should open.
How to do that?
add this to java activity
mfblink = findViewById(R.id.fblink);
mfblink.setMovementMethod(LinkMovementMethod.getInstance());
add this lines to layout xml
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/mfblink "
android:gravity="bottom"
android:padding="10dp"
android:text="@string/linktofb"
android:background="@drawable/"
android:textAlignment="center"
android:textSize="15sp" />
add this lines to string.xml
<string name="linktofb">
<a href="https://www.facebook.com/profile"></a>
</string>