Re: [android-developers] Confirmation when mail has been sent

2012-05-30 Thread IronBlossom
Same issue , just the difference is intent type, 
(intent.setType(application/*), because im sending email with attachments 
(pdf or zip). But my problem is with the attachment.The Intent.EXTRA_STREAM 
read from sdcard but after sending the mail i want to delete it from 
sdcard. So i used startActivityForResult and onActivityResult i delete that 
file from sdcard. Everything works well except the received mail has no 
attachment(not even the file name with 0 size). Think the sending process 
done by some other thread rather than a UI thread. and the deletion task is 
done from the UI thread even before the sending process is complete.

On Wednesday, September 29, 2010 5:07:07 PM UTC+6, Mark Murphy wrote:

 On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
  When the user has actually send the mail, I want to know whether the
  mail has been sent or not?

 Sorry, but that is not part of the ACTION_SEND system, as far as I know.

 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in London: http://skillsmatter.com/go/os-mobile-server



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Confirmation when mail has been sent

2012-05-30 Thread James Black
What I settled on it to store the file information in a list, and in on
destroy I delete them.
On May 30, 2012 7:24 AM, IronBlossom i4idrh...@gmail.com wrote:

 Same issue , just the difference is intent type,
 (intent.setType(application/*), because im sending email with attachments
 (pdf or zip). But my problem is with the attachment.The Intent.EXTRA_STREAM
 read from sdcard but after sending the mail i want to delete it from
 sdcard. So i used startActivityForResult and onActivityResult i delete that
 file from sdcard. Everything works well except the received mail has no
 attachment(not even the file name with 0 size). Think the sending process
 done by some other thread rather than a UI thread. and the deletion task is
 done from the UI thread even before the sending process is complete.

 On Wednesday, September 29, 2010 5:07:07 PM UTC+6, Mark Murphy wrote:

 On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
  When the user has actually send the mail, I want to know whether the
  mail has been sent or not?

 Sorry, but that is not part of the ACTION_SEND system, as far as I know.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in London: 
 http://skillsmatter.com/go/os-**mobile-serverhttp://skillsmatter.com/go/os-mobile-server

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Confirmation when mail has been sent

2010-09-29 Thread Amit
HI All,

I am using the configured mail applications on the device to send e-
mail from my android application.

When the user has actually send the mail, I want to know whether the
mail has been sent or not? How can i get the same information back in
my Android application.

Here is my current code snippet-

intent = new Intent(Intent.ACTION_SEND);
intent.setType(text/plain);
intent.putExtra(Intent.EXTRA_SUBJECT, my subject);
intent.putExtra(Intent.EXTRA_TEXT, msgBody);
try {
startActivity(Intent.createChooser(intent,Select Any));
}catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this, There are no email clients installed.,
Toast.LENGTH_SHORT).show();


Kindly Help

Best Regards
Amit

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Confirmation when mail has been sent

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
 When the user has actually send the mail, I want to know whether the
 mail has been sent or not?

Sorry, but that is not part of the ACTION_SEND system, as far as I know.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Confirmation when mail has been sent

2010-09-29 Thread { Devdroid }
On 29 September 2010 13:02, Amit amitmishr...@gmail.com wrote:
 HI All,

 I am using the configured mail applications on the device to send e-
 mail from my android application.

 When the user has actually send the mail, I want to know whether the
 mail has been sent or not? How can i get the same information back in
 my Android application.

You can't. Basically please note you are not sending the mail as you falsely
believe. You are passing some data to external application which claims
it knows how to send it. But these two are NOT equal. If you want to
ensure mail is sent, you have to deal with it yourself, but I'd rather
not recommend these unless you really got a valid reason to.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en