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
1
vote
2 answers

Conversion to Dalvik format failed error for Android Grid View

I'm on the android bandwagon and started going through google's "view" tutorials. Here is what I'm using: Eclipse Galileo Android SDK 2.1 Java SDK 6.Something I think. Everything was hunky-dory until I hit the grid view tutorial. I got errors all…
Bub
  • 79
  • 1
  • 2
  • 8
1
vote
2 answers

Are there java bindings for OpenGL ES 2.0 on the Android platform?

I know that the recently released android ndk r3 supports opengl es 2.0 on supported phones (nexus one for example), however it doesn't say whether there are java bindings for opengl es 2.0 included in the SDK yet. Are said bindings on the way, and…
Jeremy Bell
  • 5,253
  • 5
  • 41
  • 63
1
vote
1 answer

How do I add contact to a group on Android?

I read about ContactsContract.CommonDataKinds.GroupMembership, but I can't figure out what URI use to insert to. I have prepared this method: public static Uri addToGroup(ContentResolver resolver, long personId, long groupId) { …
Pentium10
  • 204,586
  • 122
  • 423
  • 502
1
vote
2 answers

How to catch fire of onItemSelected of a Spinner, after the interface has been setup?

I am having an Android view with a Spinner on it. I call a populateSpinner() method to add some default values to it. I also have a onItemSelected() event which gets called before the view is completed to print. I would like to run a code inside…
Pentium10
  • 204,586
  • 122
  • 423
  • 502
1
vote
3 answers

Issue using Contact Group delete on Android

I have this code to delete a Contact Group public void delete(Activity act,String[] args) { try { int b=act.getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,"_ID=?", args); Toast.makeText(act,…
Pentium10
  • 204,586
  • 122
  • 423
  • 502
1
vote
0 answers

Android sensors to control game

I'm trying to setup my android game to use android sensors for controlling the game. When the phone is tilted forwards slightly, I want the thrusters to fire. And tilting the phone left or right rotates it in the rescpetive direction. At the moment,…
Dave Clarke
  • 2,677
  • 4
  • 22
  • 35
1
vote
1 answer

Droid Box working

I install the Android SDK in the mac, the AVD working good as android 2.1 api7. I use Droid box to testing apk, but fail, reply message droidbox.sh: line 3: adb: command not found droidbox.sh: line 3: adb: command not found In my SDK platform have…
葉騁遠
  • 11
  • 1
1
vote
0 answers

Android SDK Manager Not Loading API level 7

I m new in Android. I have installed installer_r18-windows , while launching sdk manager form Eclipse==> windows , it started downloading all the api level but i cant see api level 7. there are 8,10,13,15 api levels. I had created environemnt with…
0
votes
2 answers

Camera at Android 2.1 works fine but doesn't in Android 2.2. Why?

I have to develop an android app for which I have to use camera feature. Before developing the app I checked the default camera app of emulator and I found that it works in Android 2.1 but doesn't works in Android 2.2. Can anybody say why this…
Chandra Sekhar
  • 18,914
  • 16
  • 84
  • 125
0
votes
1 answer

Android SDK Eclipse Error

I'm trying to get some of the samples to run from the Android SDK samples but am having troubles getting them to run on my device. I am running windows 7 64-bit and my device is an LG Optimus Slider. I installed the SDK through eclipse indigo (the…
Jeff K
  • 11
  • 1
0
votes
3 answers

Play android Recorded file into PC

I am using below code to record voice. But, when I play that recorded file in pc. No music player can play. while in phone it's playing very well. Dose anybody can say that how can i play android recorded file in desktop or laptop. Code that I am…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

store context in shared preference for facebook logout in Android

i develop a game project in which i have implemented facebook sdk for posting scores on the wall in facebook. But there is a problem for logout in facebook. I have to logout from facebook in settings page which is different page from where i have to…
0
votes
1 answer

How to extract number of followers of a user from twitter website using WebView in Android?

I want to program an Android app -for android 2.1 and above- that does not have to be authorized to extract just the number of followers of a twitter user. I was thinking about using the WebView to load the twitter URL of the user and then I extract…
SultanSh
  • 103
  • 1
  • 2
  • 11
0
votes
2 answers

rawQuery return always return false

I am trying to iterate on my database records. but for some reason it always return an empty cursor. If I pull out from the emulator the database file file the 'File explorer tab' I can see the table and the data in it. here is my code: Cursor…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Android SDK onCreate called every single time

What am I missing here? Problem is, I launch my app onCreate is called. I press the home button to leave it, press the app icon again and onCreate is called yet again. The activity is being killed, right? Well, if I press home to leave the app,…
GregInWI2
  • 904
  • 1
  • 17
  • 26