Questions tagged [android-sdk-2.1]

For issues relating to developing with the android SDK, version 2.1 API level 7

Android 2.1 is a minor platform release deployable to Android-powered handsets starting in January 2010. This release includes new API changes and bug fixes. For information on changes, see the Framework API section.

Read More : Android 2.1

178 questions
2
votes
2 answers

android UI external libraries?

I'm starting with android, and the app I'm developing is gonna need custom widgets look (glossy buttons, animated backgrounds etc.), I've googled for any external libraries to achieve this and did not find anything. let me guess, the only way to…
Youssef
  • 1,310
  • 1
  • 14
  • 24
2
votes
1 answer

Unsupported record version Unknown-2.0 android studio

I am new to android studio and want to make a game. After the first time setup, I saw in preferences that it doesn't have a Android SDK location. When I try to install it, it says Unsupported record version Unknown-2.0. When I press retry, it keeps…
2
votes
1 answer

Android Intent Action "ACTION_INSERT_OR_EDIT" - should it be used for adding contacts?

At the moment I am searching for an easy and supported way of adding contacts in Android up from SDK level 7. (when some kind of data like the phone number is available) I looked at the default contact application and found…
denis
  • 1,393
  • 3
  • 14
  • 34
2
votes
0 answers

Android 2.1 How to get Phone Numbers of contacts

I am new to Android and have been working on an app that needs to get all of the user's contact's phone numbers. Apparently the code I have does not work with the 2.1 SDK. So far here is the code I am using: String[] projection = new String[] {…
Brandon Delany
  • 45
  • 1
  • 1
  • 4
2
votes
1 answer

Drawing an empty polygon given a set of points on a Map Overylay (Android 2.1)

I've set of n points and I want to draw a n-sided polygon using these points. I tried using android.graphics.path (please see below). Path path = new Path(); Vertex currVtx; for (int j = 0; j < vertices.size(); j++) { currVtx =…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
2
votes
2 answers

How to get my contact card/id on Android?

How do I get my contact card/id of a Android phone? eg: the owner of the phone
Pentium10
  • 204,586
  • 122
  • 423
  • 502
2
votes
0 answers

VoiceRecognition.java gives me the error "Recognizer not present"

The sample program VoiceRecognition.java gives me the error "Recognizer not present" using the emulator. How do I fix this problem.
Ravi
  • 21
  • 1
2
votes
1 answer

Showing Live Wallpaper in a 1.6 target app by detecting if it's a 2.1 device?

We're building an Android app with target SDK 1.6, so it will run on 1.6 devices and higher. We'd like to support Live Wallpapers, which we know is 2.1+ only. Is there a way to build one app with 1.6 SDK as the target, but detect if the device…
itamarw
  • 51
  • 4
2
votes
1 answer

AvoidXferMode Tolerance

I have a problem with the following code: protected void onDraw(Canvas canvas) { Paint paint = new Paint(); // Draw a blue circle paint.setColor(Color.BLUE); canvas.drawCircle(100, 100, 50, paint); // Draw a red circle where it…
kayahr
  • 20,913
  • 29
  • 99
  • 147
2
votes
3 answers

How to raise a Toast on top of a AlertDialog?

I am validating an AlertDialog, and I would like to raise a Toast on top of the AlertDialog display. I have this code, but the Toast is displayed on the activity new AlertDialog.Builder(this).setTitle(R.string.contact_groups_add) …
Pentium10
  • 204,586
  • 122
  • 423
  • 502
2
votes
2 answers

Problem when trying to get Contracts Group ~ Unknown URL content://com.android.contacts

Problem when trying to get Contracts Group Uri contacts = ContactsContract.AUTHORITY_URI; //Log.v("23",contacts.toString()); // Make the query. Cursor managedCursor = act.managedQuery(contacts, projection, // Which // columns // to …
Pentium10
  • 204,586
  • 122
  • 423
  • 502
2
votes
2 answers

Wave processing and Raspberry Pi

I'm looking for tutorials, and guidance and not code. I'm developing a project and the core of the work has been written in C++ and I need to build a user-interface for the Andriod platform. The Android application will work like this: Problem…
Phorce
  • 2,632
  • 13
  • 43
  • 76
2
votes
2 answers

Continuously tracing the available bluetooth connections in the mobile's vicinity using android

I need to continuously monitor the bluetooth devices which are present every 5 seconds. I have written the following piece of code which is not working for me. private static final int DISCOVERY_REQUEST = 1; @Override public void onCreate(Bundle…
Dheeraj R
  • 701
  • 9
  • 17
2
votes
2 answers

Get path of song from SD card in android

In my android application I want to fetch song from SD card but I am not able to get the path of that particular file.I am using android api level 7 which doesn't support following method. Environment.getExternalStoragePublicDirectory…
1
vote
1 answer

MyLocationOverlay.enableCompass() stopped working on Google Map API 7 and 8

Arg.. This is frustrating: All of a sudden (March 2012) MyLocationOverlay.enableCompass does not work. It works okay using Google APIs 14, but is leaves the screen all black on Google APIs 7 and Google APIs 8. I would like to keep the compass…
JJ Stiff
  • 158
  • 8