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. What are that XML Attributes in JAVA

Hi,

I need to programm this XML in JAVA. Some I figured out, some not. Can
you help me on the missing ones?


<TextView android:layout_width="150px"
  android:layout_height="wrap_content"
  android:text="Bladidadi"
  android:layout_gravity="center_vertical"
  android:textColor="#ffffff" />


TextView tv = new TextView(this);

//android:layout_width="150px"
tv.setWidth(150);

//android:layout_height="wrap_content"
???

//android:text="Bladidadi"
tv.setText("Bladidadi");

//android:layout_gravity="center_vertical"
tv.setGravity(Gravity.CENTER_VERTICAL);

//android:textColor="#ffffff"
tv.setTextColor(Color.rgb(0xff, 0xff,0xff));    // tv.setTextColor
(0xffffff) doesn't work somehow


Greetings,
DaRolla
--~--~---------~--~----~------------~-------~--~----~

2. Multiple Frame by Frame animations

Hello All,

I am building an app and I use 2 different Frame by Frame Animations
that are used in the application. What I want to do is have one start
after the other finishes. Whats the best way to go about this? I have
tried using the touch events of ACTION_DOWN and ACTION_UP, but if I I
let up on the screen before the animation is finished it immediately
starts the 2nd animation.

I need the 1st animation to complete fully and then go to the 2nd
animation because I don't want the 1st animation to loop or die out
early.

All ideas are welcome.
--~--~---------~--~----~------------~-------~--~----~

3. IMX31 Touch Pad

4. Why does not SoundRecoder work on G1

5. What is the proper handling of action.MEDIA_BUTTON?

6. Storing bitmap images for game animation

7. ListView focus problem