Need explain

1 view
Skip to first unread message

Mina

unread,
May 9, 2008, 3:09:24 AM5/9/08
to microemulator-developers
Hi,

Please can you explain me this line of code:

"String midletClassName = getResources().getString(0x7f020001);"
in the file MicroEmulator.java.

why did you use this:"0x7f020001"?
It is an adress or what?

Thank you

Bartek Teodorczyk

unread,
May 9, 2008, 3:28:37 AM5/9/08
to microemulato...@googlegroups.com
Hi,

That's funny, but I don't remember exactly. I'm sure that 0x7f020001
points to the strings.xml:

<string name="class_name">org.microemu.midp.examples.simpledemo.SimpleDemoMIDlet</string>

which is dynamically created asset by the prepare-res target in build.xml.

Regards,
Bartek

Mina

unread,
May 9, 2008, 9:07:18 AM5/9/08
to microemulator-developers
Hi,
I want to enter the jad file that i want to use, in the code.
Can you give me where can i, what is the java file that i should
modify?


Thanks

Bartek Teodorczyk

unread,
May 9, 2008, 9:14:57 AM5/9/08
to microemulato...@googlegroups.com
Modify microemu-android/build.xml:

<property name="midlet.name" value="Simple Demo" />
<property name="midlet.package" value="SimpleDemo.apk" />
<property name="midlet.class"
value="org.microemu.midp.examples.simpledemo.SimpleDemoMIDlet" />
<property name="midlet.jar"
value="../microemu-examples/microemu-demo/target/microemu-demo-2.0.3-SNAPSHOT.jar"
/>

Regards,
Bartek

Reply all
Reply to author
Forward
0 new messages