Android Question EditText view and share content problem

GERSON PINTO

Member
Licensed User
Hello.
I using the following code in a button for share text content of the EditText1 view:

B4X:
Dim i As Intent
    i.Initialize(i.ACTION_SEND, "")
    i.SetType("text/plain")
    i.PutExtra("android.intent.extra.TEXT",EditText1.Text)
    i.WrapAsIntentChooser("Share via:")
    StartActivity(i)
when the cursor is blinking inside EditText1 text area does not work to share
How solve this???
 

Erel

Administrator
Staff member
Licensed User
There is no relation between this code and the cursor position or whether the field is focused. The problem is somewhere else.
 

GERSON PINTO

Member
Licensed User
There is no relation between this code and the cursor position or whether the field is focused. The problem is somewhere else.
Well, when starts the activity first time the code works and share options pop up. After I type some text in editText not works more....
 

Erel

Administrator
Staff member
Licensed User
It will be best if you upload a small project that demonstrates it.
 
Top