Questions tagged [android-2.2-froyo]

Android 2.2 is a platform release including user features, developer features, API changes, and bug fixes.

Android 2.2 (Froyo) is a platform release including user features, developer features, API changes, and bug fixes. For information on developer features and API changes, see the Android developers' page Framework API section.

855 questions
534
votes
14 answers

How to programmatically set drawableLeft on Android button?

I'm dynamically creating buttons. I styled them using XML first, and I'm trying to take the XML below and make it programattic.
379
votes
68 answers

Android ADB device offline, can't issue commands

I can't connect to my device anymore using ADB through the command line or in Eclipse. Running the command adb devices returns the device name, but it says it's offline. Things I've tried. Toggled Android debugging mode Reinstalled the Google USB…
Brian
  • 4,328
  • 13
  • 58
  • 103
199
votes
29 answers

ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found

I'm installing the Android SDK on a fresh installation of Fedora 14 (Linux). I installed eclipse, and ran the tools/android sdk tool to install all the Eclipse components for the SDK. I was able to get DDMS to install when selecting it by…
Brad Hein
  • 10,997
  • 12
  • 51
  • 74
139
votes
17 answers

No Activity found to handle Intent : android.intent.action.VIEW

This is my code to play the recorded audio 3gp file Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(path); intent.setDataAndType(data, "audio/mp3"); startActivity(intent); But while…
jennifer
  • 8,133
  • 22
  • 69
  • 96
57
votes
9 answers

Why can't one add/remove items from an ArrayAdapter?

I am using an ArrayAdapter to populate the items to list in a android.widget.Spinner. That works all fine. But now I want to keep the list of items dynamic, i.e. I want to be able to add/remove items from the selection list at runtime.…
mmo
  • 3,897
  • 11
  • 42
  • 63
52
votes
5 answers

Uninstall old Android SDK versions

I installed Android SDK and it's taking almost 7 GB on my (relatively small) SSD. When I open Android SDK Manager I can see that everything is installed even older API versions. Same thing for the Extras: Can I safely un-install all the versions…
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
52
votes
6 answers

Can I get data from shared preferences inside a service?

I'm developing an android application. I'm using android 2.2 In my application I am capturing GPS data and sending it to service with the 1 hour time interval. If user exits from application it's also working (it is required). I'm using 2 services…
51
votes
7 answers

Reading RFID with Android phones

I did enough research on reading RFID tags using Android phones(smart phones). My understanding of this is that for NFC-enabled smart phones (Nexus S) it is possible to read RFID tags, but there are restrictions. For non-NFC-enabled Androids we…
varunrao321
  • 925
  • 2
  • 10
  • 18
46
votes
17 answers

Android SDK Manager gives "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml" error when selecting repository

I'm trying to install a platform but when I open Android Manager then I click Available Software then select the https://dl-ssl.google.com/android/repository/repository.xml repository I get this error: Failed to fetch URL…
Vaibhav
  • 6,620
  • 11
  • 47
  • 72
46
votes
15 answers

What does "Failure [INSTALL_FAILED_OLDER_SDK]" mean in Android Studio?

I got this Froyo (2.2) device that I am using to make an app. When I try to run the app directly to the device it shows an error saying pkg: /data/local/tmp/com.example.HelloWorldProject Failure [INSTALL_FAILED_OLDER_SDK] and in another window…
Abel Callejo
  • 13,779
  • 10
  • 69
  • 84
39
votes
2 answers

Custom SSL handling stopped working on Android 2.2 FroYo

For my app, Transdroid, I am connecting to remote servers via HTTP and optionally securely via HTTPS. For these HTTPS connections with the HttpClient I am using a custom SSL socket factory implementation to make sure self-signed certificates are…
Eric Kok
  • 2,042
  • 3
  • 22
  • 32
33
votes
4 answers

What is a maximum size of SQLite database on Android?

I have a SQLite db that size is over 2.6 GiB. (The db contains maps.) This db is used by RMaps app. When move the maps to some parts at maximum zoom, the app suddenly closes. However, there is no force close message, no report button. So, I've got…
TN.
  • 18,874
  • 30
  • 99
  • 157
32
votes
2 answers

SchemaFactory doesn't support W3C XML Schema in platform level 8?

With the Android SDK, the following code in a plain empty Activity fails: @Override protected void onStart() { super.onStart(); SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); } The 2.2 emulator…
user377721
31
votes
7 answers

Android emulator: could not get wglGetExtensionsStringARB error

I am getting this error in the android emulator logs since I updated the SDKManager and ADT: [2012-07-10 15:51:23 - Emulator] could not get wglGetExtensionsStringARB What does it mean? And is there anything I can do about it?
28
votes
10 answers

Could not find INI file in $ANDROID_AVD_HOME nor in $HOME/.android/avd

I cannot start a virtual devices on android SDK when I press the start button on AVD manager, this error shows on my screen: Starting emulator for AVD 'AVD_for_Galaxy_Nexus_by_Google' PANIC: Could not find AVD_for_Galaxy_Nexus_by_Google.ini file…
1
2 3
56 57