Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported action error on click of email link

Tags:

android

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

like image 525
Lalit Sharma Avatar asked Jan 09 '13 09:01

Lalit Sharma


1 Answers

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.

like image 181
Andro Selva Avatar answered Sep 27 '22 20:09

Andro Selva