2012年10月30日

smali语法

摘要: Opcode (hex)Opcode nameExplanationExample00nopNo operation0000 - nop01move vx,vyMoves the content of vy into vx. Both registers must be in the first 256 register range.0110 - move v0, v1 Moves v1 into v0. 02move/from16 vx,vyMoves the content of vy into vx. vy may be in the 64k register range while.. 阅读全文

posted @ 2012-10-30 15:23 CDiamond 阅读(237) 评论(0) 推荐(0)

Android 本地Activity与Service通信方法

摘要: Service是在一段不定的时间运行在后台,不和用户交互应用组件。每个Service必须在manifest中 通过<service>来声明。可以通过contect.startservice和contect.bindserverice来启动。 Service和其他的应用组件一样,运行在进程的主线程中。这就是说如果service需要很多耗时或者阻塞的操作,需要在其子线程中实现。 service的两种模式(startService()/bindService()不是完全分离的): 本地服务 Local Service 用于应用程序内部。 它可以启动并运行,直至有人停止了它或它自己停止。在 阅读全文

posted @ 2012-10-30 13:00 CDiamond 阅读(575) 评论(0) 推荐(0)

Android native interface

摘要: [*]Java interface【转】We start by defining a Java class JNIExampleInterface, which will provide the interface to calling the native functions, defined in a native (C++) library. The native functions corresponding to Java functions will need to have matching call signatures (i.e. the count and types of 阅读全文

posted @ 2012-10-30 12:47 CDiamond 阅读(425) 评论(0) 推荐(0)

导航