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

Which Android API to use?

I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platforms. My question is, I want to develop apps for 2.x platform. Do I need to download API 7-10? Which one to target? Also, if you have…
Ruel
  • 15,438
  • 7
  • 38
  • 49
8
votes
4 answers

Switch from AOSP master to froyo

I just checked out master with repo. Now I want to switch to froyo. How can I do this without downloading a bunch of stuff again? I don't want to download a bunch of stuff again, I just want to be able to move freely between branches as in a normal…
jeffcook2150
  • 4,028
  • 4
  • 39
  • 51
8
votes
2 answers

AlertDialog or Custom Dialog

I'm developing an Android 2.2 application. I want to show a text with an Ok button but I want to add my custom style. What is the better choice an AlertDialog with a custom layout or a Dialog?
VansFannel
  • 45,055
  • 107
  • 359
  • 626
8
votes
3 answers

glGetShaderInfoLog returns empty string (android)

I am modifying the version of the android version of the 2d texture example from OpenGl ES2.0 programming guide to change the fragment shader. this is written in pure Java and doesn't use the NDK. The vanilla example works just fine on my phone,…
Teknogrebo
  • 1,247
  • 1
  • 12
  • 22
8
votes
2 answers

Android 2.2 SDK breaks compatibility with older phones

I have recently updated my app to a build tarket of SDK version 8 in order to include the App2SD feature for my users. However I have had reports of devices on SDK 3 (1.5) having problems starting the application, with the following stack…
Tom
  • 1,191
  • 1
  • 13
  • 24
8
votes
3 answers

Android 2.2 and "Bad address family" on Socket Connect

I have a fairly simple game that works perfectly on every version now up through 2.1, but with the new 2.2 (Froyo) release I am unable to create a socket. I am using the mina package for nio, and get this exception: W/System.err( 263):…
Josh
  • 1,435
  • 12
  • 19
8
votes
2 answers

How can I remove edittext error and request focus in android?

When I set error and request focus on edittext then it sets an error and request focus but how can I remove error and remove focus ? mEditTextSearchOrAdd.setError("Error"); mEditTextSearchOrAdd.requestFocus();
Najib.Nj
  • 3,706
  • 1
  • 25
  • 39
7
votes
3 answers

Android camera functions don't work on a few phones

I just realized my camera activity in a surfaceholder doesn't work on some devices. Some DROID branded and skinned phones. It works on all google phones with standard android implementation so far. I got a brief moment to debug a device on 2.2…
CQM
  • 42,592
  • 75
  • 224
  • 366
7
votes
2 answers

Android ProgressBar: loading with Timer

Update: This post was from when I was learning android with android 2.2, be sure to check if this is compatible with the api level you are working with. Done alot of looking around for how to load progress bar with a timer, I've tried to use…
acrichm
  • 179
  • 1
  • 4
  • 16
7
votes
2 answers

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first

This is my code: Frame.gameController.test(); setContentView(Frame.world.getScreen()); Frame.world.setRunning(true); On the second line I am getting the following error: ERROR/AndroidRuntime(15229): Caused by: java.lang.IllegalStateException: The…
Kishor datta gupta
  • 1,103
  • 2
  • 14
  • 42
7
votes
2 answers

Camera.getNumberOfCameras() not working on Android 2.2

I am trying to use API Camera.getNumberOfCameras() but getting error "Cannot find symbol" while compiling. My API level is 8. Can anyone please tell me whats the way to get this function work? Thanks.
Abhijeet Pathak
  • 1,948
  • 3
  • 20
  • 28
7
votes
4 answers

Start / stop built-in Wi-Fi / USB tethering from code?

How can I start or stop the built-in tethering in Android 2.2 from my application?
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
7
votes
1 answer

Geo Fix command does not pass altitude

On Android 2.2 Emulator, the "geo fix" command seems not to be working properly. The emulator responds "OK", and onLocationChanged() is properly called in my program. However, the Location object seems not to be complete - it registers latitude…
SirBoss
  • 181
  • 1
  • 1
  • 9
7
votes
5 answers

Double click event in android

How to implement double click event in android without using gesturedetector?
user386430
  • 4,837
  • 13
  • 41
  • 45
7
votes
1 answer

ListView setOnItemClickListener and setOnItemSelectedListener to store the Selected Item Index

I have read on this site that it is necessary to customize the setOnItemSelectedListener and setOnItemClickListener of a ListView if we want to know the Index of the SelectedItem (.getSelectedItemPosition()). So that is what I do but it does not…
Christophe
  • 113
  • 1
  • 2
  • 7