[android-developers] Re: Send email in background

2010-04-09 Thread RMD
Just for anybody who comes across this link wondering the same thing, this worked for me: http://www.androidsnippets.org/snippets/166/ I only used a gmail account, but it worked. Good luck. On Apr 7, 8:32 am, RMD wrote: > Thanks for all the responses.  I was just getting the phone toem

[android-developers] Re: Send email in background

2010-04-07 Thread RMD
;, knowing that I will burn up a few hours trying it see it work. thanks again, Robert On Apr 5, 9:39 am, RMD wrote: > Is there and accepted way to send an email in the background? > > RMD -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Re: Force Close

2010-04-06 Thread RMD
intln > needs a message" was caused by ex.getMessage(). Message can be null, > use ex.printStackTrace() to track down the source of error. > > On Apr 5, 7:31 pm, RMD wrote: > > > I've narrowed it down to this line in the sendSMS method > > >            

[android-developers] Re: Send email in background

2010-04-05 Thread RMD
Thanks! Robert On Apr 5, 11:38 am, Jiri wrote: > See this: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > Jiri > > On 05/04/2010 15:58, Mark Murphy wrote: > > > > >> Is there and accepted way to send an email in the background? > > > You would need to integrate

[android-developers] Re: Force Close

2010-04-05 Thread RMD
I've narrowed it down to this line in the sendSMS method PendingIntent pi = PendingIntent.getActivity(this, 0,new Intent(this, SimpleSMS.class), 0); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Force Close

2010-04-05 Thread RMD
At the risk of being annoying I'll keep on sharing... I put this catch in for when I try to send a SMS try { sms.sendSMS(phoneNo, v); } catch (Exception ex) { Log.d("EXCEPTION SendSMS

[android-developers] Re: Force Close

2010-04-05 Thread RMD
Mark I really appreciate your help. It can frustrating to learn a new language. I have tried different logcat options trying to sift out some of the chatter, but at this point I'm not sure what is chatter and what is of value. ./adb logcat ActivityManager:D myProject:V *:S On Apr 5, 10:38 am,

[android-developers] Re: Force Close

2010-04-05 Thread RMD
Thanks, There appear to be a bunch of errors: E/dalvikvm( 237): Unable to open stack trace file '/data/anr/ traces.txt': Permission denied I'm new to java and down in the log I see an "uncaught exception". I guess a figure out exception handling and do it on the sendSMS class? adb logcat resu

[android-developers] Force Close

2010-04-05 Thread RMD
The class below sends and SMS message onLocationChange of the GPS, well I want it to anyway. Alone it works fine, but as a class it doesn't. If I comment out the code in sendSMS() the program doesn't crash on the phone but it also doesn't send the SMS. The same code runs as a standalone sends SM

[android-developers] Send email in background

2010-04-05 Thread RMD
Is there and accepted way to send an email in the background? RMD -- 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, sen

[android-developers] Re: Displays on emulator, not on phone

2010-04-05 Thread RMD
I think I found it. getBestProvider() Thanks again for your help everyone, rd42 On Apr 5, 8:41 am, RMD wrote: > >No, LocationManager.GPS_PROVIDER, presently, has a value of "gps". It's > >more that, in case for some crazy reason they change that convention, > &

[android-developers] Re: Displays on emulator, not on phone

2010-04-05 Thread RMD
>No, LocationManager.GPS_PROVIDER, presently, has a value of "gps". It's >more that, in case for some crazy reason they change that convention, Great info, thanks. Would would be a good way to code it if I want the LocationManager to use network if GPS is not available, like when your in a buildi

[android-developers] Re: Displays on emulator, not on phone

2010-04-04 Thread RMD
I had tried LocationManager.GPS_PROVIDER but for some reason I didn't work. I can't remember now if I tried it before or after I realized the GPS was off :) LocationManager.GPS_PROVIDER is supposed to use whatever location source is available right? Thanks, RMD On Apr 3, 8:05 am, M

[android-developers] Re: Displays on emulator, not on phone

2010-04-03 Thread RMD
es("network", 0, 0,onLocationChange); } else { locm.requestLocationUpdates("gps", 0, 0,onLocationChange); } Thanks Again, RMD On Apr 2, 8:02 pm, HeHe wrote: > someone said Config.DEBUG or Config.RELEASE may help. > > however, when i build and run my apk b

[android-developers] Displays on emulator, not on phone

2010-04-02 Thread RMD
The following code will display location data on the screen in the emulator but not on an actual device. Any ideas on why? Thank you for any help. line from android manifest: .java file: package xxx..; import java.util.ArrayList; import java.util.List; import android.app.Activity; i