JNI Tips In this document JavaVM and JNIEnv Threads jclass, jmethodID, and jfieldID Local and Global References UTF-8 and UTF-16 Strings Primitive Arrays Region Calls Exceptions Extended Checking Native Libraries 64-bit Considerations Unsupported Fea…
网上总是说Runable和Thread可以实现线程,这导致我对Thread和Runable有错误的理解,谁让当时不求甚解,让我一直以为实现Runable可以开启线程. 看过源码后进行区分这两者. 无论怎么样,线程都是通过Thread创建的. 其一:Runable只是一个接口,不会开启一个线程,依旧是运行在UI线程中. public interface Runnable { /** * Starts executing the active part of the class' code. Thi…
Bluetooth Using the Bluetooth APIs, an Android application can perform the following: 使用蓝牙APIs,一个Android应用能够进行例如以下操作: Scan for other Bluetooth devices 扫描其它蓝牙设备 Query the local Bluetooth adapter for paired Bluetooth devices 查找本地已经配对的蓝牙设备 Establish RFC…