Questions tagged [android-2.1-eclair]

For issues relating to developing with the Android SDK, version 2.1.

Android is Google's software stack for mobile devices. Please use the Android-specific tags such as [android-intent], not [intent]. For non-developer questions, see https://android.stackexchange.com.

94 questions
3
votes
1 answer

App Crash in Crop Activity in 2.1,2.2 etc but works in 1.6

Hi Friends, I want to use the Crop Activity but it will Crash as to activity {com.CropActivity/com.CropActivity.CropActivity}: android.content.ActivityNotFoundException: Its Code is Properly Working in Andorid 1.6 but its Crash in 2.1 or 2.2.…
3
votes
0 answers

Can Robolectric assert that tabs load expected activities?

I've got an activity, that has 2 tabs, each pointing to an activity, so I have 3 in total. LoggedInActivity > MyProfile OR MyBadges public class LoggedIn extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
1 answer

How do we copy files and retain their read only attribute in Android?

In my Android app, I would like to be able to copy a read only file and have the new version also read only. Using the setReadOnly() method on the destination file only returns false, showing that it failed, and of course checking the file itself…
tabs
  • 58
  • 7
3
votes
4 answers

NullPointerException in onResume when modifying Buttons, why?

I'm getting a NullPointerException raised from a number of my users, and I'm unable to spot what the issue is, it is thrown on this line : ((Button)findViewById(R.id.speakEnglishButton)).setText(""); I'm unable to see what is wrong, the button…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
1 answer

Is BitmapFactory.decodeStream Thread safe? Sometimes my Async task finishes before it completes

I've got the following Async task, which should just load up an image from a given URL. The images do exist and I have access to them private class FetchVehicleImage extends AsyncTask { private ProgressBar…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
1 answer

Robolectric fails to inflate layout file if an AdMob view is present, any workarounds?

This is a snippet from my Robolectric enabled JUnit test class : @Before public void setUp() throws Exception { mActivity = new LanguageSelection(); mActivity.onCreate(null); speakEnglishButton = (Button)…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
2 answers

How to approximate PendingIntent getActivities in Api level 7 (Android 2.1)?

I wish to have an app that targets Android 2.1, API level 7, launch multiple activities at once when a user clicks on a C2DM notification that has come in. This is the method I currently use to launch my activity: public static PendingIntent…
esilver
  • 27,713
  • 23
  • 122
  • 168
3
votes
1 answer

How to compile Linux kernel for real Android phone?

I successfully compiled and loaded custom Linux kernel into Android emulator (Eclair). Now I want to compile kernel for real Android device (Samsung Galaxy 5, Android 2.1 (Eclair)). It seems that the same kernel image that was compiled for…
Preetam
  • 5,528
  • 10
  • 32
  • 39
3
votes
1 answer

How can I update my UI using an observer?

I've implemented a simple Observer pattern in a "hello world" style app. I've got 2 buttons, which call onStart() and onDestroy() on a Service. In the onStart() I register an observer and then get my observer to run a for loop calling…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
3
votes
2 answers

Can you transfer a database from an Android device onto your computer to use as database in an Android virtual device

I was wondering: can you transfer a database you use on an Android device onto a virtual Android device in your development environment ? I am using a program to enter books on my Samsung Galaxy S. From this program I can download the source, which…
Edelcom
  • 5,038
  • 8
  • 44
  • 61
3
votes
2 answers

MotionEvent multiple touch events get mixed up and influence each other (see demo video)

Purpose of the app: A simple app that draws a circle for every touch recognised on the screen and follows the touch events. On a 'high pressure reading' getPressure (int pointerIndex) the colour of the circle will change and the radius will…
chriz
  • 245
  • 4
  • 15
3
votes
1 answer

Writing contact to contact database - Android 2.1

I'm trying to write a new contact to the contact database in Android 2.1. But I am getting the following error: java.lang.UnsupportedOperationException: Aggregate contacts are created automatically. I have added the following fields in the…
Tor-Erik
  • 31
  • 1
  • 3
2
votes
5 answers

How to decrease the size of image displayed on radio button in android without using new image

I have designed an activity in which i have two radio button but those size are more than enough i want to decrease it i am using text size that decreases only text if layout size is decrease that decrease only view not radio button…
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95
2
votes
1 answer

Android: Custom View with object reference from attrs.xml, always null

I'm trying to setup a relationship hierarchy between objects. Every object has a parent of the same type as itself, or null. I have a main.xml that contains some of these:
mkjeldsen
  • 2,053
  • 3
  • 23
  • 28
2
votes
1 answer

PhoneGap watch position not working with android

I'm trying to work out the watch position with android but its not working!!