Android Framework Introduction

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

!#$%&#!'$()*+%$,!-.$%#/0.&%!#JollenChenEmail#jollen@jollen.org$%ߚ'2(2%()),18:30~21:30$*+#,-./012B1345Blog#://:8:'9(9%;&)=?@A(Moko365Inc)BCD2009'EFGH=3GI5JEKCK&LAndroidMNOPLQHRSTUVWJXYZ[!\]^_`[abcdefghXiNEjklNAndroidfmnoLinuxXpZqrELQTUstXAuvw]^\=3GI5xyzD{C|}~XHRSTUAu]^€J\!#$%&'()*+,(-,./99:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk„9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!…9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!†9:8:'9(9%;&)!#$%&#!'$()*+%$,!!$01&.*0./$*‡9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjkˆ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk‰9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjkŠ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk:9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!!!!!899:8:'9(9%;&)'$()*+%$,!'*(./$*28„9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk…9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!!!128†9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk{privatestaticfinalStringTAG=SystemServer;nativepublicstaticvoidinit1(String[]args);publicstaticvoidmain(String[]args){System.loadLibrary(android_servers);init1(args);}publicstaticfinalvoidinit2(){Log.i(TAG,EnteredtheAndroidsystemserver!);Threadthr=newServerThread();thr.setName(android.server.ServerThread);thr.start();}}8‡9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk{...publicstaticfinalvoidinit2(){Log.i(TAG,EnteredtheAndroidsystemserver!);Threadthr=newServerThread();thr.setName(android.server.ServerThread);thr.start();}...}classServerThreadextendsThread{...publicvoidrun(){...HardwareServicehardware=null;...Log.i(TAG,StartingHardwareService.);hardware=newHardwareService(context);ServiceManager.addService(hardware,hardware);...}...}8ˆ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk‰9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjkŠ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!9:9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!!989:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!!!VMProcessComponentMainThread999:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk„9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk…9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!SystemServerLauncherTouchstartActivity()9†9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk‡9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk!!9ˆ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk{/**Calledwhentheactivityisfirstcreated.*/@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);SensorManagersensor=(SensorManager)getSystemService(SENSOR_SERVICE);sensor.getSensors();WifiManagerwifi=(WifiManager)getSystemService(WIFI_SERVICE);}}9‰9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjkŠ9:8:'9(9%;&)AndroidFrameworkIntroduction#,-012‚ƒCopyright(C)2009Jollen!sConsultingqrjk[]={{_init,!()Z,!!!(void*)mokoid_init},{_set_on,(I)Z,(void*)mokoid_setOn},{_set_off,(I)Z,(void*)mokoid_setOff},};„:9:8:'9(9%;&)AndroidFrame

1 / 36
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功