Hi all,

   Can anyone help me as how to send an Email programatically from an
android emulator.I got a sample code from this website..

 
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/

But the code doesn't seem to be working in the new SDK

I later tried a program using JavaMail API .It worked fine when i ran
it as a java application.But when ran the same code after converting
it into an android project i got the following error.

12-11 09:58:03.117: WARN/dalvikvm(209): Link of class 'Ljavax/
activation/DataHandler;' failed
12-11 09:58:03.127: WARN/dalvikvm(209): VFY: unable to resolve new-
instance 322 (Ljavax/activation/DataHandler;) in Land/mail/
GMailSender;
12-11 09:58:03.127: WARN/dalvikvm(209): VFY:  rejecting opcode 0x22 at
0x0008
12-11 09:58:03.127: WARN/dalvikvm(209): VFY:  rejected Land/mail/
GMailSender;.sendMail (Ljava/lang/String;Ljava/lang/String;Ljava/lang/
String;Ljava/lang/String;)V
12-11 09:58:03.127: WARN/dalvikvm(209): Verifier rejected class Land/
mail/GMailSender;
12-11 09:58:03.127: DEBUG/AndroidRuntime(209): Shutting down VM
12-11 09:58:03.127: WARN/dalvikvm(209): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
12-11 09:58:03.137: ERROR/AndroidRuntime(209): Uncaught handler:
thread main exiting due to uncaught exception
12-11 09:58:03.167: ERROR/AndroidRuntime(209): java.lang.VerifyError:
and.mail.GMailSender
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
and.mail.mail.onCreate(mail.java:14)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.os.Handler.dispatchMessage(Handler.java:88)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.os.Looper.loop(Looper.java:123)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
java.lang.reflect.Method.invokeNative(Native Method)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
java.lang.reflect.Method.invoke(Method.java:515)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
12-11 09:58:03.167: ERROR/AndroidRuntime(209):     at
dalvik.system.NativeStart.main(Native Method)
12-11 09:58:03.177: INFO/Process(53): Sending signal. PID: 209 SIG: 3


I searched for previous posts in this group for help but i could not
find a solution .Could somebody help me...
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to