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
24
votes
3 answers

How to finish parent activity from child activity

I am new to Android development. I have created a main Activity (->A), which has 4 buttons. One of the 4 buttons is the EXIT-button. I start another activity (->B), on click of the EXIT-button. This opens 'B'Activity via an intent from…
sudhishkr
  • 3,318
  • 5
  • 33
  • 55
23
votes
2 answers

Device Check (Samsung vs Others)

I am working on an application, where there is some code implementation difference for samsung and htc, kindly have a look at my SO question Sending SMS to multiple recepients (Samsung vs HTC) How can I put a check for if the device is samsung or…
Najeebullah Shah
  • 4,164
  • 4
  • 35
  • 49
22
votes
3 answers

Multiple alignment in TextView?

I have a TextView like below. I used this code to set gray color for a part of the text. // Prepare result text. final String resultText = text + "\n\n" + dictionaryName; final SpannableString styledResultText = new…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
21
votes
10 answers

Check if all AsyncTasks have finished

I have 3 AsyncTasks and 1 ProgressBar. I want when any of task executes, the progress bar is visible and when all of them finish, the progress bar is invisible. In Java, there is ExecutorService::isTerminated to check if all runnables finished but…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
20
votes
2 answers

ADB Shell giving bad mode when executing chmod (under su)

I'm having an issue related to the Android ADB Shell. When I try to execute the command chmod he gives me a "Bad Mode". I don't get it why. I'm sure I'm executing under "su", as represented by the '#'. Anyone have any idea why this is happening, and…
Comic Sans MS Lover
  • 1,729
  • 5
  • 26
  • 52
20
votes
1 answer

DropBoxManager use cases?

I noticed that a DropBoxManager has been introduced in Android API since FroYo (API 8). It looks like an alternative logger capable of logging not only text but also files or byte arrays, but I could not find any detailed doc anywhere about how and…
Kevin Gaudin
  • 9,927
  • 3
  • 32
  • 34
20
votes
2 answers

How do I pause Flash content in an Android WebView when my activity isn't visible?

I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps…
BenV
  • 1,196
  • 1
  • 12
  • 19
19
votes
3 answers

Replacing fragments and orientation change

I'm developing an Android application targeting 2.x and 3.0 devices and thus I'm using the compatibilty API. I'm testing on Android 2.0. I'm trying to replace a displayed fragment with another one (search form with search results) and I'm…
19
votes
1 answer

Android ArrayAdapter.Add method not working

The ArrayAdapter.add() method is not working for me. I am using Eclipse Helios 3.6 with ADT Plugin, Target Source is a Froyo 2.2 emulator and 2.2 HTC Evo 4g. Here is my java class import android.app.Activity; import android.os.Bundle; …
Mike
  • 245
  • 1
  • 3
  • 9
19
votes
1 answer

Tutorial to implement the use of TabHost in Android 2.2 + ViewPager and Fragments

A short tutorial for people like me who had some trouble finding a way to implement TabHost and ViewPager, including page swiping with fingers and tab click to change pages. The shown solution is compatible with Android versions 2.2+. It includes…
18
votes
6 answers

How to "download" Android Studio IDE without the SDK?

I already have Android SDK latest edition and Eclipse installed. But I want to try Android Studio as well. I have seen this and this post, but those solutions change the instance of SDK Android Studio (once downloaded and installed) uses. What I…
Solace
  • 8,612
  • 22
  • 95
  • 183
18
votes
5 answers

Alternative to setAlpha in api level 8

I am working on an app, which can run on Froyo as well as JellyBean. I have a class that extends PageTransformer as below: import android.support.v4.view.ViewPager.PageTransformer; import android.view.View; public class ZoomOutPageTransformer…
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
17
votes
6 answers

JQuery doesn't work on WebView

I tried to include JQuery files in assets/scripts and on Internet, but the alert dialog doesn't show. I got the log output and make it output.html, it works in Windows (so strange!). What's the problem with WebView? public void onCreate(final Bundle…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
17
votes
8 answers

Android: R.drawable not showing my image?

In my android 2.2 app, I've added my image to the res/drawable-mdpi folder. However, I cannot seem to access it using R.drawable.. As far as I know, there isn't any additional configuration I need to do - any help?
Andy Hin
  • 30,345
  • 42
  • 99
  • 142
17
votes
3 answers

Android; Geocoder, why do I get "the service is not available"?

I want to use the Geocoder in an android application, I've got the following piece of code to sample it : public class LocatorGeo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
1
2
3
56 57