- 博客(30)
- 资源 (1)
- 收藏
- 关注
原创 TI WL1271 WiFi Linux 設定
1. /etc/wpa_supplicant.config 內容ctrl_interface=/var/run/wpa_supplicantnetwork={ ssid="ssid_namef" psk="password" key_mgmt=WPA-PSK }2. commandswpa_supplicant
2014-08-20 16:33:32
2480
原创 Android JNI programming demo with Eclipse
用Eclipse 建立 JNI 的專案, 示範如何在 JAVA 調用 cpp 的函數. 我們將建立一個名稱為 jnidemo的專案, 在主Activity 將調用一個名為libHello.so 的 cpp 函數庫的 getVersion() 的函數, 將其返回字串寫在主Activity 的TextView 上.首先用Eclipse建立一個新的 Android Activity
2014-07-08 11:22:32
856
原创 Bluetooth notes
1.E/AndroidRuntime(28384): FATAL EXCEPTION: mainE/AndroidRuntime(28384): Process: com.example.bttest, PID: 28384E/AndroidRuntime(28384): java.lang.SecurityException: Need BLUETOOTH PRIVILEGED pe
2014-06-25 15:22:43
1522
原创 為什麼我的手機不支援 BLE
這ㄏㄤmContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_BLUETOOTH_LE)
2014-06-24 11:22:25
1031
原创 redmine Gantt 無法轉pdf
Web 顯示Internal errorAn error occurred on the page you were trying to access.If you continue to experience problems please contact your Redmine administrator for assistance.If you are the R
2014-06-16 12:11:51
761
原创 開機到sleep 的log
--------- beginning of /dev/log/main 05-29 08:08:07.813 I/bdAddrLoader( 191): option : f=/persist/bluetooth/.bdaddr 05-29 08:08:07.813 I/bdAddrLoader( 191): option : h 05-29 08:08:07.813 I/bdA
2014-05-29 16:11:40
9729
原创 BT study
Nexus 10 BClass: 1a010cUUID:V/CachedBluetoothDevice( 1072): 0000110a-0000-1000-8000-00805f9b34fbV/CachedBluetoothDevice( 1072): 00001105-0000-1000-8000-00805f9b34fbV/CachedBluetoothDevic
2014-05-26 19:01:02
795
原创 Bluedroid 筆記
BNEP:bnep_cb.l2cap_my_cfg.mtu_present = TRUE; bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; bnep_cb.l2cap_my_cfg.flush_to_present = TRUE; bnep_cb.l
2014-05-19 16:00:05
877
原创 Process 之間的溝通
1. PurposeAPK A 調用Process P, 並由P啟動 Service S, 並把參數以SystemProperty 的方式傳給 S.2. Modification(a) 在 APK A 的 AndroidMenifest.xml 加入 system 的uid. package="com.example.fakeclient" androi
2014-05-14 17:54:25
746
原创 How to hide ImmersiveModeConfirmation
./frameworks/base/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java
2014-05-08 17:09:37
2424
1
原创 signal notes
1. code exampleint main(/*int argc, char **argv*/) { struct sigaction sa; /* Set up the signal handler */ sa.sa_handler = wait_for_child; sigemptyset(&sa.sa_mask); sa.sa_
2014-04-23 11:26:40
697
原创 Android make: *** No rule to make target
make: *** No rule to make target `external/neven/my_project.cpp', needed by `out/target/product/flo/obj/EXECUTABLES/uibcc_intermediates/uibc.o'. Stop.make: Leaving directory `/opt/working/krt16s'
2014-04-14 14:32:50
1115
原创 error: undefined reference to 'property_set
LOCAL_STATIC_LIBRARIES := \ libmincrypt \ libminui \ libcutils \ libstdc++ \ libc
2014-04-11 21:05:23
4496
1
原创 I/rmt_storage( 187): wakelock acquired: 1, error no: 110
一直出現 I/rmt_storage( 187): wakelock acquired: 1, error no: 110k84s4
2014-04-10 16:22:18
2839
原创 Android init.rc
1. init.rcimport /init.environ.rcimport /init.usb.rcimport /init.${ro.hardware}.rcimport /init.trace.rc
2014-04-10 14:08:55
1023
原创 run process with specific user
init.rcservice exampleservice /system/bin/exampleservice user group disabled oneshotsetprop ctl.start exampleservice:arg1 arg2 arg3#include property_set("ctl.st
2014-04-09 18:20:11
795
原创 E/PowerHAL( 509): touch_boost: failed to send: No such file or directory
E/PowerHAL( 509): touch_boost: failed to send: No such file or directory
2014-04-09 12:46:13
2246
原创 How to add project into Android BSP
1. 要加入的包裝名放在 krt16s/build/target/product/generic_no_telephony.mkPRODUCT_PACKAGES += \ \2. copy project files in a folder, for example./frameworks/av/media/libstageflight/wifi_display
2014-03-31 15:41:21
701
原创 Java Reflection 機制, 以 DisplayManager 為例
DisplayManager 有很多隱藏方法, 如scanWifiDisplays, connectWifiDisplay, disconnectWifiDisplay. 我們今天就來試試如何調用.1. private Handler mWfdHandler = new Handler(); //suport scan, connect p
2014-03-26 11:26:18
1042
原创 How to get current full screen dimention and orientation in run time
1. 此法適用於API Level 17 以上 DisplayManager mDm = (DisplayManager)getSystemService(Context.DISPLAY_SERVICE); Display dp = mDm.getDisplay(Display.DEFAULT_DISPLAY); //c
2014-03-26 10:54:33
1015
原创 Android NFC Programming Notes
1. AndroidManifest.xml 要加入 android:launchMode="singleTop"> //設為本package的唯一應用. 確定刷多筆資料都會調用唯一apk //當NFC 的NDEF格式為"mydata_type" 被偵測到時會以 ND
2014-03-26 10:00:41
758
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人