android-4.3-jelly-bean

How to connect to WPA_EAP WIFI on Android with 4.3 API

会有一股神秘感。 提交于 2019-12-04 10:27:42
问题 Recently Android added the ability to connect to EAP WIFI with API 18 (JellyBean 4.3). I have looked for a number of examples, but can't find any examples, and I can't get my code to connect. Everything appears to work as expected, but making the actual connection doesn't seem to work. Here is what I'm doing: Log.d( "WiFi", "adding network via Android Enterprise Config with SSID: " + ssid ); WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); wifiConfig = new WifiConfiguration

Android 4.3 KeyStore - chain == null while trying to retrieve keys

独自空忆成欢 提交于 2019-12-04 04:59:24
Following this blog , I'm using this code to create and store a KeyPair in Android KeyStore: Context ctx = getApplicationContext(); Calendar notBefore = Calendar.getInstance(); Calendar notAfter = Calendar.getInstance(); notAfter.add(1, Calendar.YEAR); KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(ctx). setAlias(RSA_KEYS_ALIAS).setSubject( new X500Principal(String.format("CN=%s, OU=%s", getApplicationName(), ctx.getPackageName()))). setSerialNumber(BigInteger.ONE). setStartDate(notBefore.getTime()).setEndDate(notAfter.getTime()).build(); KeyPairGenerator kpGenerator; try {

Can I detect that a particular permission has been removed for my android app?

谁说胖子不能爱 提交于 2019-12-03 20:15:42
问题 So with the arrival of Android 4.3 comes the ability to selectively disable particular permissions for apps. This could obviously cause problems where an app loses a permission it needs to operate correctly. Does the system broadcast a message when a permission is revoked, or how could I tell that my app no longer has a certain permission? Ideally I would like to inform the user that turning off permission A will break xyz in the application. 回答1: There is no broadcast, but you can check

Android 4.3 On-screen GPU profiling - long gfx waiting time

谁都会走 提交于 2019-12-03 14:45:12
问题 I have just updated a Galaxy Nexus to 4.3 and enabled the new On-screen GPU profiling function, and see the following result for Android setup screen: According to the platform highlights: [With] colors indicating time spent creating drawing commands (blue), issuing the commands (orange), and waiting for the commands to complete (yellow). Even on a very simple screen, there are many instances that the screen refresh time is above the threshold for a smooth 60 fps (green line), and it's mostly

How to connect to WPA_EAP WIFI on Android with 4.3 API

ぃ、小莉子 提交于 2019-12-03 06:47:17
Recently Android added the ability to connect to EAP WIFI with API 18 (JellyBean 4.3). I have looked for a number of examples, but can't find any examples, and I can't get my code to connect. Everything appears to work as expected, but making the actual connection doesn't seem to work. Here is what I'm doing: Log.d( "WiFi", "adding network via Android Enterprise Config with SSID: " + ssid ); WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); wifiConfig = new WifiConfiguration(); wifiConfig.SSID = ssid; enterpriseConfig.setIdentity(userName); enterpriseConfig.setPassword

Android 4.3 On-screen GPU profiling - long gfx waiting time

*爱你&永不变心* 提交于 2019-12-03 04:31:23
I have just updated a Galaxy Nexus to 4.3 and enabled the new On-screen GPU profiling function, and see the following result for Android setup screen: According to the platform highlights : [With] colors indicating time spent creating drawing commands (blue), issuing the commands (orange), and waiting for the commands to complete (yellow). Even on a very simple screen, there are many instances that the screen refresh time is above the threshold for a smooth 60 fps (green line), and it's mostly because there are many instances where a refresh would spend a significant time waiting for the

AOSP building error: symbol not defined

耗尽温柔 提交于 2019-12-02 17:38:40
问题 I'm trying to build the cornerstone based on AOSP 4.3_r2.2. I got a lot of errors during the building like these: frameworks/base/core/res/res/values/public.xml:244: error: Symbol 'config_bluetooth_adapter_quick_switch' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:1558: error: Symbol 'config_enableDreams' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:919: error: Symbol 'ic_suggestions_add' declared with <java

What happened to windowContentOverlay in Android API 18?

霸气de小男生 提交于 2019-12-02 16:16:13
After upgrading my phone to Android 4.3 I noticed the shadow below the actionbar is not showing anymore. In my app I've got a custom shadow using windowContentOverlay : <item name="android:windowContentOverlay">@drawable/shadows_bottom</item> It's always been showing but now it's gone on API 18. Removing that line from the theme doesn't change anything. while on other API versions it shows a default slight shadow. Anyone else has noticed that issue? I was able to work around this platform bug by adding the following method to my base FragmentActivity and calling it in onCreate after the layout

AOSP building error: symbol not defined

安稳与你 提交于 2019-12-02 13:00:14
I'm trying to build the cornerstone based on AOSP 4.3_r2.2. I got a lot of errors during the building like these: frameworks/base/core/res/res/values/public.xml:244: error: Symbol 'config_bluetooth_adapter_quick_switch' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:1558: error: Symbol 'config_enableDreams' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:919: error: Symbol 'ic_suggestions_add' declared with <java-symbol> not defined frameworks/base/core/res/res/values/public.xml:920: error: Symbol 'ic_suggestions

How to get the RSSI of bluetooth device in real time in Android 4.3?

倖福魔咒の 提交于 2019-12-02 12:54:33
问题 I am developing an application where I have to connect to Bluetooth Low Energy device on Android 4.3. When I push the button, I can get the RSSI of the BLE device after connect to the device by using BluetoothLeService.readRemoteRssi(); But I want to get the RSSI in every second ?? I have try the Runnable, but it does't call the readRemoteRssi(); function in log. final Runnable runnable = new Runnable() { @Override public void run() { // TODO Auto-generated method stub mBluetoothLeService