if I include the classes.zip of J2Me ??

by Sudha » Fri, 24 Oct 2008 15:26:35 GMT


Sponsored Links
 hi
I have a stupid question
suppose thru the eclipse if I put the J2Me classes.zip file to my
android project.
and I just create an Activity and a view which
only calling or directing the lifecycle methods of j2me
will it work ?

I am dare to try this out...
can anyone show some light on this
--~--~---------~--~----~------------~-------~--~----~



if I include the classes.zip of J2Me ??

by nkijak » Fri, 24 Oct 2008 20:01:02 GMT


 Did you try in the emulator? Probably be quicker than waiting for an
answer here.



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


Sponsored Links


if I include the classes.zip of J2Me ??

by Dana Li » Fri, 31 Oct 2008 02:01:03 GMT


 No, You cannot include J2ME classes inside android because android is not
compatible with J2me platform and its working mechanism is not the same as
midlet.

Dana







-- 
Dana

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



Other Threads

1. Module version conflicts between wlan module and Android kernel source

Hi,

  I'm tinkering with building and installing Android from source.
Basically I've got it down fairly well, but I seem to have run into a
bit of a problem with the wlan module, probably from HTC.

  Having pulled the 2.6.27 kernel sources and built that with
a .config pulled from the phone, and using that as the kernel image
instead of the prebuilt one, I get the following wifi failure message
in dmesg:

wlan: version magic '2.6.27-00205-gf2dabc0 preempt mod_unload ARMv6 '
should be '2.6.27-00392-g8312baf preempt mod_unload ARMv6 '

probably because the .config I pulled from the phone has:

CONFIG_LOCALVERSION="-00392-g8312baf"

So I rebuilt with the '00205' localversion and now I get in dmesg:

[   61.122497] wlan: Unknown symbol trout_pwrsink_set

but trout_pwrsink_set was changed to htc_pwrsave_set way back in
February:

[ARM]: trout: Switch from trout_pwrsink -> htc_pwrsink  33/8933/1
http://android.git.kernel.org/?p=kernel/msm.git;a=commitdiff;h=44a01f54989b1c8669a8075189886a1bdf29bc17

  I'm clearly getting an obsolete wlan module somehow, Any ideas for
how I can get a wlan module that goes with the '00392' kernel would be
appreciated.

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

2. Null reference to ImageView from custom view

Hi,
I have the following xml layout:

<android.pacman.com.PacManMainView
      android:id="@+id/pacman_main_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">


       <ImageView android:id="@+id/pacAnim"
                        android:src="@drawable/pac02"
                        android:layout_width="20px"
                        android:layout_height="20px"/>
</android.pacman.com.PacManMainView>

PacManMainView extends SurfaceView. I can draw to this, it works OK.
However, when I attempt to get a reference to the ImageView like this:

@Override
public void surfaceCreated(SurfaceHolder holder) {
/* test reference to imageview
                ImageView pacImageV = (ImageView) findViewById(R.id.pacAnim);

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

3. Market countries - how are they determined ?

4. ( problem for experts ) update/refresh list problem

5. trouble with using keyboard-input to move things on screen, using requestFocus, OnKeyListener etc unsuccessfully.

6. trouble with using keyboard-input to move things on screen, using requestFocus, OnKeyListener etc unsuccessfully.

7. Frame-by-frame animation issue