How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

J2me To .apk

OP Dalamak

9th December 2008, 01:58 AM   |  #1  
Dalamak's Avatar
OP Senior Member
Flag Newark
Thanks Meter: 8
 
298 posts
Join Date:Joined: Dec 2008
More
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
Last edited by Dalamak; 9th December 2008 at 02:00 AM.
10th December 2008, 04:51 AM   |  #2  
Dalamak's Avatar
OP Senior Member
Flag Newark
Thanks Meter: 8
 
298 posts
Join Date:Joined: Dec 2008
More
Maybe this is in the wrong Forum? Mods any thought?

Thanks
11th December 2008, 02:38 AM   |  #3  
JesusFreke's Avatar
Recognized Developer
Flag Dallas
Thanks Meter: 41
 
736 posts
Join Date:Joined: Oct 2008
Quote:
Originally Posted by Dalamak

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
11th December 2008, 03:00 AM   |  #4  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: Nov 2008
Quote:
Originally Posted by JesusFreke

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/
11th December 2008, 03:34 AM   |  #5  
JesusFreke's Avatar
Recognized Developer
Flag Dallas
Thanks Meter: 41
 
736 posts
Join Date:Joined: Oct 2008
From the same article:

"The only major task was to replace the AWT/Swing graphics backend of MicroEmulator with Android specific APIs."
11th December 2008, 03:41 AM   |  #6  
Senior Member
Flag Glasgow
Thanks Meter: 1
 
327 posts
Join Date:Joined: Dec 2006
More
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!!
11th December 2008, 03:42 AM   |  #7  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: Nov 2008
Quote:
Originally Posted by JesusFreke

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
21st January 2009, 11:18 PM   |  #8  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: 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)
11th December 2010, 10:56 AM   |  #9  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Dec 2010
Try UpOntek - jar to apk conversion service which includes optimization tips for your app.
11th December 2010, 07:28 PM   |  #10  
asb123's Avatar
Senior Member
Flag Vancouver
Thanks Meter: 34
 
1,210 posts
Join Date:Joined: Dec 2009
More
Quote:
Originally Posted by veda_sticks

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes