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
4
votes
1 answer

Android:Aspect ratio in cropped image captured from camera

Can we provide aspect ratio for the image captured from camera that is cropped at runtime.so for the parameter 1.intent.putExtra("crop","true"); works 2.intent.putExtra("aspectX",730); not working 3.intent.putExtra("aspectY",1115); …
Geetanjali
  • 1,043
  • 3
  • 13
  • 37
4
votes
4 answers

installing android offline is hard[obsolete]

i am a student in africa and in our land, there actually exist slow and expensive internet connections, which is why we tremble in fear whenever we hear the word "online repository" method of installing software. Damn, that usually means you have…
Dr Deo
  • 4,650
  • 11
  • 43
  • 73
4
votes
1 answer

Trouble with loud speaker off on Galaxy S

Has anyone else experienced this on the Samsung Galaxy S? When I use the folowing to turn the Loudspeaker on it works fine: audioManager.setSpeakerphoneOn(true); But when I try the opposite to turn it…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
4
votes
2 answers

AsyncTask and setAdapter in onCreate methods

I am doing some heavy network tasks - downloading pictures (previews) - For my main UI to not be blocked it did that in an AsyncTask, I want to put them in a GridView but I set the adapter before the AsyncTask finishes. Some code will be more…
Spredzy
  • 4,982
  • 13
  • 53
  • 69
4
votes
1 answer

Auto complete text remaining on screen

Does anyone know why the search text remains on the bottom of screen (as shown in image below). Steps to get there: Choose to search for location qwerty keyboard comes up auto complete bar appears above qwerty hit "Done" and the auto complete…
taraloca
  • 9,077
  • 9
  • 44
  • 77
4
votes
2 answers

Viewflipper Receiver not registered error while orientation change in 2.1 and 2.2

I am using viewflipper for fling gesture recognition everything works fine for 2.0 and prior but in 2.2 and 2.1 it throws exception as "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper" below is full debug…
4
votes
1 answer

MediaPlayer Error (1, -2147483648) android programing

I have been having some issues with my code to play html5 vide. I created a short presentation in powerpoint and exported it html5, it contain a video, I have copy the exported files into my assets files in android buy my video is not…
Derek
  • 175
  • 1
  • 4
  • 16
4
votes
3 answers

Eclipse - "compute launch button tooltip" error

I'm trying to run Android SDK with Eclipse for the first time. I have never used Eclipse before and I'm running into the following error message over and over again, with no specific trigger: "compute launch button tooltip has encountered a…
user1680964
  • 41
  • 1
  • 2
3
votes
1 answer

Reason for 5 sec delay to show an activity on pressing the home button?

I am facing delay of 5 sec to show an Activity after pressing the HOME key. I had gone through some post and found that after pressing the HOME button, android prevents services and broadcast-receivers from calling startActivity for 5 seconds. Q1.…
Shravan
  • 341
  • 6
  • 11
3
votes
1 answer

How to fix: Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage()

I'm trying to build an old app (Udacity Android Basic course, 2017) in My newest android studio (4.1.1). The old app requires: Android SDK v23 Android Build Tools v23.0.2 Android Support Repository v23.3.0 So I install android build tools v23.0.2…
3
votes
2 answers

Posting to goo.gl from Android

Keep getting this: V/RESPONSE(13605): { V/RESPONSE(13605): "error": { V/RESPONSE(13605): "errors": [ V/RESPONSE(13605): { V/RESPONSE(13605): "domain": "global", V/RESPONSE(13605): "reason": "parseError", V/RESPONSE(13605): …
jj.
  • 343
  • 1
  • 7
  • 20
3
votes
1 answer

Sharing preferences between an Activity and a Service

I have an .apk that has a Service and an Activity that I want to share preferences. I guess I use getSharedPreferences("somename", MODE_PRIVATE) to do that. A couple of questions though: Is MODE_PRIVATE OK? Does that mean it's private for the…
LiteWait
  • 584
  • 4
  • 21
  • 42
3
votes
2 answers

How to exit from an android app?

I've just read that you can exit an android application by simply calling: finish(); However this is not the case! When I do this I get the following errors: PackageInstallationReciever Remove /data/local/tmp/com._____.apk Fail! AndroidRuntime…
ingh.am
  • 25,981
  • 43
  • 130
  • 177
3
votes
2 answers

Is it possible to save sms in drafts using Android sdk

I am very new to Android development. I need some clarifications from you. My question is 'Is it possible to store no.of sms's in drafter programatically?". Please help me. Thank you, Sekhar Bethalam.
sek
  • 193
  • 1
  • 1
  • 9
3
votes
3 answers

Can't access preferences created by PreferenceActivity

I have a minimal program that does little more than let me set two preferences (an int and a String) using Android's PreferenceActivity. So I have an xml file that defines my preferences, and an activity that extends PreferenceActivity. My main…
Craig
  • 3,253
  • 5
  • 29
  • 43
1 2
3
11 12