Questions tagged [android-1.6-donut]

For issues relating to developing with the android SDK, version 1.6 (Donut).

Android version 1.6, code name Donut and API level 4, is one of the earlier versions that has been released on 15th September 2009. This is the lowest version that is covered by Google's support package supports package.

Android 1.6 Feature Page

25 questions
15
votes
2 answers

ClassCastException on a subclass of ListFragment using compatibility library

This only happens when using the compatibility library for pre-3.0 devices I'm getting an error that I cannot pin down. I have an Activity with a ListFragment and standard Fragment. It is just like the example provided in the Developers section of…
Spidy
  • 39,723
  • 15
  • 65
  • 83
4
votes
1 answer

Getting a simple fling gesture

So this is half a how-to and half a best practices question. First, if I just want to get a simple "fling right" (which will go back to a previous activity) should I implement OnGestureListener or do something with GestureOverlayView? I read Fling…
Emily
  • 564
  • 1
  • 5
  • 13
4
votes
2 answers

Set install location for Android 1.6?

I'm writing an application that is compatible with Android 1.6, but I would like to give users running Android 2.2 the option of moving the application installation to their sd card. How can I compile my application for 1.6, but still allow 2.2…
Kleptine
  • 5,089
  • 16
  • 58
  • 81
3
votes
2 answers

How to get the system ip address after usb tethering of android phone?

I'm developing a mobile application in android. Here I want to detect the IP address of the computer,system,etc after the usb tethering of the any android phone I cannot find the solution. If I put the following code then it takes the only the…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
2
votes
2 answers

Strange error (could not find method) on Android 1.6 only

I've tried to add the following class to my app: public class AlertDialogHelper { public static AlertDialog.Builder getDarkDialogBuilder(Context context) { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { int…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
2
votes
3 answers

Upgrading and Application from Android 1.6 to Android 2.2 does not work

I currently found out, that my Application developed for Android 1.6 does not work on Android 2.2. I'm quite puzzled about this, because its a very simple Application which almost does nothing. The Expeption I get is like…
MADMap
  • 3,132
  • 3
  • 25
  • 31
2
votes
1 answer

AsyncTask to run on Activity start fails after previously getting cancelled

I am using an AsyncTask to fetch the ring tone for a contact when my application starts, it works fine until after my Activity closes a couple of times during the AsyncTask, after this happens the AsyncTask will only ever get to onPreExecute() and…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
1
vote
2 answers

ListView, Checkable items don't get checked on Android 1.6

My app is currently targeted at Android 1.6. It contains a ListView with CHOICE_MODE_SINGLE. All the items implement Checkable. I am using setItemChecked(int position, boolean value) to check/uncheck items as needed. It works as expected on Android…
riha
  • 2,270
  • 1
  • 23
  • 40
1
vote
1 answer

Can Android Studio 4 build projects with API < 9?

I would like my app to support any Android phone api 3 and above. Why? Because I dislike waste and these older phones are perfectly good enough for the task at hand. Sadly getting info about basic pre-api-9 SDK builds has proven far harder than…
1
vote
2 answers

Dynamically change font size in Android

I want to support font resizing with an entry in Preferences (where the user picks among given font size options) or by using a gesture (flinging up/down) as used in popular e-book reader applications such as Aldiko. Flinging up and down along right…
faraday
  • 324
  • 2
  • 7
  • 14
1
vote
1 answer

Invalid column in contacts

I am planning to create cursorjoiner for my app. I would like to join the Display name and Email id using the cursorjoiner. I am trying on Android 1.6. When I query for the Email Id list, I get an exception as : 03-30 13:08:15.609:…
Vinay
  • 2,395
  • 3
  • 30
  • 35
1
vote
2 answers

How can I query contact information based on a phone number

I am trying to query contact information based on a phone number on android 1.6. This is the code I tried. But I get count equals to 0 in my cursor. String selection = "PHONE_NUMBERS_EQUAL(" + People.Phones.NUMBER + " , " + phoneNumber + ")"; …
michael
  • 106,540
  • 116
  • 246
  • 346
1
vote
1 answer

Receiving SMS messages in Android 1.6

I have a code sample (from Reto Meier's book) on receiving SMS messages in an android application using a broadcast receiver. I am looking to be able to receive a SMS message in my application however the code I already have a sample of seems to be…
Tom
  • 7,316
  • 9
  • 35
  • 35
1
vote
1 answer

how to pass some data as a parameter like http parameter in socket?

I'm using Android 1.6. In my office there is some application which sends some data via HTTP post method. I want to add a module send the data via socket.I send the data via socket (output stream) correctly.It receives in server side (c# socket…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0
votes
1 answer

Admob ads not displayed on android 1.6

i have an app that runs perfectly on android 1.6+, but admob ads are not displayed only in 1.6 version.
zesilva
  • 47
  • 1
  • 2
  • 4
1
2