FORUMS

Google No Longer Sending Calendar SMS Notifications

In a not entirely surprising move, Google announced that it’s putting an … more

Enable Multi-Window Mode on M Developer Preview

What was not mentioned in yeterday’s keynote was Android M’s multi-window … more

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire … more

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he … more

J2me To .apk

Thanks Meter: 8
 
By Dalamak, Senior Member on 9th December 2008, 12:58 AM
Post Reply Subscribe to Thread Email Thread
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 01:00 AM.
 
 
10th December 2008, 03:51 AM |#2  
Dalamak's Avatar
OP Senior Member
Flag Newark
Thanks Meter: 8
 
More
Maybe this is in the wrong Forum? Mods any thought?

Thanks
11th December 2008, 01:38 AM |#3  
JesusFreke's Avatar
Recognized Developer
Flag Dallas
Thanks Meter: 43
 
More
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, 02:00 AM |#4  
jashsu's Avatar
Senior Member
Thanks Meter: 15
 
More
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, 02:34 AM |#5  
JesusFreke's Avatar
Recognized Developer
Flag Dallas
Thanks Meter: 43
 
More
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, 02:41 AM |#6  
Senior Member
Flag Glasgow
Thanks Meter: 1
 
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, 02:42 AM |#7  
jashsu's Avatar
Senior Member
Thanks Meter: 15
 
More
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, 10:18 PM |#8  
Junior Member
Thanks Meter: 0
 
More
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, 09:56 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Try UpOntek - jar to apk conversion service which includes optimization tips for your app.
11th December 2010, 06:28 PM |#10  
asb123's Avatar
Senior Member
Flag Vancouver
Thanks Meter: 35
 
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