On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman <[email protected]> wrote: > But if I build with API 10 on run on Android 2.2.2 then my > MainActivity throws a ClassNotFoundException. > > Something in the Activity constructor for API 10 is barfing in Android > 2.2.2, which I guess is no real surprise.
It's surprising to me. What class is not being found? > Is there a good way to fix this short of modifying the other guy's > code to remove the call to createInsecureRfcommSocketToServiceRecord > and always call createRfcommSocketToServiceRecord? Compile it to a JAR using API Level 10. Reference the JAR from your API Level 8 project. I'm a bit dubious about NoSuchMethodError (I would expect a VerifyError), but otherwise this might work. The other developer really should be using Build.VERSION, just for this sort of reason. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

