android-4.2-jelly-bean

Android - Mobile network settings menu (Jelly Bean)

≯℡__Kan透↙ 提交于 2019-12-21 04:18:32
问题 following code is not working for Jelly Bean (Android 4.1): final ComponentName cn = new ComponentName("com.android.phone","com.android.phone.Settings"); final Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setComponent(cn); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Instead to start setting , it doesn´t nothing, any idea how to solve it? Here is solution: final ComponentName cn = new

How to develop custom status bar in android JellyBean 4.2.2

南笙酒味 提交于 2019-12-21 03:42:42
问题 I want to develop customized StatusBar. I know i am not the only one with this requirement. But still want to know the opinions. After lot of search on StackOverflow, i found that people have modified status bar using tools but thats not i need. I am bit looking into the direction of developing of my own Status Bar with my own branding and layouting of the system icons. Also i have seen on Google play store about having a customized status bar app like omega status bar and couple more. I am

httpurlconnection is very slow on Android 4.2

夙愿已清 提交于 2019-12-20 22:58:10
问题 I can succesfully connect, send and receive data by using httpurlconnection. But it takes very long time to load all the data on my phone (Samsung s4, 4.2) and on android 4.2 emulator. But it takes almost 1-2 seconds (which is very fast) to load pics on Android 2.3.x emulator. Faster than my galaxy s4 on http connection. I'm using AsyncTask and my code works fine on both. It is just slow on android 4.2s. I tried removing chunkedStreaming, keep alive, changing timeout values etc. but still no

httpurlconnection is very slow on Android 4.2

依然范特西╮ 提交于 2019-12-20 22:57:41
问题 I can succesfully connect, send and receive data by using httpurlconnection. But it takes very long time to load all the data on my phone (Samsung s4, 4.2) and on android 4.2 emulator. But it takes almost 1-2 seconds (which is very fast) to load pics on Android 2.3.x emulator. Faster than my galaxy s4 on http connection. I'm using AsyncTask and my code works fine on both. It is just slow on android 4.2s. I tried removing chunkedStreaming, keep alive, changing timeout values etc. but still no

Questions about Google Play application assets encryption

谁说胖子不能爱 提交于 2019-12-20 15:44:12
问题 Starting from v4.1 Jelly Bean, Google has introduced a new application assets encryption feature for Google Play. Seems that there were some problems when upgrading apps consisting in persistent data being lost after reboot, caused by the change in apk directory (old one was /data/app , and now it is /mnt/asec ). So, when publishing (or updating an already published app) on Google Play, for OS 2.3+, Can I disable this option and publish an unencrypted application? What is the current state of

How to add custom view in android's JellyBean Launcher

[亡魂溺海] 提交于 2019-12-20 11:09:07
问题 I am working on making custom launcher in android. I have referred the code of android's Jellybean launcher. now I want to make some modification in this launcher. What I want : As we know there are default five work-space screens and I want to add custom view in any one of the workspace screen. My xml file should be inflated in any one of the screen. I have tried many ways to do it but as the default launcher code is very complex still having no luck to finding out way for it. There is

How to add custom view in android's JellyBean Launcher

*爱你&永不变心* 提交于 2019-12-20 11:06:14
问题 I am working on making custom launcher in android. I have referred the code of android's Jellybean launcher. now I want to make some modification in this launcher. What I want : As we know there are default five work-space screens and I want to add custom view in any one of the workspace screen. My xml file should be inflated in any one of the screen. I have tried many ways to do it but as the default launcher code is very complex still having no luck to finding out way for it. There is

Jelly Bean Issue - wifiManager.getConnectionInfo().getSSID() - extra “”

落爺英雄遲暮 提交于 2019-12-20 10:23:59
问题 Hi all bug reporting for your information. link Problem details : The Code - wifiManager.getConnectionInfo().getSSID() The above code to returns the current SSID, it is returning the current SSID with extra quotations around it. For eg. the SSID internet is returned as "internet" . This is only seen on Jelly bean 4.2 using device Nexus 7. This bug is causing errors in our app as we compare the current SSID with the SSID that we are trying to connect too. The code wifiManager.getScanResults();

How to Upgrade projects in eclipse

本秂侑毒 提交于 2019-12-20 07:28:48
问题 We created an android application using eclipse in the version of Froyo until jelly bean 4.2.0 the problem is, we want to run the application in Jelly bean 4.2.2 ..I tried upgrading the minSdkVersion and the targetSdkVersion in eclpise still the application crush when I tried it in 4.2.2 my API .I also go to Windows>preferences>android >the platform has already 4.2.2 I am asking for help..please Help!! 回答1: In manifest change "android:sdkVersion" to 17 回答2: Update target to latest one in

issue in sending sms using smsManager.sendTextManager on android

≡放荡痞女 提交于 2019-12-20 03:02:29
问题 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? 回答1: 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