Problem :: While launching the android app in emulator, when clicking the app icon to run the application in emulator, I couldnot run the app. The pop up comes stating "Application is not installed on your phone".
Cause :: This problem occurs if u have the duplicate Activity in the App Manifest file. For eg. The SplashScreenActivity has duplicate entry in Manifest file.
Solution :: Make sure u have declared single Activity class in Manifest file.
To decrease the size of mobile application in J2ME Polish, it uses obfuscator(Proguard). It renames all the generated classes in it's own way. While deploying the same jar in web application, we cannot use the class name of app.
Eg. We use UseDTO class in J2ME Polish, then it is renamed as aa.class by Proguard.
To overcome the solution, use 'keep' option of obfuscator in build.xml file of J2ME Polish app.
I had unexpected shutdown of my PC due to power failure. After I restarted my PC and opened the Netbeans (version 6.7.1), I got error java.io.IOException : Caused: java.io.IOException: read past EOF. Due to it I couldnot be able to auto complete the code.
For the above mentioned problem, I found a simple solution.
JUST REMOVE THE .netbeans folder in ur home directory.
Let's take a scenario, where we provide the feature for user to select an option from the given list of options and press RIGHT key in the mobile to select that option. To implement this scenario in J2ME, we don't have other options but to use Canvas Class to track which key is pressed by the user.
However, we can implement this feature in J2MEPolish easily. For that we need to use the class de.enough.polish.ui.List and override the method " public void keyPressed(int keyCode)" in the List. However don't forget to override this method by "super.keyPressed(code)".