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

Pass results from child activity to Parent Tab Activity

I have 6 activities in my app which are Activity1, Activity2, TabActivity, childTab1, childtab2, ExtraActivity. App flow: Activity1 => Activity2 => TabActivity =>ChildTab1 or ChildTab2 => ExtraActivity Now i want to pass some data from…
mudit
  • 25,306
  • 32
  • 90
  • 132
0
votes
1 answer

Android: show menu options on an Activity with Tabs

I want to show menu options in an activity which hosts tab views. Here is the code of my tab view activity. public class Tabs3 extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
mudit
  • 25,306
  • 32
  • 90
  • 132
0
votes
0 answers

How can I optimise the size of docker container for flutter

I am trying to build a docker image which will be used for a CI/CD pipeline. I am trying to reduce the size of the image. Here is my dockerFile, what can be done to optimise it? FROM ubuntu:20.04 ENV FLUTTER_CHANNEL="stable" ENV…
0
votes
1 answer

Button Crop in screen

can we know programmatically that view is croped in screen or not? e.g. There are four buttons on the screen. If one button out of them is cropped in the screen due to size of buttons. so can we know that any button is cropped the in the screen…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

Retrieving Google calendar list using gdata-android-2.2.1-alpha

I need a simple working example with all the relevant import. I found only one example but its too complicated and many imports are missing
Canttouchit
  • 3,149
  • 6
  • 38
  • 51
0
votes
1 answer

Buttons inside TAB not clickable/responding

I have done TABS in my app using TabHost. one of the tabs has two buttons in it("button","anotherButton") After I run my app I can see both tabs, but when I press on them nothing happens(they aren't even "clickable" when I press them.) And moreover,…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Android: Trouble with Environment.DIRECTORY_DOWNLOADS in android 2.1

I have an app that will try and restore a database from the SD card on the first start after and data clear or reinstall. I have the data back saved to the Downloads directory on the SD Card. This works perfect for Android 2.2 and higher, but I'm…
0
votes
1 answer

android: how to manage 4g if used SDK 2.1 (meaning no WIMAX)

im making an app using SDK 7 (aos 2.1). But my app refuses to work properly on HTC EVO which is 2.2 due to using 4G connection. My app can't figure out that there is an Internet connection available cause it neither TYPE_MOBILE nor TYPE_WIFI. What…
Stan
  • 6,511
  • 8
  • 55
  • 87
0
votes
1 answer

Parse Contact detail by URI

I was wondering is there is a way of parsing a contact details (number,email etc.) by a specific uri address which received by the contact list example: //assume that the data variable ia already populated with a uri address of a specific contact…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
2 answers

Audio Frequency in Android

I have written a code for getting frequency of audio. I have used Zero Crossing algorithm to convert short array into frequency(int). It works fine. Whenever I play 2500Hz Audio Frequency in my PC It gives me perfect value. e.g. 2500Hz=1400 If I…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
2 answers

SurfaceView display size is half for portrait

I have created simple android application to test the camera functionality. When I set the display orientation to 'portrait', it open the camera in half of the screen on version 2.1. my requirement is to open the camera on full screen.
Nandika
  • 1
  • 2
0
votes
2 answers

Get user location on map?

I have a map view that zooms and places markers. I to get the users location on start up. How would I go about doing this? Thanks in advance.
Christian
  • 958
  • 5
  • 23
  • 52
0
votes
1 answer

External database doens't work

Here is my code and it shows error: 'no such table:AddressBookGroup:,While compiling select * from AddressBookGroup' I Have put db file in asstes folder with this table. I have used openhelper class code from this link…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

Keypress event handling in android

In my application I want save date and time when user save contact detail. through which I can know date and time that when user has saved particular contact details. Thank you.
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

Accessing and controlling services on Android

I would like to create an android app/service that will control Android services, in particular the Media Player. This is different from the playing a audio file, in my case the user has already launched the Media Player with their own song/playlist…
n002213f
  • 7,805
  • 13
  • 69
  • 105