I have an Eclipse project in which I have 2 entrypoints: a GWT web application and a mGWT+phonegap(+Android) mobile app. There are under the same project, as they are based on the same Java code. Debugging let me suspect that within the web application, the Android implementation are used, instead of the JDK implementation. Why, because during debugging, I have to choose the correct java file (for instance Float.java). How can I ensure that the Web application does not use the Android libraries?
Share
You don’t need your Android-SDK in the GWT project. Don’t include it in your Web-Project.
Split the two project and link the source Files with linked folders.
GWT Application with two entry points
Android Native Application
In your Android Project you can link the folder from your GWT Application:
http://deviltechie.wordpress.com/2010/12/06/linking-an-external-folder-to-eclipse-flex-builder-project/