android-4.3-jelly-bean

Android : app loading library at runtime on Lollipop but not IceCreamSandwich

跟風遠走 提交于 2019-11-27 20:41:20
I'm currently developping an Android app using Android Studio. Currently, the app is launching perfectly on Lollipop devices, but crashes at launch due to a ClassNotFoundException on pre-lollipop devices (i've tested on ICS and it fail). The missing class is always from an external librairies at runtime. Here's the gradle file : buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { compileSdkVersion 23 buildToolsVersion '23.0.0'

Android KeyStore - How to save an RSA PrivateKey

牧云@^-^@ 提交于 2019-11-27 13:04:42
问题 I receive from a web service(made by myself) an RSA PrivateKey PKCS#8 encoded in a base 64 String. My Android app must save this key somewhere into the phone securely. From the 4.3 version of Android, it's possible saving keys using the new KeyStore API. I've found an article with code axample that shows how to generate a KeyPair with the Specification needed to store the keys. And after to recover the keys. // generate a key pair Context ctx = getContext(); Calendar notBefore = Calendar

How to get the battery level after connect to the BLE device?

天大地大妈咪最大 提交于 2019-11-27 11:51:17
I am developing an application where I have to connect to Bluetooth device on Android 4.3. And I want to get the battery level by using Battery_Service and Battery_Level . public class BluetoothLeService extends Service { private static final UUID Battery_Service_UUID = UUID.fromString("0000180F-0000-1000-8000-00805f9b34fb"); private static final UUID Battery_Level_UUID = UUID.fromString("00002a19-0000-1000-8000-00805f9b34fb"); public void getbattery() { BluetoothGattService batteryService = mBluetoothGatt.getService(Battery_Service_UUID); if(batteryService == null) { Log.d(TAG, "Battery

@font-face declarations don't work in Android 4.3 Internet browser?

最后都变了- 提交于 2019-11-27 10:36:57
问题 My Samsung Galaxy S3 phone recently upgraded from Android 4.1.3 to Android 4.3. Now several websites I designed which I tested in the Android internet browser are not displaying fonts I have declared with @font-face . What do I need to do to fix this? One of the sites (development version): http://beta.kdfansite.com Here is some of the related CSS for Open Sans: @font-face { font-family: 'OpenSansSemibold'; src: url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts

Communicating between iOS and Android with Bluetooth LE

假装没事ソ 提交于 2019-11-27 10:06:45
I've got a working app using CoreBluetooth to communicate between an iPad (central) and iPhone (peripheral). I have one service that has two characteristics. I have a Nexus 7 running the latest Android 4.3 with BTLE support. Android is a bit late to jump on the BTLE bandwagon but it appears they are approaching it similarly to how iOS did, where initially they only support acting as a central with the peripheral mode coming in a later version. I can load the sample Android BTLE app and browse for nearby peripherals. With my iPhone advertising as a peripheral I can see the value from

Chrome's remote debugging (USB debugging) not working for Samsung Galaxy S3 running android 4.3

末鹿安然 提交于 2019-11-27 10:04:49
Ever since I upgraded my Samsung Galaxy S3 to android 4.3 (from 4.1.2) I am unable to use Chrome's remote debugging for android (more details here ). I have the developer options and USB debugging enabled on my phone, and this worked perfectly fine on android 4.1.2. Now, when I connect my phone to my PC, it simply connects as a media storage device and is not discovered as a USB device by chrome. I am ruling out any problems with chrome as I could USB debug with a Google Nexus4, also, looking at some other thread (here and elsewhere) it seems to be a problem with Samsung's 4.3 upgrade. Any

Is the native Android BLE implementation synchronous in nature?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 08:05:23
I remember reading in the "Guide and Hint" -doc to the Samsung BLE API (archived page) : One of the most important concepts of the Samsung F/W and stack is its synchronous nature . That is, if we call for example, writeCharacteristic for a particular characteristic, if it returns true , the next call to any BluetoothGatt or BluetoothGattServer method should be done after the onCharacteristicRead callback is received. This is because the stack is designed to support and process only one GATT call at a time, and if, for example, you call writeCharacteristic or readCharacteristic on any

run-as Package 'a.b.c' is unknown - Galaxy S4 Jellybean or Android 4.3

做~自己de王妃 提交于 2019-11-27 03:58:04
问题 I cannot run run-as (or ndk-gdb) for the Galaxy S4 running Jellybean 4.2.2. ~ $ adb shell shell@android:/ $ run-as a.b.c ls run-as: Package 'a.b.c' is unknown There are multiple answers for this issue for pre-ICS devices, but those seem to have been fixed in ICS. Update - Aug 2013: After initially appearing on the Galaxy S4 with Jellybean 4.2.2, the run-as issue now seems to be on all 4.3 devices. See this Android bug. See the acknowledged Android issue here. Update - Nov 2013: Google posted

Android BLE API: GATT Notification not received

家住魔仙堡 提交于 2019-11-27 02:38:07
Device used for testing: Nexus 4, Android 4.3 Connection is working fine but the onCharacteristicChanged Method of my callback is never called. However I am registering for notifications using setCharacteristicNotification(char, true) inside onServicesDiscovered and that function even returns true. Device log (there are actually no messages at all when notifications should appear / are sent via the Bluetooth device): 07-28 18:15:06.936 16777-16809/de.ffuf.leica.sketch D/BluetoothGatt: setCharacteristicNotification() - uuid: 3ab10101-f831-4395-b29d-570977d5bf94 enable: true 07-28 18:15:06.936

startLeScan with 128 bit UUIDs doesn't work on native Android BLE implementation

北城余情 提交于 2019-11-26 21:42:33
I am having trouble using startLeScan( new UUID[]{ MY_DESIRED_128_BIT_SERVICE_UUID }, callback ) on the new introduced BLE API of Android 4.3 on my Nexus 4. The callback just doesn't get called. I still can see incoming packages in the log: 08-02 15:48:57.985: I/bt-hci(1051): btu_ble_process_adv_pkt 08-02 15:48:58.636: I/bt-hci(1051): BLE HCI(id=62) event = 0x02) If I don't use the parameter to filter for UUIDs it works. We are using a manufacturer specific 128bit UUID for device of our company. Now, our device offers more services than I am providing in the array. But that shouldn't be the