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
16
votes
2 answers

Does “Clear Data” also kill the app?

When (in Gingerbread, 2.3.x) I hit “Clear Data” button in Menu => Manage Apps => App, “Force Close” button also becomes disabled. Does it mean that “Clear Data” also kills the app? Also, I noticed that in Ice Cream Sandwich this doesn’t happen. So,…
16
votes
2 answers

Android; MapView, how can I set default location?

Using the MapView in android, how can I set a default location, so that everytime I load up this application, it automatically centers/zooms location in on London?
Jimmy
  • 16,123
  • 39
  • 133
  • 213
16
votes
9 answers

GCM SERVICE_NOT_AVAILABLE on Android 2.2

I am getting the error "SERVICE_NOT_AVAILABLE" on my GoogleCloudMessaging.register() call on a Android 2.2 device. I am writing an app that uses GoogleCloudMessaging using the new Google Play Services. I implemented it using the guidelines provided…
15
votes
3 answers

Correct event registration in the 'PhoneGap + jQuery Mobile' application

I am trying to define the correct way to register both initialization events (jQuery-style) for PhoneGap and jQuery Mobile in an Android application. After studying the documentation, I came up with the following: $('#index-page').live('pageinit',…
John Doe
  • 4,574
  • 2
  • 26
  • 30
15
votes
4 answers

Android -> how to animate to the new position

Here is simple xml android animation:
pleerock
  • 18,322
  • 16
  • 103
  • 128
14
votes
2 answers

Streaming with Android MediaPlayer in SDK 8

SDK level 8 (Froyo) has introduced the native capability for the MediaPlayer to connect to a streaming source, like Shoutcast. Previous SDK versions were able to do workarounds, such as run a local proxy on the device (see NPR). I took the same…
Dharwin
  • 444
  • 3
  • 10
14
votes
1 answer

Swiping Images in ViewFlipper or ViewPager

I want to show an image at a time. On a swipe I want to change my image with sliding effect. I read about ViewPager and ViewFlipper. I even have an example of doing such with ViewFlipper. Just need a proper explanation on where to use ViewFlipper…
Ahmed
  • 2,966
  • 7
  • 42
  • 69
14
votes
4 answers

How do I download a file via default Android Downloader?

How can I download files using Android downloader? (The downloader that WebBrowser is using that too). I tried something like this : Intent i = new Intent(Intent.ACTION_VIEW , Uri.parse("MyUrl")); startActivity(i); Any better way? Edit I am using…
Kermia
  • 4,171
  • 13
  • 64
  • 105
13
votes
3 answers

Why is the ContentObserver called multiple times?

I have following ContentObserver implementation for receiving and writing SMS, but it is called multiple times. Code: public class SMSObserverActivity extends Activity { protected MyContentObserver observer = null; /** Called when the…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
12
votes
3 answers

Android SDK. audioManager. setStreamVolume max int value

I'm in the process of developing an Android app. I have been able to successfully set the speaker volume using: AudioManager audioManager =…
Marc Brown
  • 601
  • 2
  • 11
  • 26
12
votes
2 answers

Adding ActionBar to Android API Level 8 App?

I know there is a lot of fragmented material on how to do do this all over the internet but I am requesting someone to please give me a step by step guide on how to go from the very beginning, adding the library to adding the code into my Android…
Ash
  • 8,583
  • 10
  • 39
  • 52
12
votes
1 answer

Drawable vs. Bitmap

I am writing a real-time game for Android, and after looking at some code from the samples provided in the SDK, I am confused as to when I should use Bitmap or Drawable for my sprites in my game. What's the difference? Which one is better (faster)…
12
votes
3 answers

(How) Can an android virtual device use the local computer's internet?

I have a server running on the network my computer is on. Is there a way to allow the virtual device to use this same network and access the server? The virtual device won't let me toggle the wifi (probably because it doesn't have one). The only…
Spidy
  • 39,723
  • 15
  • 65
  • 83
11
votes
2 answers

Import 3 SDKs, get error: Found 3 versions of android-support-v4.jar

I create an Android-application. Have imported all my SDKs (GoogleSDK, FacebookSDK, AppCompatSDK) Right-click on my project -> properties -> Android -> Add my 3 SDKs. Press on Apply and get this error: Found 3 versions of android-support-v4.jar in…
DMT82
  • 871
  • 2
  • 14
  • 32
10
votes
8 answers

Android SDK tools revision 12 has problem with Proguard => error conversion to Dalvik format failed with error 1

I have just updated to Android SDK tools revision 12, immediately my application can't be exported with previous Proguard setting. I received the "Conversion to Dalvik format failed with error 1", the only library I use is "jcifs". I have tried…
Yongki
  • 151
  • 1
  • 1
  • 9
1 2
3
56 57