1

I'm facing some rare problem. I have a device running on Android API 14. Anytime I try to use MapActivity I get the same error - java.lang.NoClassDefFoundError: android.security.MessageDigest. On other 99% devices it works perfect.

After some digging, I've found root of the problem.

The error is the result of a device manufacturer or ROM creator using an older maps library with a new version of Android. (more at What is 'android.security.MessageDigest''?)

The functionality of MapActivity isn't required for application, so I want to check if user has such device.

How can I get user's google api version on android?

Community
  • 1
  • 1
BoredT
  • 1,590
  • 15
  • 19

1 Answers1

0

Use Google map v2.
You want to use Google map console to register SHA-1 for signing the key in Google api console.
The complete tutorial can be found here.

jimpanzer
  • 3,470
  • 4
  • 44
  • 84
Shadow
  • 6,864
  • 6
  • 44
  • 93
  • Thanks for reply. Google map v2 doesn't use android.security.MessageDigest? Are you completely sure? – BoredT Apr 25 '13 at 09:40