Android G1 JAVAÐéÄâ»ú
Blog from http://forum.xda-developers.com/showthread.php?t=552846
I've just pushed new Hero Java app into my rogers build and it works fine.
What you basically need is:
Jbed.apk (install with adb install)
libjbedvm.so (adb push /system/lib) - remember to remount as RW.
I strongly suggest to run linux-swap (as it killed all my applications and hanged for some time without it).
Files taken from Drizzy's build.
Attached Files
java.zip (1.95 MB, 350 views)
Ïà¹ØÎĵµ£º
×î½üÎÒ·¢ÏÖ²»ÉÙ³õѧÕߣ¬Ñ§Ï°javaµÄʱºò£¬¿´Á˺öàjavaµÄÀúÊ·¡¢ÓŵãºÍÓ¦Ó÷¶Î§¡£¶ÔÓÚÕâЩ֪ʶ£¬²¢²»ÄÑÀí½â¡£ÎÒÒ²µ±È»Í¬ÒâjavaÊÇÒ»ÖÖÓÅÐãµÄ¼ÆËã»úÓïÑÔ¡£µ«ÊǶÔÓÚÎÒÃÇÀ´ËµÒªÁ˽âµÄ²¢²»ÊÇ£¬ÕâЩÀúÊ·µÈ֪ʶ¡£¶øÊÇÕÆÎÕjavaÕâÌ×¼¼Êõ¡£ÒªÏëÕÆÎÕÕâÌ×¼¼Êõʵ¼ùÊǷdz£ÖØÒªµÄ¡£ÄÇôºÜ¶à³õѧÕߣ¬ÔÚµÚÒ»²½Êµ¼ùµÄʱºò¾ÍÓöµ½ÁËÀ§ÄÑ£¬¾ÍÊÇÅäÖà ......
Ä¿Ç°´ó¶àÊýʹÓÃgsonµÄ»¹ÒªÇóÔÚjavaÀàÖÐʹÓÃjava annotation£¬²»ÍêÈ«Ö§³ÖPOJO¡£
GsonÕâ¸öJavaÀà¿â¿ÉÒÔ°ÑJava¶ÔÏóת»»³ÉJSON£¬Ò²¿ÉÒÔ°ÑJSON×Ö·û´®×ª»»³ÉÒ»¸öÏàµÈµÄJava¶ÔÏó¡£GsonÖ§³ÖÈÎÒ⸴ÔÓJava¶ÔÏó°üÀ¨Ã»ÓÐÔ´´úÂëµÄ¶ÔÏó¡£
´úÂëÀý×Ó
/*
* To change this template, choose Tools | Templates
* and open the ......
class Super { static int taxi = 1729; }
class Sub extends Super {
static { System.out.print("Sub "); }
}
class Test {
public static void main(String[] args) {
System.out.println(Sub.taxi);
}
}
Êä³ö£º1729
֪ʶҪµã£º
A reference to a class field causes initialization of ......
1¡¢Æ¥ÅäË«ÒýºÅ¼äÄÚÈÝ£º
Java´úÂë
public
void
test1() {
// Æ¥ÅäË«ÒýºÅ¼äÄÚÈÝ
String pstr = "\"([^\"]+)\""
;
Pattern ......
JavaÓÐÁ½ÖÖThread£º“ÊØ»¤Ïß³ÌDaemon”Óë“Óû§Ïß³ÌUser”¡£
ÎÒÃÇ֮ǰ¿´µ½µÄÀý×Ó¶¼ÊÇÓû§£¬ÊØ»¤Ïß³ÌÊÇÒ»ÖÖ“ÔÚºǫ́ÌṩͨÓÃÐÔÖ§³Ö”µÄỊ̈߳¬Ëü²¢²»ÊôÓÚ³ÌÐò±¾Ìå¡£
´Ó×ÖÃæÉÏÎÒÃǺÜÈÝÒ×½«ÊØ»¤Ïß³ÌÀí½â³ÉÊÇÓÉÐéÄâ»ú£¨virtual machine£©ÔÚÄÚ²¿´´½¨µÄ£¬¶øÓû§Ïß³ÌÔòÊÇ×Ô¼ºËù´´½¨µÄ¡£ÊÂʵ²¢²»Ê ......