I have an app done with Codename One that I have deployed to Android and iOS. Now I want to deploy it to a Lenovo Thinkpad Tablet 2, running Windows 8.
There seem to be several options but I can't get any of them to work.
I have got NetBeans 7.4 installed and working on the tablet, so I could presumably rewrite my app as an ordinary Java application and run the JAR file. However, I need to access the device's location services and I don't see any way to do this in standard Java. I included the Codename One JARs as libraries and used LocationManager but while that compiled, I got a NPE for LocationManager at runtime. So that approach seemed no good.
I used Codename One to build the app for Windows Phone. This gave me a .xap file. I clicked on the link and downloaded the file. I then tried to open the file and got "How do you want to open this type of file?" It suggested looking for an app in the Store, which then suggested mZIP and Build it Beta, neither of which seemed promising. I also got a message saying "Internet Explorer blocked content with security certificate errors" (which may or may not be relevant...IE seems to find certificate errors with a huge array of sites, including Google). So that approach seemed no good either.
I used Codename One to build the app for J2ME. This gave me a .jad file. I clicked on the link and downloaded the file. However, I got the same results as for the .xap file. Windows did not recognise this and suggested looking in the Store, which came up with some seemingly irrelevant apps. I also got a message "Internet Explorer blocked content with security certificate errors". So this approach also seemed no good.
My questions are: (1) is there any way I can compile my existing Codename One to run on a Windows 8 tablet; (2) or is there any way I can access location services on a Windows 8 tablet from Java?