Re: [android-developers] Multiple Overlays on Map slowing down pan/zoom

2012-09-16 Thread TreKing
On Sat, Sep 15, 2012 at 11:17 PM, Apurva Goyal tech.apu...@gmail.comwrote: So basically I should draw all road segments in a single overlay and just change colors in ondraw method? Yes, from your brief description, I think that's what I'd do. And the pruning of segments that were not visible.

[android-developers] Broadcast Receiver to listen when any app launch?

2012-09-16 Thread Sohan badaya
I want to be notified when any app launch like Calculator, Email etc, so I tried below code #Attempt 1 receiver android:name=.ApplicationLaunchReceiver intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER /

[android-developers] Re: ListView elements in Dialogs never expand to full width

2012-09-16 Thread Alexander Mikhnin
Thank you for the solution. Linear Layout works as well. среда, 1 апреля 2009 г., 13:50:50 UTC+4 пользователь Matthias написал: Okay, I found (once again), a rather ugly workaround for this: Putting the textview in layout object does the job. Like this: ?xml version=1.0 encoding=utf-8?

[android-developers] Setting the dimensions of a bitmap for a live wallpaper

2012-09-16 Thread TimeManx
http://stackoverflow.com/questions/12373790/setting-the-dimensions-of-a-bitmap-for-a-live-wallpaper# I'm creating a live wallpaper and I'm kinda confused about how I should set the dimensions of the bitmap. Consider that my wallpaper sets a background, I want that to behave as a regular

[android-developers]

2012-09-16 Thread Ibrahim Sada
Hello guys When i am openings the Eclipse then i am getting this error... The user operation is wating for 'BULIDING WORKSPACE' to complete And my whole code is getting corrupted... Please dear help me out.. Thanx for in Advance... -- You received this message because

[android-developers] Re: Copy protection

2012-09-16 Thread Vidal Pérez Leida
Ok. So I will use only the licensing, you are right, u think that if somebody want to reverse engineering your app, they will find the way to do it, and its not correct to use deprecated methods. Thanks. El sábado, 15 de septiembre de 2012 17:44:50 UTC+2, Vidal Pérez Leida escribió: Hi. If

[android-developers] send a email ?

2012-09-16 Thread mohammed Nuhail
How to send a mail programatically ? -- 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] problem in spinner...

2012-09-16 Thread Sobia Awan
Hi, i have an issue in spinner..i applied intent on spinner options when i select the spinner option it should go to new activity directly ,but its working little bit wrong when i select the option first it go to back means spinner activity then goes to new activity ...Any Help please! Thank

[android-developers] turing test

2012-09-16 Thread hosein bitaraf
آزمایش تورینگ شبیه سازی مکالمه است. مکالمه بین شما و کامپیوتر انجام میشود. امتحان کنید بسیار جالبه. این لینک یک پیاده سازی از آزمایش تورینگه: http://testi http://testing.turinghub.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] sending email ?

2012-09-16 Thread mohammed Nuhail
how to send email in background ? -- 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

Re: [android-developers] sending email ?

2012-09-16 Thread Kristopher Micinski
use a SMTP library and send it over an internet connection. kris On Sun, Sep 16, 2012 at 7:21 AM, mohammed Nuhail nuhail...@gmail.com wrote: how to send email in background ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] problem in spinner...

2012-09-16 Thread Ibrahim Sada
Hey u still strcuked in that same problm.. On 16 September 2012 16:01, Sobia Awan juwerian.so...@gmail.com wrote: Hi, i have an issue in spinner..i applied intent on spinner options when i select the spinner option it should go to new activity directly ,but its working little bit wrong

Re: [android-developers] turing test

2012-09-16 Thread Kristopher Micinski
It doesn't work very well... A: hey, what should I do if I found my friend's son's pot? B: Hey. kris 2012/9/16 hosein bitaraf hobby@gmail.com: آزمایش تورینگ شبیه سازی مکالمه است. مکالمه بین شما و کامپیوتر انجام میشود. امتحان کنید بسیار جالبه. این لینک یک پیاده سازی از آزمایش تورینگه:

[android-developers] Re: Can I install our app from an APK and then update it with Google Play?

2012-09-16 Thread Martin Ellison
Thanks to everyone for their replies; we will try this out and see. On Friday, 14 September 2012 13:45:32 UTC+8, Martin Ellison wrote: What I want to do is to install our app via an APK, but to push updates using Google Play. Is there any way to tie the two, so that Play can recognise that

Re: [android-developers] General question about Android architechture

2012-09-16 Thread Kristopher Micinski
On Sat, Sep 15, 2012 at 10:17 PM, Kristopher Micinski krismicin...@gmail.com wrote: [snip..] - Unsure if you were around, but the NDK isn't new, it's been around since Java :-) Just in case someone wants to nitpick, I'm technically wrong, the NDK hasn't been around since Java, but JNI has,

Re: [android-developers] sending email ?

2012-09-16 Thread Muhammad Salahuddin
How to delete SMS of particular Number in android programitically just after recieving On Sun, Sep 16, 2012 at 4:27 AM, Kristopher Micinski krismicin...@gmail.com wrote: use a SMTP library and send it over an internet connection. kris On Sun, Sep 16, 2012 at 7:21 AM, mohammed Nuhail

[android-developers] Problem in Emulator !

2012-09-16 Thread Meena Rengarajan
[2012-09-16 17:45:51 - QuizeActivity] New emulator found: emulator-5554 [2012-09-16 17:45:51 - QuizeActivity] Waiting for HOME ('android.process.acore') to be launched... [2012-09-16 17:47:02 - QuizeActivity] HOME is up on device 'emulator-5554' [2012-09-16 17:47:02 - QuizeActivity] Uploading

[android-developers] send a email ?

2012-09-16 Thread lbendlin
Implement your own SMTP client. -- 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

Re: [android-developers] Multiple Overlays on Map slowing down pan/zoom

2012-09-16 Thread lbendlin
If you find a way to represent the road segments as annotations (with good zooming visual result) then you get the pruning for free. The maps API handles the visibility ckecks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Sobia Awan
Its depend on your processor ...In this situation you have to close your emulator and start it again ... On Sun, Sep 16, 2012 at 5:18 PM, Meena Rengarajan meenasoft...@gmail.comwrote: [2012-09-16 17:45:51 - QuizeActivity] New emulator found: emulator-5554 [2012-09-16 17:45:51 - QuizeActivity]

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Kumar Bibek
You can increase the time out in Android-ADB from the Eclipse preferences.. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Sep 16, 2012 at 5:59 PM, Sobia Awan juwerian.so...@gmail.comwrote: Its depend on your processor ...In this situation

Re: [android-developers] problem in spinner...

2012-09-16 Thread Sobia Awan
No! its a different... On Sun, Sep 16, 2012 at 4:28 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote: Hey u still strcuked in that same problm.. On 16 September 2012 16:01, Sobia Awan juwerian.so...@gmail.com wrote: Hi, i have an issue in spinner..i applied intent on spinner options

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Meena Rengarajan
Yeah as you said, i have done. Now it is running . But i wanna debug step by step. I couldnt be able to do debug. Why so ? On Sun, Sep 16, 2012 at 6:00 PM, Kumar Bibek coomar@gmail.com wrote: You can increase the time out in Android-ADB from the Eclipse preferences.. *Thanks and Regards,

[android-developers] Icons become very large in low resolution phones

2012-09-16 Thread sha256
I'm developing a keyboard modifying the latinIME keyboard. my keyboard works just fine in HVGA skin in emulator, But the icons become very large in QVGA skin. I've tested in Samsung Galaxy DUOS it shows the same problem. Only two rows are shown. and only 4 keys cover the whole width. Any help

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Meena Rengarajan
Now, process is waiting for the Debugger to Attach, it is showing me . Sense, debugger runs on emulator but i guess slow performance ! On Sun, Sep 16, 2012 at 6:04 PM, Meena Rengarajan meenasoft...@gmail.comwrote: Yeah as you said, i have done. Now it is running . But i wanna debug step by

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Kumar Bibek
Looks like... Try restarting eclipse. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Sep 16, 2012 at 6:11 PM, Meena Rengarajan meenasoft...@gmail.comwrote: Now, process is waiting for the Debugger to Attach, it is showing me . Sense,

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Meena Rengarajan
Sure :-) Let me try ! On Sun, Sep 16, 2012 at 6:13 PM, Kumar Bibek coomar@gmail.com wrote: Looks like... Try restarting eclipse. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Sep 16, 2012 at 6:11 PM, Meena Rengarajan

Re: [android-developers] Problem in Emulator !

2012-09-16 Thread Meena Rengarajan
[2012-09-16 18:26:37 - QuizeActivity] Automatic Target Mode: launching new emulator with compatible AVD 'Android2.2' [2012-09-16 18:26:37 - QuizeActivity] Launching a new emulator with Virtual Device 'Android2.2' [2012-09-16 18:27:05 - Emulator] Failed to allocate memory: 1455 [2012-09-16 18:27:05

Re: [android-developers] Re: Android LVL

2012-09-16 Thread vinay kumar
yes, we need to upload the app without publishing it. For testing it we need tester credentials too. On Sat, Sep 15, 2012 at 10:06 PM, Ichsan ich...@gmail.com wrote: If you read the documentation, it is clear that you need to upload the app without publishing it. -- You received this

[android-developers] Re: Icons become very large in low resolution phones

2012-09-16 Thread sha256
No one faced this kind of problem? -- 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

Re: [android-developers] Where to find the definition/description of Android's SMS_RECEIVED or similiar thing?

2012-09-16 Thread tomLinux
Thank you very much for your reply! The Manifest page is helpful! With it I can find the definition ofCHANGE_NETWORK_STATE . But still for the 1st item, even the short term SMS_RECEIVED, I cannot find official document of it. That makes me confused. So how could people write program by using it?

[android-developers] PDF help?

2012-09-16 Thread Arathon
Just experimenting with a side project, I've created a text box, where the user is able to input text. How can i save this as a PDF? Cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Android LVL

2012-09-16 Thread janvi
Ok fine thanks for this I will try this i,e il upload the app and try to test it and will require your help if something goes wrong Plz help me out here Thanks in advance On Sunday, September 16, 2012 7:41:49 PM UTC+5:30, Vinay Kumar wrote: yes, we need to upload the app without publishing

Re: [android-developers] Where to find the definition/description of Android's SMS_RECEIVED or similiar thing?

2012-09-16 Thread Kristopher Micinski
I don't think I understand you. It sounds like you want to know: how do I know when I need permission? Generally the API for stuff will tell you. For example, to catch the SMS_RECEIVED permission you need a permission to receive texts, RECEIVE_SMS. If the API doesn't tell you when you need the

Re: [android-developers] Re: Android LVL

2012-09-16 Thread janvi
Thanks for this I will try this i,e il upload the app and try to test it and will require your help if something goes wrong Plz help me out here Thanks in advance On Saturday, September 15, 2012 10:06:44 PM UTC+5:30, Ichsan wrote: If you read the documentation, it is clear that you need

Re: [android-developers] Re: Android LVL

2012-09-16 Thread janvi
I need the following information What are actually testing credentials? Is it enough to add a test account(gmail account of tester) in the option provided in the edit profile page of google publisher account? Still iam i missing any thing ?or this is the only step needed for this? On Sunday,

Re: [android-developers] Re: Android LVL

2012-09-16 Thread vinay kumar
While uploading your app on market(google play). you have to enable the Licensing option.there you probably you need to enter your(tester) gmail id. That will be your tester credentials. On Sun, Sep 16, 2012 at 9:35 PM, janvi jagruthi.bha...@gmail.com wrote: I need the following information

[android-developers] Re: Implementing OnGestureListener on SurfaceView

2012-09-16 Thread NikDmit
Hello. Check this link http://www.java2s.com/Code/Android/UI/TappableSurfaceView.htm. It might help. Cheers! -- 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

[android-developers] Re: Implementing OnGestureListener on SurfaceView

2012-09-16 Thread NikDmit
Also, this might help you http://scanplaygames.com/?p=168 -- 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] Massive unistalls starting Sept 6

2012-09-16 Thread Jaxily
Has anyone experienced lots of uninstalls across many apps, hope this is a problem with the stats in google. -- 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

[android-developers] Show Android store when application is not installed

2012-09-16 Thread ViToBrothers
Let me describe my problem. I want to start my application when user press on a link in a Android standard browser. For that I use code from the article How to launch the app from the Web pagehttps://groups.google.com/forum/#!msg/android-developers/s0DGBknT11o/ehHDOSi1_5wJ?. Everything works

[android-developers] Lunar Lander Example - Thread Safety

2012-09-16 Thread sdb
I'm new to android development and have been studying the Lunar Lander example included in the SDK to get a better understanding of how the SurfaceView works. I noticed that the mRun member of the LunarThread class is updated by the setRunnable() method of the LunarThread class which is

[android-developers] Using android

2012-09-16 Thread Michael S. Levinson
I am a developer very very small d. I'm really the designer of educational software using three dolphins to reach the alphabet and numbers. My program is in an earlier version of Flash. My quest chin: Do I upgrade the Flash, or move it to html 5 (it's a great animation of three dolphins- a game

[android-developers] PhoneStateListener is not working in sleep mode

2012-09-16 Thread endru
I'm writing an app, which listens to GSM signal strength. I've created a service, in which I put the PhoneStateListener. The problem is, that PhoneStateListener does not listen to any changes while phone is in sleep mode. I really need to solve that problem, could anyone help me with

[android-developers] EXPRESSIVE SPEECH SYNTHESIS

2012-09-16 Thread Mauricio Restrepo
I am working on a Expressive TTS for android by using the accelerometer. -- 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] Re: AbstractAccountAuthenticator.getAccountRemovalAllowed query

2012-09-16 Thread Gautham N S
Facing the same problem. Did you find any solution for this? On Friday, 12 March 2010 15:20:17 UTC+5:30, sukumar wrote: hi, I'm trying to create a sync account which should not be deleted by user ( On selecting RemoveAccounts from Accounts settngs). For that, I overriden

[android-developers] Google Play Services

2012-09-16 Thread Manuel Bauer
Hi, at Google IO 2012 there was this great talk of integrating Google APIs and Cloud Endpoints with Authentication in Android Apps ( http://www.youtube.com/watch?v=dylFNrvZ_3U). But to use this great service I need the google-play-services.jar file. My question is, when will it be released?

Re: [android-developers] Re: Implementing OnGestureListener on SurfaceView

2012-09-16 Thread ramesh babu
thank u brother -- 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

[android-developers] comments in android

2012-09-16 Thread DC
sorry for my last post this is the caret system for comment in android projects *in XML* !-- *comment here* -- *Java single line comment: * //*comment here* *Java multi line comment: * /* *comment here* */ post by *DilSap* -- You received this message because you are subscribed to the

Re: [android-developers] Massive unistalls starting Sept 6

2012-09-16 Thread Francisco Marzoa
They have had problems with stats on September, but normally what happens is that they are not updated, not massive uninstalls... I didn't experiment such problem at least. El 16/09/2012 20:45, Jaxily jacobrjohn...@gmail.com escribió: Has anyone experienced lots of uninstalls across many apps,

[android-developers] Android Developer Console Issue - cannot finish registration

2012-09-16 Thread Panpanisca Android developer
I'm trying to finish my Android developer registration on the Developer Console, but it looks as though the payment part is broken. When I reach the point of paying the $25 fee, I am transfered to a Google Wallet page stating that:

[android-developers] Your Registration to Google Play is still being processed

2012-09-16 Thread Johnl Smith
hello,two days passed, my google play publishing status is still“ Your Registration to Google Play is still being processed.” AndI registed my checkout today . what is the problem? How should i do to solve it, thank you! -- You received this message because you are subscribed to the Google

Re: [android-developers] Show Android store when application is not installed

2012-09-16 Thread Mark Murphy
On Sun, Sep 16, 2012 at 2:55 PM, ViToBrothers vitobrothers...@gmail.com wrote: Let me describe my problem. I want to start my application when user press on a link in a Android standard browser. For that I use code from the article How to launch the app from the Web page?. Everything works good

[android-developers] Re: Concurrent 3G and WiFi : Socket creation problem

2012-09-16 Thread glex
The problem has been solved. I updated my routing table for appropriate source routing and two default gateways (for different source IP addresses) Thanks, GLEX On Wednesday, 29 August 2012 13:09:29 UTC-4, glex wrote: I am aware that concurrent usage of WiFi and 3G/4G is not supported on

[android-developers] Licensing sample issue - Application error: 3

2012-09-16 Thread Ristar
i have set the correct Developer public key in the source code, made the apk, signed it and uploaded it to Google, and installed it to my phone. but my phone keeps returning the message Application error:3. wat should i do? -- You received this message because you are subscribed to the Google

[android-developers] Re: comments in android

2012-09-16 Thread Lew
DC wrote: sorry for my last post this is the caret system for comment in android projects *in XML* !-- *comment here* -- *Java single line comment: * //*comment here* *Java multi line comment: * /* *comment here* */ What does caret system mean? You forgot /** * Javadoc

[android-developers] Re: Licensing sample issue - Application error: 3

2012-09-16 Thread Ristar
it's fine now... i guess it takes a few hours for Google to update whatever it needs to update. -- 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

Re: [android-developers] Massive unistalls starting Sept 6

2012-09-16 Thread Jaxily
Well my admob stats are down too, I hope they fix that. On Sunday, September 16, 2012 12:06:30 PM UTC-7, Fran wrote: They have had problems with stats on September, but normally what happens is that they are not updated, not massive uninstalls... I didn't experiment such problem at least.

Re: [android-developers] Re: Android LVL

2012-09-16 Thread janvi
Ok thank you for this Is this licensing option which I have to enable is provided as a field in the uploading form? Thanks in advance On Sunday, September 16, 2012 10:42:17 PM UTC+5:30, Vinay Kumar wrote: While uploading your app on market(google play). you have to enable the Licensing

[android-developers] Re: Licensing sample issue - Application error: 3

2012-09-16 Thread janvi
Hello Ristar Sorry for interrupting you. Iam also working on the same licensing feature of the android app and need some info from you Iam also facing the same error of *Application Error:3*.May I know the cause for this? The following is info which I need Once I

[android-developers] Re: Licensing sample issue - Application error: 3

2012-09-16 Thread Ristar
np. after u upload it to Google play, just sit on your hands for an hour or two, and then try again. u do *not* need to publish it for the licensing to work. that's wat i did: wait and try every now and then. if u have problems after that, then u've got a REAL problem on your hands,

Re: [android-developers] send a email ?

2012-09-16 Thread Asheesh Arya
with out user intervention or with user intervention? what is your exact requirement? -- 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,

Re: [android-developers] sending email ?

2012-09-16 Thread Asheesh Arya
plz refer this link sending mail in background!! http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Android LVL

2012-09-16 Thread vinay kumar
Yes. On Mon, Sep 17, 2012 at 9:08 AM, janvi jagruthi.bha...@gmail.com wrote: Ok thank you for this Is this licensing option which I have to enable is provided as a field in the uploading form? Thanks in advance On Sunday, September 16, 2012 10:42:17 PM UTC+5:30, Vinay Kumar wrote:

[android-developers] Re: WIN DEATH Logs

2012-09-16 Thread Sat
Guys please reply ... On Saturday, September 15, 2012 4:28:17 PM UTC+5:30, Sat wrote: Hi All, I am getting WIN DEATH: Window log with pause = false. This is not frequent but after this log the service which this activity uses is facing an ANR. Please tell me why this WIN DEATH: Window

[android-developers] Paypal in Android

2012-09-16 Thread Michael Leung
Hi all, I got a client which has an online shop using Paypal. They want to make an app which is the native android interface for their online shop. I planned to keep their payment gateway to be paypal, rather than switching to Google Checkout. Is it possible to release this kind of apps in

[android-developers] Re: WIN DEATH Logs

2012-09-16 Thread William Ferguson
Satish, if you want a response you're really going to have to provide much, much more information. Is a stacktrace generated? What does it look like? It seems like this error might be coming from a service that you are calling from an Activity?? Are you calling the service synchronously? Is it

[android-developers] hi...

2012-09-16 Thread Ibrahim Sada
Hi Dear Friends.. Can Any one help me out how to send a mail using code. Thanx in advance -- 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

Re: [android-developers] Re: WIN DEATH Logs

2012-09-16 Thread fahad mullaji
Sateesh, Did you check this? http://stackoverflow.com/questions/4253267/android-window-death-and-application-crash Thanks Fahad Mullaji On Mon, Sep 17, 2012 at 10:46 AM, Sat getsatonl...@gmail.com wrote: Guys please reply ... On Saturday, September 15, 2012 4:28:17 PM UTC+5:30, Sat

[android-developers] Re: Paypal in Android

2012-09-16 Thread William Ferguson
Only if you intend to violate the terms of your agreement with Google Play . 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. 2) You cannot use Google Play to charge for physical goods. William On Monday, September 17, 2012 3:30:14 PM

Re: [android-developers] Re: Play Store hijacking focus after in-app purchase dialog

2012-09-16 Thread kadmos
For this particular problem yes, and it was a total error/oversight on my part resulting in *startService()* being called a second time because the code i borrowed had it being invoked in a separate method i was still using. This other call was on an Activity object, which if i recall was what

Re: [android-developers] Re: Paypal in Android

2012-09-16 Thread Michael Leung
They are selling physical goods. Should I use paypal? I got there will be a free app which can buy some physical goods. On Mon, Sep 17, 2012 at 3:45 PM, William Ferguson william.ferguson...@gmail.com wrote: Only if you intend to violate the terms of your agreement with Google Play . 1) You

Re: [android-developers] hi...

2012-09-16 Thread Asheesh Arya
this is the code to send a mail with attachment import java.io.File; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import