Adding Activ.jar and mail.jar to an Android app


Hi, I am trying to create an email application on Android using the Java API. I added activ.jar and mail.jar to my android app. But I get an error: Could not find the javax.mail.internetMimebodyPart $ MimePartDataHandl er class referenced by the javax.mail.internet.MimeMessage.getDataHandler method.

I added jar files using the "Add Jars" option available in Eclipse.

Please help me.

+3
source share
2 answers

Android is not a complete Java environment — it lacks the many classes that are present in the JRE.

JRE Android: , .

+1

: addnal.jar , . , .

+1

Source: https://habr.com/ru/post/1795960/


All Articles