android-4.3-jelly-bean

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

本秂侑毒 提交于 2019-12-02 07:19: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.readRemoteRssi(); mHandler.postDelayed(runnable, 1000); } }; Where should I type the BluetoothLeService

issue in sending sms using smsManager.sendTextManager on android

青春壹個敷衍的年華 提交于 2019-12-02 01:44:55
i am sending an sms from my app to server which uses 5 digit mobile number. on 4.2.2 os, it ask me below popup Edited Q. How to handle cancel/ok button? This should work... switch (getResultCode()) { // if cancel pressed then result code is 5 case 5: System.out.println("Message cancelled........"); break; // else if send pressed then result code will be one of these below cases case Activity.RESULT_OK: break; case SmsManager.RESULT_ERROR_GENERIC_FAILURE: break; case SmsManager.RESULT_ERROR_NO_SERVICE: break; case SmsManager.RESULT_ERROR_NULL_PDU: break; case SmsManager.RESULT_ERROR_RADIO_OFF:

Create Android server local repository for specific tag

允我心安 提交于 2019-12-01 14:55:33
I would like to create a local server for Android branch android-4.3_r1.1 I follow this thread: Cloning Android sources to a local repository server But I couldn't do the same thing for specific tag, How can it be done ? I would like to have a server, and then from the client do some work and push it to the server, so other client can do a sync and see my commits ... On the server side this is what I did: repo init -u https://android.googlesource.com/platform/manifest --mirror repo sync On the client side: repo init -u git-server/android/platform/manifest.git/ -b android-4.3_r1.1 repo sync I

Create Android server local repository for specific tag

女生的网名这么多〃 提交于 2019-12-01 12:42:41
问题 I would like to create a local server for Android branch android-4.3_r1.1 I follow this thread: Cloning Android sources to a local repository server But I couldn't do the same thing for specific tag, How can it be done ? I would like to have a server, and then from the client do some work and push it to the server, so other client can do a sync and see my commits ... On the server side this is what I did: repo init -u https://android.googlesource.com/platform/manifest --mirror repo sync On

DrawerLayout not working with Android 4.4 & SurfaceView

主宰稳场 提交于 2019-12-01 08:17:13
Today I had one of those "android" moments again, which left me absolutely clueless. I have an app which consists of a DrawerLayout, which includes a RelativeLayout as container for a SurfaceView (surfaceViewContainer) and a second ViewGroup (subclass of RelativeLayout) as navigation. When the app starts, in onCreate I inflate the layout and add a SurfaceView to the surfaceViewContainer. On a Samsung S2 with 4.1.2 and a S3 with 4.3 everything works fine, I can see the SurfaceView drawn and I can open and close the drawer, by swipe gesture or home button. Then I tested on Android 4.4 with a

WebView difference in android 4.3 to 4.4 [closed]

社会主义新天地 提交于 2019-12-01 04:23:59
I implemented a WebView with images taken from the web. On Android 4.3 there's no problem. On Android 4.4 kitkat, the displayed images are too big. How do I solve that? Kitkat Behavior changes https://developer.android.com/about/versions/android-4.4.html For Webview Please Refer.. https://developer.android.com/guide/webapps/migrating.html Android 4.4 (API level 19) introduces a new version of WebView that is based on Chromium. This change upgrades WebView performance and standards support for HTML5, CSS3, and JavaScript to match the latest web browsers. Any apps using WebView will inherit

WebView difference in android 4.3 to 4.4 [closed]

夙愿已清 提交于 2019-12-01 02:58:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I implemented a WebView with images taken from the web. On Android 4.3 there's no problem. On Android 4.4 kitkat, the displayed images are too big. How do I solve that? 回答1: Kitkat Behavior changes https://developer.android.com/about/versions/android-4.4.html For Webview Please Refer.. https://developer.android

NotificationListenerService get Notification Icon?

家住魔仙堡 提交于 2019-11-30 10:27:53
In a Service extending the new (SDK18, JB-4.3) NotificationListenerService , I'd like to get the Notification's status bar icon. mStatusBarNotification.getNotification().icon returns the resource id of the status bar drawable, but that resource id is naturally not within my app's scope/resources. There's also mStatusBarNotification.getNotification().largeIcon (returning a Bitmap ), but that's not set for all notifications and returns the "wrong" icon (the image in the expanded notification drawer). Use getPackageName() on StatusBarNotification to find out the app that posted the Notification .

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy)

狂风中的少年 提交于 2019-11-30 06:13:09
问题 I'm trying to make an application which uses the new Bluetooth Low Energy API of Android. For this, I started with the BLE sample coming with API level 18 . As I read that Android can not act as a Peripheral, I put the Android phone in central mode, scanning for BLE devices around it. For this purpose, I made some testing with a Nordic Platform simulating a Heart Sensor. Everything works in a perfect way! After this, I try to pick an iPhone (iOS 7 beta 4) and put it in a Peripheral way and

How to use the profile of PROXIMITY PROFILE,IMMEDIATE ALERT SERVICE and Find Me Profile in android 4.3 BLE?

懵懂的女人 提交于 2019-11-30 05:24:36
I am developing an android application where I have to connect to Bluetooth device on Android 4.3. The goal of this APP is BLE Anti-loss, it can make the buzzer beep on the remote device and I want to implement the PROXIMITY PROFILE and Find Me PROFILE . I reference the sample of BluetoothLeGatt in Android API18 and I can scan, connect and discover the services. I found the UUID of Immediate Alert is 0x1802, but I did not found the UUID for Find Me PROFILE and PROXIMITY PROFILE at Bluetooth Developer portal. And if I got the UUID, how to use this UUID to make the buzzer beep on the remote