I need javax.microedition.io in android, what can I do ?

by Mark Murphy » Sat, 27 Mar 2010 04:57:31 GMT


Sponsored Links
 


JavaME is not part of Android.

So you can:

Step #1: Find an open source implementation of what you need.

Step #2: Copy it into your project and rename it to some other package
(e.g., com.rakhimov.io).

Step #3: Repeat steps 1 & 2 until you get all the dependencies resolved.

Step #4: Write a test suite to make sure it works the way you expect.

Or:

Step #1: Rewrite the code that requires javax.microedition.io to use
standard JavaSE-style I/O.

Or:

Step #2: There are supposed to be some JavaME compatibility layers
available for Android, but I do not know their names or sites off the
top of my head.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books 

--



Other Threads

1. Confused how to get root access to my adp1 phone

Hi All,
I am working with a borrowed phone from google and they said it was a "dev
phone".  The back just says with Google.  When I go to setting->about phone
I see:

Model Number:  Android Dev Phone 1
Firmware version 1.5

Kernel Version:  2.6.27-00399-gc7f8bce
Build number:  CRC56

adb root gives:

adb root
adbd cannot run as root in production builds

I am confused by this.  I was told I would automatically have root access
because this was a dev phone.  Anyway, what can I try/do to get root access?
 I also want to build my own custom builds, does this mean I can't?

http://recluze.wordpress.com/2009/07/20/flashing-android-dev-phone-1/

Anyway, thanks for the help!

-Tim

--~--~---------~--~----~------------~-------~--~----~

2. How can one draw graphics over a live camera preview?

I am interested in putting some simple graphics (lines, a bit of text,
etc) over a live camera preview.

I've looked at the examples, and fiddled around a bunch, but just
don't see how to do it.

The examples use a GLSurfaceView as a camera preview surface, but in
that mode the view apparently cannot be drawn on. They also fill the
whole screen with it.

I tried putting it in a normal layout, rather that setting it as the
content view, but it does't work.

Anyone know how to do this?

Thanks in advance
--~--~---------~--~----~------------~-------~--~----~

3. Baru join dan minta advice

4. Fw: [id-bb] WTS T-mobile Google G1 android 2.5jt

5. setContentView : Not able to set TextView from an xml file

6. PXA310 patch for Android master

7. How to Get the Top Activity's Name?