email - How do i log all Exception in windows phone 8? -
i craete 1 app using emailcomposetask in windows phone8. it's working fine. @ final of sent mail throw exception. below image.
how can solve problem , why problem occurred?.
please me. in advance.
here code.
private void saveemailaddresstask_completed(object sender, taskeventargs e) { if (e.taskresult == taskresult.ok) { messagebox.show("email saved.."); } } private void emailaddresschoosertask_completed(object sender, emailresult e) { try { if (e.taskresult == taskresult.ok) { messagebox.show("selected email :" + e.email); } } catch (exception ex) { messagebox.show(ex.message); } } private void mail_tap(object sender, system.windows.input.gestureeventargs e) { try { emailcomposetask myemail_composetask = new emailcomposetask(); myemail_composetask.subject = "photowrite share"; myemail_composetask.body = "hi, sharing photowrite photo, hope it."; myemail_composetask.to = ""; myemail_composetask.show(); } catch (exception ex) { messagebox.show(ex.message); } }
on windows phone emulator, exception occurs when using email compose task. test email compose task on physical device.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394003(v=vs.105).aspx
you can check detail of exception.
Comments
Post a Comment