Android Can Not Find A Class 'javax.activation.mimetypesfiletypemap', But That Class Is In The Jre Libs Locates At Rt.jar
In my android project, I use a external jar which will use the class Here is the error information: 06-13 02:45:18.586: ERROR/dalvikvm(228): Could not find class 'javax.activation.
Solution 1:
The javax.activation
package is not part of the Android core (as you can see, it's not in the package index), so you will not be able to use that Jar without a recompiled javax.activation
jar (if there is one at all). What does this external Jar do?
Solution 2:
String ext= MimeTypeMap.getFileExtensionFromUrl(uri)
By this you can get extension of file and then compare with different mimetype
Post a Comment for "Android Can Not Find A Class 'javax.activation.mimetypesfiletypemap', But That Class Is In The Jre Libs Locates At Rt.jar"