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

change or possibly remove the tab border on tabwidget

i recently customized the UI of my tabs by setting a backgroundResource on each tab, then switch between selected / unselected depending on which tab is currently in focus. I got one problem though, there seems to be a white border that comes with…
Krewie
  • 115
  • 1
  • 11
3
votes
1 answer

How do I get the time when the Location has been updated in Android?

As you know we can get thast Last Known Location, but how do we get the time when that has changed?
Pentium10
  • 204,586
  • 122
  • 423
  • 502
3
votes
3 answers

Any way to get the sender phone number from a received sms on android?

I wrote send and receive sms program sucsessfully but I want to that checked receiver phone number in onReceive method. how can i get the sender phone number from a received sms in android? I wrote this code but it dosent worked!!! please check it…
user1770370
  • 267
  • 2
  • 7
  • 18
3
votes
1 answer

Error while downloading Android SDK Tools

I am trying to install Android SDK Tool(Revision 20) . However, as shown in attachments, it always fails after reaching 59%. I have already updated my ADT plugin to 20.0.3 as mentioned here It then finishes with this error :- Downloading Android…
Prashant Singh
  • 3,725
  • 12
  • 62
  • 106
3
votes
2 answers

android-sdk\docs\reference missing

While creating my JavaDoc for an Android project, I'd like to include a link to the offical online reference of Android when clicking on Android classes/packages. As far as I know most people do this, using a linkoffline, providing the package list…
Johannes Staehlin
  • 3,680
  • 7
  • 36
  • 50
2
votes
3 answers

Android Manifest File Not Picking Up Default Launch Activity

If on run/debug configuration, if I specify a launch activity, then my app runs fine, but when I select 'Launch Default Activity' I get "No Launcher activity found!" error from android adb despite the fact that I have specified the launch activity…
James Coote
  • 1,975
  • 19
  • 29
2
votes
1 answer

Access is denied when installing Google APIs

When installing Google APIs for level 7 in Eclipse with the SDK Manager, I got the error: File not found: C:\Program Files (x86)\Android\android-sdk\temp\google_apis-7_r01.zip (Access is denied) Done. Nothing was installed Is this to be…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
1 answer

Can I register more than one BroadcastReceiver for an Activity in an Android Programming?

I implemented a sample application which Shows the Phone Information, Battery Information of an Android application. I created two different Class files for two activities. There is no issue in getting the phone related information. There is an…
Puru
  • 8,913
  • 26
  • 70
  • 91
2
votes
3 answers

Android: NullPointerException on getWritableDatabase()

Here is where I try to access the database: UserDataAdapter dbHelper = new UserDataAdapter(this); dbHelper.open(); dbHelper.createNetwork(network); dbHelper.close(); UserDataAdapter.java: public UserDataAdapter open() throws SQLException { …
2
votes
3 answers

Pick songs from SD card on Android and play it

I have songs in the Music folder on the SD card. And in my app I want to pick a song from SD card from the list of music files, and when I choose any song, then using the Play button it should be played. How can I do that? I have already done it…
Geetanjali
  • 1,043
  • 3
  • 13
  • 37
2
votes
1 answer

How does one play sounds asynchronously and simultaneously(polyphony) on Android?

Imagine a piano like touch based application. Now all that has to be done is to assign different sound files to different keys. I am using the SoundPool class but the following problems are happening: The sounds don't play simultaneously. Rarely do…
kumar
  • 882
  • 2
  • 11
  • 19
2
votes
2 answers

Where is Android SDK option to install on Android Studio?

I've just formatted and installed a fresh windows 10. Next, I downloaded Android Studio and didn't see the Android SDK option to install. Android_Studio_Install_Option I installed it nevertheless. Naturally, after I opened Android Studio, it opened…
2
votes
1 answer

Image Processing in an Android App

I'll be creating an application which has some amount of Image Processing as its core feature. I'll be wanting to do following things with it- Be able to save the downloaded or created Images in the phone memory/ SDCard that may be available in…
Aman Alam
  • 11,231
  • 7
  • 46
  • 81
2
votes
2 answers

is the vibration for call setting accessible in android?

Is there a way I can access the system preference for vibration settings? I have an alarm-like app which I want to inherit the vibration setting from the phone's ring/sound settings. However, I do not know how to programmatically access these…
damonkashu
  • 1,813
  • 5
  • 19
  • 25
2
votes
2 answers

Playing SMIL on Android 2.1

Is it possible to invoke native SMIL player on Android 2.1? Can you please provide a code sample or a pointer to relevant info? Thanks a lot
Asahi
  • 13,378
  • 12
  • 67
  • 87