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
96
votes
12 answers

I lost my .keystore file?

Ok folks.. long story short, I was developing on a computer that I no longer have access to. I was able to retrieve the source code, but not the .keystore file used to sign and publish my application to the market (with several updates). Am I, and…
eportermd
  • 1,571
  • 3
  • 12
  • 8
79
votes
12 answers

Post multipart request with Android SDK

I'm trying to do something I thought would be relatively simple: Upload an image to a server with the Android SDK. I'm found a lot of example…
jpoz
  • 2,197
  • 1
  • 22
  • 29
78
votes
4 answers

Show soft keyboard for dialog

I am displaying a dialog with an edittext view. However, the softkeyboard will open only if the user presses inside the editview. So I tried calling an InputMethodManager with the following code. InputMethodManager imm = …
Rene
  • 3,478
  • 8
  • 26
  • 31
42
votes
4 answers

Android SDK in Eclipse gives error about expired certificate

When building Android project in Eclipse, Android SDK gives error like this: error: Description Resource Path Location Type 1) Error generating final archive: Debug Certificate expired on 7/9/11 6:31 PM MapByLocation Unknown…
M.A.Murali
  • 9,158
  • 30
  • 98
  • 169
37
votes
6 answers

how to limit seekbar

I'd like to set max and minimum limits of SeekBar to 50 and 20 respectively. SeekBar has a direct option top provide max value, but how to set its minimum value to 20 rather than 0?
Shishir.bobby
  • 10,696
  • 20
  • 67
  • 99
31
votes
4 answers

How to wrap text to next line in an Android TextView?

I am using following TextView to display some data in it:
UMAR-MOBITSOLUTIONS
  • 73,009
  • 94
  • 197
  • 273
29
votes
3 answers

android camera surfaceview orientation

Ok so I have a class that extends SurfaceView and overrides surfaceChanged - just calls startPreview surfaceCreated - opens camera, edits params *, sets surfaceHolder surfaceDestroyed - calls stopPreview, release camera this all work great…
Tom Fobear
  • 6,459
  • 5
  • 39
  • 72
25
votes
4 answers

How can I open Android browser with specified POST parameters?

I my application, I need to open a link in Android Browser. This page can receive some data just via POST. Could I add these parameters (data) to the intent which start the browser? Do you know if this is possible? If it is, could you give my a…
Ungureanu Liviu
  • 3,824
  • 4
  • 35
  • 42
19
votes
4 answers

How do I use PackageManager.addPreferredActivity()?

In SDK 1.5 I was using the PackageManager class to set the preferred home screen to be my app using PackageManager.addPackageToPreferred(). In the new SDK (using 2.1) this has been deprecated so I'm trying to use addPreferredActivity() for the same…
afonseca
  • 807
  • 2
  • 7
  • 10
16
votes
7 answers

"Could not get audio input for record source 1"

I've been having this issue with initializing AudioRecord for Android. I searched for quite a while on the web with no success. For the phone, I'm using a Samsung GalaxyS on SDK version 7. For the AudioRecord initialization, I'm using 8000 as the…
Gene
  • 173
  • 1
  • 1
  • 8
15
votes
1 answer

BroadcastReceiver or Messenger via Handler

I have an IntentService which need to pass a message to an Activity. I know two ways of doing so. use sendBroadcast() at the Service side while registering a broadcastReciever at the Activity side which will receiver the message. passing a…
rayman
  • 18,586
  • 41
  • 135
  • 234
13
votes
3 answers

Android view pager change pages automatically after a few seconds

I have used android view pager to display images and text now what i want is that if a user is not changing the images then it should start to change the images automatically after a few seconds and when the user again starts using his finger then…
Osama.070032
  • 148
  • 1
  • 2
  • 9
12
votes
4 answers

android: AbsListView.OnScrollListener SCROLL_STATE_IDLE is not called after SCROLL_STATE_TOUCH_SCROLL (Version 2.1)

I have a problem with android version 2.1. It looks like a bug. I attached an OnScrollListener to my listView. I'm using the method onScrollStateChanged(AbsListView view, int scrollState) for monitoring the scroll's state of my listview. The…
Francesco Laurita
  • 22,784
  • 7
  • 52
  • 63
11
votes
8 answers

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

I get the error mentioned in the title when I run my app on the emulator. While creating it, I had given a sufficient space. How can you fix this? My log file: [2011-09-16 09:28:17 - Trivia] Performing nik.trivia.Splash activity launch [2011-09-16…
Nikhil
  • 1,982
  • 4
  • 29
  • 46
10
votes
1 answer

How is advised to use the contentResolver's delete method to be injection safe?

You can delete with content resolver by URI or by passing some parameters to the where parameter. How do you make the parameters to be SQL Injection Safe? Is it possible to use Prepared Statements with…
Pentium10
  • 190,605
  • 114
  • 394
  • 474
1
2 3
11 12