Android Programming
文章平均质量分 57
上官無忌
Software Engineering
展开
-
2014/4/14的修改
為了解決service 擁有root 權限原创 2014-04-16 16:07:44 · 466 阅读 · 0 评论 -
error: undefined reference to 'property_set
LOCAL_STATIC_LIBRARIES := \ libmincrypt \ libminui \ libcutils \ libstdc++ \ libc原创 2014-04-11 21:05:23 · 4499 阅读 · 1 评论 -
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 阅读 · 0 评论 -
為什麼我的手機不支援 BLE
這ㄏㄤmContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_BLUETOOTH_LE)原创 2014-06-24 11:22:25 · 1034 阅读 · 0 评论 -
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 · 1523 阅读 · 0 评论 -
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 · 2846 阅读 · 0 评论 -
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 · 796 阅读 · 0 评论 -
bootanimation
Where it starts:Where it stops:Where is the exec原创 2014-05-29 10:20:35 · 762 阅读 · 0 评论 -
開機到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 · 9758 阅读 · 0 评论 -
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 · 1120 阅读 · 0 评论 -
PAN Log analysis
Nexus 4 vs Zenphone 51. Nexus 4 PANU ->原创 2014-06-19 10:57:19 · 2178 阅读 · 0 评论 -
Android USB debugging 功能失效
1. 修改按Builder number 的次數成為開發者原创 2014-04-10 13:40:19 · 3823 阅读 · 0 评论 -
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 · 1025 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
Java Reflection 機制, 以 DisplayManager 為例
DisplayManager 有很多隱藏方法, 如scanWifiDisplays, connectWifiDisplay, disconnectWifiDisplay. 我們今天就來試試如何調用.1. private Handler mWfdHandler = new Handler(); //suport scan, connect p原创 2014-03-26 11:26:18 · 1045 阅读 · 0 评论 -
Android NFC Programming Notes
1. AndroidManifest.xml 要加入 android:launchMode="singleTop"> //設為本package的唯一應用. 確定刷多筆資料都會調用唯一apk //當NFC 的NDEF格式為"mydata_type" 被偵測到時會以 ND原创 2014-03-26 10:00:41 · 760 阅读 · 0 评论 -
How to hide ImmersiveModeConfirmation
./frameworks/base/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java原创 2014-05-08 17:09:37 · 2426 阅读 · 1 评论 -
setprop to enable UIBC
property: [amiraa.use_uibc]: [yes]/[no]comma原创 2014-05-08 15:46:45 · 877 阅读 · 0 评论 -
MI 3 debug
1. log in Nexus7 side, original.原创 2014-04-23 18:04:34 · 1898 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
Android init.rc 的執行順序
由 /system/core/init/init.c原创 2014-05-15 15:22:50 · 1006 阅读 · 0 评论 -
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 · 857 阅读 · 0 评论