如何使用SystemProperties.get or SystemProperties.set
在eclipse中
1. prj右鍵->Build Path->Configure Build Path...->Libraries->Add External JARs...->找layoutlib.jar
會在放sdk裡的資料夾sdk/platforms/android-17(選擇版本)/data/layoutlib.jar
2. Java code "import android.os.SystemProperties"
3. 在 AndroidManifest.xml 加入 android:sharedUserId="android.uid.system" 如下
...
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0"
android:sharedUserId="android.uid.system" >
...
要注意如果有使用到android:sharedUserId="android.uid.system",APP就需要signe key
請先 登入 以發表留言。