android-sdk-2.3

How to implement caching in android app for REST API results?

岁酱吖の 提交于 2019-11-30 06:36:56
问题 My android app gets its data using REST API. I want to have client side caching implemented. Do we have any inbuilt classes for this? if not, is these any code that i can reuse? I remember coming across such code sometime back. However I cant find it. If nothing else works, i will write my own. following is basic structure public class MyCacheManager { static Map<String, Object> mycache; public static Object getData(String cacheid) { return mycache.get(cacheid); } public static void putData

Android ActionBar compat overflow menu not showing on sdk 10

≡放荡痞女 提交于 2019-11-30 04:56:48
问题 Hello and thank you for the time you take in reading this question. I am trying to develop an android app which will use the ActionBar compat library. I have followed (as far as I see it) all the recommendations when using the compat library. My Manifest looks like this(only relevant code shown): <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8"

Gingerbread emulator instance is much more sluggish than Froyo and below. Why?

你。 提交于 2019-11-30 03:49:07
I'm not sure if anyone else noticed it, but the Gingerbread emulator runs like a dog, with both scrolling, navigating, interaction - all taking much longer and being much choppier. I even got an ANR in the browser when I tried to use it: http://www.androidpolice.com/2010/12/06/walkthrough-and-hands-on-with-the-gingerbread-ui-the-new-gingerbread-keyboard-in-all-its-sexiness/ (see towards the bottom). I've just read about the new StrictMode at http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html and about all the performance improvements in Gbread, but my experience

why does the gingerbread emulator orientation get stuck in apps?

狂风中的少年 提交于 2019-11-29 03:16:55
At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator. To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target) So the procedure to duplicate once the emulator loads is press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait Result: In the homescreen: The view rotates to landscape, and then back to portrait, as expected In any app (i've tried browser, calculator, maps, and

Gingerbread emulator instance is much more sluggish than Froyo and below. Why?

江枫思渺然 提交于 2019-11-29 01:21:30
问题 I'm not sure if anyone else noticed it, but the Gingerbread emulator runs like a dog, with both scrolling, navigating, interaction - all taking much longer and being much choppier. I even got an ANR in the browser when I tried to use it: http://www.androidpolice.com/2010/12/06/walkthrough-and-hands-on-with-the-gingerbread-ui-the-new-gingerbread-keyboard-in-all-its-sexiness/ (see towards the bottom). I've just read about the new StrictMode at http://android-developers.blogspot.com/2010/12/new

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Android 2.3

牧云@^-^@ 提交于 2019-11-28 21:36:01
In my server (production server), I have a goDaddy ssl certificate. I have both iOS and Android apps connecting with the server, iOS connecting with no problems, android with versions 4.* everything is good, but with devices with 2.3.* I always get a SSLHandshakeException. I did exactly like on Android Developers page ( https://developer.android.com/training/articles/security-ssl.html ). I already saw similar threads here in stackoverflow ( here ) but none is helping. Then I saw this thread talking about Extended Key Usage, but when debugging I get the following information: [2]: OID: 2.5.29

Could not find adb.exe - after upgrade to Android SDK 2.3

你。 提交于 2019-11-28 20:06:30
I have upgraded my Android SDK to version 2.3 and Android Development Tools 8.0.0. Now in Eclipse, I get an error message: Could not find C:\Program Files (x86)\Android\android-sdk-windows\platform-tools\adb.exe! And I don't have that file. How can I fix this? Is it a bug in the Android SDK 2.3 or Android Development Tools 8.0.0? disco I simply did "Help" -> "Check for uppdates" in Eclipse. Then I checked every update possible (I had 2) accepted, waited for the updates to complete, restarted Eclipse and then everything was fixed! I had some new build errors after the update, though, saying

Problem with Hindi keyboard on Android 2.3 emulator

戏子无情 提交于 2019-11-28 12:53:56
I have selected some of the languages (like Hindi, English(India), English(United Kingdom) etc.) from Input languages option in Android keyboard settings in my emulator (Android 2.3 API). But the problem is that neither it is showing HINDI characters on Soft Keyboard nor displaying some of the Numbers on the keys e y u i o . Problem is exactly shown in below given screenshot: Also it is displaying rectangular boxes instead of characters. Read this Android Feature Request . If you read towards the end (December 2010), you will see discussions of Gingerbread (Android v2.3) and that although it

Stuck at “.android/repositories.cfg could not be loaded.”

醉酒当歌 提交于 2019-11-28 05:39:16
brew cask install android-sdk ==> Caveats We will install android-sdk-tools, platform-tools, and build-tools for you. You can control android sdk packages via the sdkmanager command. You may want to add to your profile: 'export ANDROID_HOME=/usr/local/share/android-sdk' This operation may take up to 10 minutes depending on your internet connection. Please, be patient. ==> Downloading https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip Already downloaded: /Users/ishandutta2007/Library/Caches/Homebrew/Cask/android-sdk--25.2.3.zip ==> Verifying checksum for Cask android-sdk ==>

Where is the deployed apk file? how to uninstall it with adb?

北城以北 提交于 2019-11-27 21:27:17
I have tried to install my apk using adb like this: D:\C_Desktop\Development\Android SDK\platform-tools>adb install "C:\test_haxe\bin\android\bin\bin\testhaxe-debug.apk" 4274 KB/s (3702929 bytes in 0.846s) pkg: /data/local/tmp/testhaxe-debug.apk Success so, its installed fine, but at my phone, I couldn't find the apk file, is it deleted after being installed?! also, I tried to uninstall it like this: adb uninstall com.ketab.haxe but I get Failure Because I have no emulator, I will have to install the app each time to see the progress, so I will need to uninstall it and then install the new app