I have given email link to TextView in xml, but as I am clicking on the TextView its showing unsupported action error, How can I put the active link on email in textview?
Here is my code of string.xml file:
<resources>
<string name="emailLink"><a href="mailto:[email protected]">[email protected]</a></string>
<resources>
And mylayout.xml
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="15dp"
android:textColor="@color/text_color"
android:layout_marginTop="10dp"
android:id="@+id/text_email"
android:autoLink="email"
android:text="@string/emailLink"/>
I am running my app in android 2.2 and later versions.
Please help me... Thanks
This is likely to occur when you haven't added a primary account to your mobile. You have to configure your google account with your device. Go to the gmail app in your device and sign in using your gmail account. I had the same problem and after doing this the problem was solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With