Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,761 Members 42,224 Now Online
XDA Developers Android and Mobile Development Forum

J2me To .apk

Tip us?
 
Dalamak
Old
(Last edited by Dalamak; 9th December 2008 at 01:00 AM.)
#1  
Dalamak's Avatar
Senior Member - OP
Thanks Meter 8
Posts: 298
Join Date: Dec 2008
Location: Newark
Default J2me To .apk

Looking for a program to convert .JAR to .APK so I can install programs/games on G1

The progam/app at http://www.netmite.com/android/ automatically converts .JAr to apk, but only does so from the Web, and I've tried to direct its url option to a a .JAR I've web hosted and it doesn't do anything, doesn't download the file or anything.

The sites that it gives you to choice from under its menu option suck, and don't allow files to be uploaded, most of the files don't support touch screen and don't work well with the G1's front soft keys.

J2ME MIDP Explorer just needs an option to install/ convert from the sd card
I've got a bunch of Java midlets on my PC and I want to get them to my G1 or at least play around with them in the emulator.

Any ideas?

Thanks
 
Dalamak
Old
#2  
Dalamak's Avatar
Senior Member - OP
Thanks Meter 8
Posts: 298
Join Date: Dec 2008
Location: Newark
Maybe this is in the wrong Forum? Mods any thought?

Thanks
 
JesusFreke
Old
#3  
JesusFreke's Avatar
Recognized Developer
Thanks Meter 41
Posts: 736
Join Date: Oct 2008
Location: Dallas
Quote:
Originally Posted by Dalamak View Post
Maybe this is in the wrong Forum? Mods any thought?

Thanks
You can't just convert a jar to an apk. It has to be compiled for android. Android's java library doesn't have all the swing stuff that's in normal java, so the app most likely would have to be re-written to work on android
"Whether You Think You Can or Can't, You're Right"
--Henry Ford

Android Developer Phone 1 - JFv1.51 - REPRESENT!
 
jashsu
Old
#4  
jashsu's Avatar
Senior Member
Thanks Meter 12
Posts: 1,852
Join Date: Nov 2008
Quote:
Originally Posted by JesusFreke View Post
You can't just convert a jar to an apk. It has to be compiled for android. Android's java library doesn't have all the swing stuff that's in normal java, so the app most likely would have to be re-written to work on android
Pretty sure MIDlets (MIDP jars) don't use Swing or awt. They have a separate user interface api under javax.microedition.lcdui

As for converting MIDP programs to runnable APKs, there is certainly a way. Technically it isn't a conversion but the use of a wrapper around the unconverted MIDlet. This is the approach that Opera Mini for Android uses. More info:

http://labs.opera.com/news/2008/04/10/
 
JesusFreke
Old
#5  
JesusFreke's Avatar
Recognized Developer
Thanks Meter 41
Posts: 736
Join Date: Oct 2008
Location: Dallas
From the same article:

"The only major task was to replace the AWT/Swing graphics backend of MicroEmulator with Android specific APIs."
"Whether You Think You Can or Can't, You're Right"
--Henry Ford

Android Developer Phone 1 - JFv1.51 - REPRESENT!
 
veda_sticks
Old
#6  
Senior Member
Thanks Meter 1
Posts: 327
Join Date: Dec 2006
Location: Glasgow
Id quite like this to work with bloover, though the blue tooth support needs to be extended in the g1, headset only. I want to send files!!
 
jashsu
Old
#7  
jashsu's Avatar
Senior Member
Thanks Meter 12
Posts: 1,852
Join Date: Nov 2008
Quote:
Originally Posted by JesusFreke View Post
From the same article:

"The only major task was to replace the AWT/Swing graphics backend of MicroEmulator with Android specific APIs."
Right since MicroEmulator is a J2SE program, it uses Swing/awt classes. Since the heavy lifting of porting MicroEmulator to Android has already been completed, you don't have to worry about it. Theoretically, anyway.

Compiling MicroEmu for Android and running a Sudoku game:
http://microemu.blogspot.com/2008/11...n-android.html
 
damoon223
Old
#8  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jan 2009
i try to use netmite to conver some jar file frome my web site

there is no garanty to aonverted java file work good in android but all of converted jar file all runing and then maybe it (work/crash/or slow)
 
michalgeva
Old
#9  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Dec 2010
Try UpOntek - jar to apk conversion service which includes optimization tips for your app.
 
asb123
Old
#10  
asb123's Avatar
Senior Member
Thanks Meter 34
Posts: 1,210
Join Date: Dec 2009
Location: Vancouver
Quote:
Originally Posted by veda_sticks View Post
Id quite like this to work with bloover, though the blue tooth support needs to be extended in the g1, headset only. I want to send files!!
use the program blutooth file transfer
Current Devices:
Sony ZL<---->Nexus 5<---->Sony SP<---->32GB HP Touchpad<---->32GB Nexus 10<---->Galaxy Nexus<---->iPad mini

Retired Granddaddy:
HTC Dream (G1)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...