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

How to align views/widgets using only java, and no XML

I am developing an android app, where the entire UI is being developed in Java, since there's alot of dynamic stuff involved, like i might have to add buttons and checkboxes, depending on the user interaction. I want to know how to position 2…
Purav Shah
  • 523
  • 1
  • 4
  • 13
0
votes
1 answer

Show to ScrollView in one LinearLayout

I want to show two scrollView in one LinearLayout or RelativeLayout. Which property should is set to show first Scrollview on the top of screen and second scrollview just below the first Scrollview ? I have tried but in linearlayout it shows me only…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
3 answers

Search Textview which is created programmatic

I'm adding TextViews programmatic using a for-loop and use setId(Int int) to set unique id for that perticular Textview. But now I want to search textView on the basis of that id. How can I search? erorr occurd 'app stopped unexpectedly...' Here is…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

Show data In Gridview Format in android

I want to fetch data from database and show them in to android base mobile. I have tried Gridview but with gridview bidirectional(Horizontal and vertical) scrollbar not possible either I cannot put. So is there any option of gridview and I can show…
Nirav
  • 5,700
  • 4
  • 34
  • 44
0
votes
1 answer

1.6 to 2.1 CameraInfo alternative?

android.Camera.Preferences.setRotation documentation public void onOrientationChanged(int orientation) { if (orientation == ORIENTATION_UNKNOWN) return; android.hardware.Camera.CameraInfo info = new…
0
votes
2 answers

How can I stop the text on my buttons spanning over 2 lines?

I've got 5 buttons in a horizontal linear layout, the last one can't fit on the screen so its broken into two lines such as : Ita lian Instead of Italian Is there anyway I can force it to not do this? Is there a dynamic way, in such a case of a…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
0
votes
3 answers

Should the Android compile version be same as the target version in Eclipse?

I need to set the target SDK version of an Android project to API 14. But I do not have the same version available to compile the project. I know that the project can be compiled with a different version but I need to know whether it will cause any…
0
votes
1 answer

i have issue when call my library in gradle

All I have Created My Own Library and I Push That Code in Github, I have Created Library Using JitPack.io but I Face Some Problem When I Call That in My Project Erro is Below : Error:Could not resolve all files for configuration…
Sanjay
  • 574
  • 6
  • 16
0
votes
1 answer

can we create android project below api level 14

i want make android project which must be run in below API level 14, is it possible? how can we create emulator its? now, i'm not able to do this, if you have any idea share with me.
Sanjay
  • 574
  • 6
  • 16
0
votes
2 answers

Android; Using a Service to subscribe/unsubscribe to an Observable object, good idea?

I have a requirement, whereby when a user clicks a button, then an object needs to be observed. When the user clicks that button again, the observation stops. My initial thought is to have the button bound to a method in the activity using the…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
0
votes
2 answers

How to calculate distance using coordinates from LocationManager

I am using LocationManager to get the values of Latitude and Longitude of a user. These values are updated regularly to a database. Now, i want to find out the distance between two users basing on the stored Latitude and Longitude values. I want to…
Rahul Kalidindi
  • 4,666
  • 14
  • 56
  • 92
0
votes
1 answer

Geocoder not working in Android 2.2 and beyond

I have been using Geocoder class for looking city names and geolocation. It is working till 2.1, but is saying "Service not available" in 2.2 and 2.3 any workaround!?
Aman Alam
  • 11,231
  • 7
  • 46
  • 81
0
votes
2 answers

Problems when drawing on SurfaceView

I'm experimenting with the SurfaceView in Android and I'm trying to create a simple drawing type application, where you "draw" by touch on it. I have a thread running to handle the drawing onto the canvas but I'm hitting some performance issues. I…
Corey Sunwold
  • 10,194
  • 6
  • 51
  • 55
0
votes
0 answers

Eclipse Android Project Not Building Correctly

Recently I was attempting to make a new Android app on my windows computer with eclipse, however when creating the project an error was thrown and it wouldn't finish setup. If anyone could help it would be greatly appreciated. Error [2017-04-26…
Zach B.
  • 11
  • 2
0
votes
0 answers

Send push-notification to native Android SDK used by another app

Is there any way to use push notification inside an Android SDK which is run inside another app. So the thing is.. we are offering a client service in Android SDK that we are developing. The client app will use our native android sdk inside their…
tingason
  • 133
  • 1
  • 2
  • 12