It seems there is a lot of confusion regarding adding an external library into the Android project.
If you use Eclipse and you add the library simply via 'Properties' -> 'Java Build Path' -> 'Libraries' then you can get into a state that you can build your Android application but when you upload it into the Android device it will not work and will be forced to close.
When you then check LogCat you may see errors like:
- Could not find class ... or java.lang.ClassNotFoundException.
- Failed resolving ...
How to add library into Android project
To add a library into the project you need to import it instead of adding it via project properties. Here is the procedure how to do it:
- Create a new folder libs in your project.
- Right click on 'libs' and choose 'Import...' -> 'General/File System' -> 'Next'.
- Then click 'Browser' button for 'From directory' and navigate to directory with eneter-messaging-android' library.
- Select check box for eneter-messaging-android.
- Press 'Finish'