Android Question EditText view and share content problem

Discussion in 'Android Questions' started by GERSON PINTO, Jul 17, 2019.

  1. GERSON PINTO

    GERSON PINTO Member Licensed User

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

    Code:
    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???
     
  2. Erel

    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.
     
  3. GERSON PINTO

    GERSON PINTO Member Licensed User

    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....
     
  4. GERSON PINTO

    GERSON PINTO Member Licensed User

    I am using the EditText in a TabHost.....
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    It will be best if you upload a small project that demonstrates it.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice