Android Studio: Attachment not attaching to email












0














Hi I'm trying to create and attach a file to an email request but I keep getting an error saying




Could not execute method for android:onClick




Getting rid of the line emailIntent.putExtra(Intent.EXTRA_STREAM, path); gets rid of the issue but the email loses the attachment. Through bug testing my file is being made and the path does exist but it won't attach to my email



Below is the code I'm trying to run



    public void emailPpl(View v){
///////////////////////////////////////Create File//////////////////////////////

String filename = "data.sch";
String eventName= getIntent().getStringExtra("eventName");
String Location= getIntent().getStringExtra("Location");
String starTime= getIntent().getStringExtra("startTime");
String endTime= getIntent().getStringExtra("endTime");
String date= getIntent().getStringExtra("date");

String fileContents = eventName + "," + Location + "," + date + "," + starTime + "," + endTime + "n";
FileOutputStream outputStream;

try {

outputStream = openFileOutput(filename, Context.MODE_APPEND);
outputStream.write(fileContents.getBytes());
outputStream.close();
Toast.makeText(this, "write complete",
Toast.LENGTH_LONG).show();
System.out.print("Success gg");
} catch (Exception e) {
e.printStackTrace();
}
//////////////////////////////////////////////////////////////////////////////
////////////////////////Begin Email Request//////////////////////////////////
try{
Log.i("Send email", "");
EditText emails= findViewById(R.id.editText2);
EditText Message= findViewById(R.id.editText4);
String TO = emails.getText().toString().split(",");
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setData(Uri.parse("mailto:"));
emailIntent.setType("text/plain");
emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename);
Uri path = Uri.fromFile(filelocation);
Log.d("path","file path confirmed "+ path);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Your subject");
emailIntent.putExtra(Intent.EXTRA_TEXT, Message.getText().toString()+"n Thank you for using Family Scheduler");
if (path != null) {
emailIntent.putExtra(Intent.EXTRA_STREAM, path);
}

startActivity(Intent.createChooser(emailIntent, "Send mail..."));
Log.i("Finished sending email", "");
Intent intent = new Intent(this, addevent.class);
intent.putExtra("TO",TO);
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,
"There is no email client installed.", Toast.LENGTH_SHORT).show();
}
}


and here's the error



E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.wasi.familyschedualer, PID: 28031
java.lang.IllegalStateException: Could not execute method for android:onClick
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:6294)
at android.view.View$PerformClick.run(View.java:24770)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
at android.view.View.performClick(View.java:6294) 
at android.view.View$PerformClick.run(View.java:24770) 
at android.os.Handler.handleCallback(Handler.java:790) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6494) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/data.sch exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
at android.net.Uri.checkFileUriExposed(Uri.java:2356)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:942)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9850)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9856)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9835)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1610)
at android.app.Activity.startActivityForResult(Activity.java:4487)
at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
at android.app.Activity.startActivityForResult(Activity.java:4445)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
at android.app.Activity.startActivity(Activity.java:4806)
at android.app.Activity.startActivity(Activity.java:4774)
at com.example.wasi.familyschedualer.invitingPpl.emailPpl(invitingPpl.java:64)









share|improve this question





























    0














    Hi I'm trying to create and attach a file to an email request but I keep getting an error saying




    Could not execute method for android:onClick




    Getting rid of the line emailIntent.putExtra(Intent.EXTRA_STREAM, path); gets rid of the issue but the email loses the attachment. Through bug testing my file is being made and the path does exist but it won't attach to my email



    Below is the code I'm trying to run



        public void emailPpl(View v){
    ///////////////////////////////////////Create File//////////////////////////////

    String filename = "data.sch";
    String eventName= getIntent().getStringExtra("eventName");
    String Location= getIntent().getStringExtra("Location");
    String starTime= getIntent().getStringExtra("startTime");
    String endTime= getIntent().getStringExtra("endTime");
    String date= getIntent().getStringExtra("date");

    String fileContents = eventName + "," + Location + "," + date + "," + starTime + "," + endTime + "n";
    FileOutputStream outputStream;

    try {

    outputStream = openFileOutput(filename, Context.MODE_APPEND);
    outputStream.write(fileContents.getBytes());
    outputStream.close();
    Toast.makeText(this, "write complete",
    Toast.LENGTH_LONG).show();
    System.out.print("Success gg");
    } catch (Exception e) {
    e.printStackTrace();
    }
    //////////////////////////////////////////////////////////////////////////////
    ////////////////////////Begin Email Request//////////////////////////////////
    try{
    Log.i("Send email", "");
    EditText emails= findViewById(R.id.editText2);
    EditText Message= findViewById(R.id.editText4);
    String TO = emails.getText().toString().split(",");
    Intent emailIntent = new Intent(Intent.ACTION_SEND);
    emailIntent.setData(Uri.parse("mailto:"));
    emailIntent.setType("text/plain");
    emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
    File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename);
    Uri path = Uri.fromFile(filelocation);
    Log.d("path","file path confirmed "+ path);
    emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Your subject");
    emailIntent.putExtra(Intent.EXTRA_TEXT, Message.getText().toString()+"n Thank you for using Family Scheduler");
    if (path != null) {
    emailIntent.putExtra(Intent.EXTRA_STREAM, path);
    }

    startActivity(Intent.createChooser(emailIntent, "Send mail..."));
    Log.i("Finished sending email", "");
    Intent intent = new Intent(this, addevent.class);
    intent.putExtra("TO",TO);
    } catch (android.content.ActivityNotFoundException ex) {
    Toast.makeText(this,
    "There is no email client installed.", Toast.LENGTH_SHORT).show();
    }
    }


    and here's the error



    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.wasi.familyschedualer, PID: 28031
    java.lang.IllegalStateException: Could not execute method for android:onClick
    at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
    at android.view.View.performClick(View.java:6294)
    at android.view.View$PerformClick.run(View.java:24770)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
    Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
    at android.view.View.performClick(View.java:6294) 
    at android.view.View$PerformClick.run(View.java:24770) 
    at android.os.Handler.handleCallback(Handler.java:790) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:164) 
    at android.app.ActivityThread.main(ActivityThread.java:6494) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
    Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/data.sch exposed beyond app through ClipData.Item.getUri()
    at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
    at android.net.Uri.checkFileUriExposed(Uri.java:2356)
    at android.content.ClipData.prepareToLeaveProcess(ClipData.java:942)
    at android.content.Intent.prepareToLeaveProcess(Intent.java:9850)
    at android.content.Intent.prepareToLeaveProcess(Intent.java:9856)
    at android.content.Intent.prepareToLeaveProcess(Intent.java:9835)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1610)
    at android.app.Activity.startActivityForResult(Activity.java:4487)
    at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
    at android.app.Activity.startActivityForResult(Activity.java:4445)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
    at android.app.Activity.startActivity(Activity.java:4806)
    at android.app.Activity.startActivity(Activity.java:4774)
    at com.example.wasi.familyschedualer.invitingPpl.emailPpl(invitingPpl.java:64)









    share|improve this question



























      0












      0








      0







      Hi I'm trying to create and attach a file to an email request but I keep getting an error saying




      Could not execute method for android:onClick




      Getting rid of the line emailIntent.putExtra(Intent.EXTRA_STREAM, path); gets rid of the issue but the email loses the attachment. Through bug testing my file is being made and the path does exist but it won't attach to my email



      Below is the code I'm trying to run



          public void emailPpl(View v){
      ///////////////////////////////////////Create File//////////////////////////////

      String filename = "data.sch";
      String eventName= getIntent().getStringExtra("eventName");
      String Location= getIntent().getStringExtra("Location");
      String starTime= getIntent().getStringExtra("startTime");
      String endTime= getIntent().getStringExtra("endTime");
      String date= getIntent().getStringExtra("date");

      String fileContents = eventName + "," + Location + "," + date + "," + starTime + "," + endTime + "n";
      FileOutputStream outputStream;

      try {

      outputStream = openFileOutput(filename, Context.MODE_APPEND);
      outputStream.write(fileContents.getBytes());
      outputStream.close();
      Toast.makeText(this, "write complete",
      Toast.LENGTH_LONG).show();
      System.out.print("Success gg");
      } catch (Exception e) {
      e.printStackTrace();
      }
      //////////////////////////////////////////////////////////////////////////////
      ////////////////////////Begin Email Request//////////////////////////////////
      try{
      Log.i("Send email", "");
      EditText emails= findViewById(R.id.editText2);
      EditText Message= findViewById(R.id.editText4);
      String TO = emails.getText().toString().split(",");
      Intent emailIntent = new Intent(Intent.ACTION_SEND);
      emailIntent.setData(Uri.parse("mailto:"));
      emailIntent.setType("text/plain");
      emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
      File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename);
      Uri path = Uri.fromFile(filelocation);
      Log.d("path","file path confirmed "+ path);
      emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Your subject");
      emailIntent.putExtra(Intent.EXTRA_TEXT, Message.getText().toString()+"n Thank you for using Family Scheduler");
      if (path != null) {
      emailIntent.putExtra(Intent.EXTRA_STREAM, path);
      }

      startActivity(Intent.createChooser(emailIntent, "Send mail..."));
      Log.i("Finished sending email", "");
      Intent intent = new Intent(this, addevent.class);
      intent.putExtra("TO",TO);
      } catch (android.content.ActivityNotFoundException ex) {
      Toast.makeText(this,
      "There is no email client installed.", Toast.LENGTH_SHORT).show();
      }
      }


      and here's the error



      E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.wasi.familyschedualer, PID: 28031
      java.lang.IllegalStateException: Could not execute method for android:onClick
      at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
      at android.view.View.performClick(View.java:6294)
      at android.view.View$PerformClick.run(View.java:24770)
      at android.os.Handler.handleCallback(Handler.java:790)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6494)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
      Caused by: java.lang.reflect.InvocationTargetException
      at java.lang.reflect.Method.invoke(Native Method)
      at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
      at android.view.View.performClick(View.java:6294) 
      at android.view.View$PerformClick.run(View.java:24770) 
      at android.os.Handler.handleCallback(Handler.java:790) 
      at android.os.Handler.dispatchMessage(Handler.java:99) 
      at android.os.Looper.loop(Looper.java:164) 
      at android.app.ActivityThread.main(ActivityThread.java:6494) 
      at java.lang.reflect.Method.invoke(Native Method) 
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
      Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/data.sch exposed beyond app through ClipData.Item.getUri()
      at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
      at android.net.Uri.checkFileUriExposed(Uri.java:2356)
      at android.content.ClipData.prepareToLeaveProcess(ClipData.java:942)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9850)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9856)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9835)
      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1610)
      at android.app.Activity.startActivityForResult(Activity.java:4487)
      at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
      at android.app.Activity.startActivityForResult(Activity.java:4445)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
      at android.app.Activity.startActivity(Activity.java:4806)
      at android.app.Activity.startActivity(Activity.java:4774)
      at com.example.wasi.familyschedualer.invitingPpl.emailPpl(invitingPpl.java:64)









      share|improve this question















      Hi I'm trying to create and attach a file to an email request but I keep getting an error saying




      Could not execute method for android:onClick




      Getting rid of the line emailIntent.putExtra(Intent.EXTRA_STREAM, path); gets rid of the issue but the email loses the attachment. Through bug testing my file is being made and the path does exist but it won't attach to my email



      Below is the code I'm trying to run



          public void emailPpl(View v){
      ///////////////////////////////////////Create File//////////////////////////////

      String filename = "data.sch";
      String eventName= getIntent().getStringExtra("eventName");
      String Location= getIntent().getStringExtra("Location");
      String starTime= getIntent().getStringExtra("startTime");
      String endTime= getIntent().getStringExtra("endTime");
      String date= getIntent().getStringExtra("date");

      String fileContents = eventName + "," + Location + "," + date + "," + starTime + "," + endTime + "n";
      FileOutputStream outputStream;

      try {

      outputStream = openFileOutput(filename, Context.MODE_APPEND);
      outputStream.write(fileContents.getBytes());
      outputStream.close();
      Toast.makeText(this, "write complete",
      Toast.LENGTH_LONG).show();
      System.out.print("Success gg");
      } catch (Exception e) {
      e.printStackTrace();
      }
      //////////////////////////////////////////////////////////////////////////////
      ////////////////////////Begin Email Request//////////////////////////////////
      try{
      Log.i("Send email", "");
      EditText emails= findViewById(R.id.editText2);
      EditText Message= findViewById(R.id.editText4);
      String TO = emails.getText().toString().split(",");
      Intent emailIntent = new Intent(Intent.ACTION_SEND);
      emailIntent.setData(Uri.parse("mailto:"));
      emailIntent.setType("text/plain");
      emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
      File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename);
      Uri path = Uri.fromFile(filelocation);
      Log.d("path","file path confirmed "+ path);
      emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Your subject");
      emailIntent.putExtra(Intent.EXTRA_TEXT, Message.getText().toString()+"n Thank you for using Family Scheduler");
      if (path != null) {
      emailIntent.putExtra(Intent.EXTRA_STREAM, path);
      }

      startActivity(Intent.createChooser(emailIntent, "Send mail..."));
      Log.i("Finished sending email", "");
      Intent intent = new Intent(this, addevent.class);
      intent.putExtra("TO",TO);
      } catch (android.content.ActivityNotFoundException ex) {
      Toast.makeText(this,
      "There is no email client installed.", Toast.LENGTH_SHORT).show();
      }
      }


      and here's the error



      E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.wasi.familyschedualer, PID: 28031
      java.lang.IllegalStateException: Could not execute method for android:onClick
      at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
      at android.view.View.performClick(View.java:6294)
      at android.view.View$PerformClick.run(View.java:24770)
      at android.os.Handler.handleCallback(Handler.java:790)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6494)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
      Caused by: java.lang.reflect.InvocationTargetException
      at java.lang.reflect.Method.invoke(Native Method)
      at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
      at android.view.View.performClick(View.java:6294) 
      at android.view.View$PerformClick.run(View.java:24770) 
      at android.os.Handler.handleCallback(Handler.java:790) 
      at android.os.Handler.dispatchMessage(Handler.java:99) 
      at android.os.Looper.loop(Looper.java:164) 
      at android.app.ActivityThread.main(ActivityThread.java:6494) 
      at java.lang.reflect.Method.invoke(Native Method) 
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
      Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/data.sch exposed beyond app through ClipData.Item.getUri()
      at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
      at android.net.Uri.checkFileUriExposed(Uri.java:2356)
      at android.content.ClipData.prepareToLeaveProcess(ClipData.java:942)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9850)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9856)
      at android.content.Intent.prepareToLeaveProcess(Intent.java:9835)
      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1610)
      at android.app.Activity.startActivityForResult(Activity.java:4487)
      at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
      at android.app.Activity.startActivityForResult(Activity.java:4445)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
      at android.app.Activity.startActivity(Activity.java:4806)
      at android.app.Activity.startActivity(Activity.java:4774)
      at com.example.wasi.familyschedualer.invitingPpl.emailPpl(invitingPpl.java:64)






      java android file email






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 at 3:51

























      asked Nov 21 at 3:20









      wasi hassan

      215




      215





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53404803%2fandroid-studio-attachment-not-attaching-to-email%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53404803%2fandroid-studio-attachment-not-attaching-to-email%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'