email - Sending e-mail on Android automatically -


in order send e-mail without user intervention devices (nexus7 & samsung galaxy s5) followed procedures described in send email in service (without prompting user)

and http://www.jondev.net/articles/sending_emails_without_user_intervention_(no_intents)_in_android

both sent e-mail correctly, end popup message "gmail has stopped" on device, not thrustworthy users of app , makes both solutions unusable.

is there solution, or how can rid of error?

logcat shows following errors:

03-17 11:44:32.324: i/gmail(2797): sending provider changed intent: intent { act=android.intent.action.provider_changed dat=content://gmail-ls/unread/^i (has extras) } 03-17 11:44:32.341: i/gmail(2797): sending provider changed intent: intent { act=android.intent.action.provider_changed dat=content://gmail-ls/unread/^iim (has extras) } 03-17 11:44:32.365: i/gmail(2797): notifyaccountchanged 03-17 11:44:32.368: i/gmail(2797): getaccountscursor 03-17 11:44:32.369: w/gmail(2797): sync complete account: account:-654877552 03-17 11:44:32.379: w/gav2(2797): thread[syncadapterthread-1,5,main]: dispatch call queued.  need call gaservicemanager.getinstance().initialize(). 3-17 11:44:32.380: e/androidruntime(2797): fatal exception: syncadapterthread-1 03-17 11:44:32.380: e/androidruntime(2797): process: com.google.android.gm, pid: 2797 03-17 11:44:32.380: e/androidruntime(2797): java.lang.nullpointerexception: attempt invoke virtual method 'java.lang.string android.net.uri.getscheme()' on null object reference 03-17 11:44:32.380: e/androidruntime(2797):     @ android.content.contentresolver.openinputstream(contentresolver.java:630) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.av.b(sourcefile:6237) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.bh.hc(sourcefile:4213) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.bh.<init>(sourcefile:4186) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.bo.a(sourcefile:3898) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.operations.b(sourcefile:628) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.av.a(sourcefile:5936) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.mailsync.a(sourcefile:899) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.mailengine.a(sourcefile:2432) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.mailengine.a(sourcefile:2129) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.bp.a(sourcefile:127) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.common.b.onperformsync(sourcefile:33) 03-17 11:44:32.380: e/androidruntime(2797):     @ com.google.android.gm.provider.bp.onperformsync(sourcefile:82) 03-17 11:44:32.380: e/androidruntime(2797):     @ android.content.abstractthreadedsyncadapter$syncthread.run(abstractthreadedsyncadapter.java:259) 03-17 11:44:32.417: i/notifutils(2797): validating notification, mapsize: 1 getattention: true ignoreunobtrusive: false 

are able stack trace of error causing gmail stop? if on android studio, under logcat.

you may need remove filter log selecting dropdown on far right of logging area , selecting no filters.

this troubleshoot error causing crash.

related: i'd suggest moving logic sending email server, can better monitor delivery, spam compliance (in us), , usage rates. if don't need send email user, may better solution.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -