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

How to create an intent from an "extends Application" class, context is null

I have a class which extends android.app.Application, which I use to persist global state around my application. I want to start off a service when my application starts, so inside the constructor of this GlobalState class I try to create an intent…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
2
votes
1 answer

Android Market Error -17 & Missing-yet-Useable Camera: Has anyone else encountered this and what can be done?

The Problem: Background Information I'm writing an application for a client that is to work with software called "Layar." When trying to install this software from the Android Market I get the following: "Installation error; Unknown reason -17."…
Dylan Knowles
  • 2,726
  • 1
  • 26
  • 52
2
votes
2 answers

What is the best way to have a background image without it becoming distorted/stretch on various screens?

I would like to place an image into the background of my activities. This image is effectively a circle shaped logo which will be semi-transparent, and should sit behind any other content on the UI. I will also offset it into the bottom corner. What…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
2
votes
1 answer

Android 2.1 file reading is slow

I have an Nook Color (Android 2.1) device and the app which is going to read some huge files (PDFs) from sdcard. I'm going to use FileInputStream for file reading (and it works fine both on emulator and on Android 2.2+ devices). Unfortunately it…
Vladimir
  • 9,913
  • 4
  • 26
  • 37
2
votes
2 answers

How to avoid pausing android live wallpaper while settings activity is open when using GLSurfaceView

I am writing a 3d live wallpaper for android using the famous GLSurfaceView wrapper (http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-wallpapers) When i open the preference screen to change wallpaper settings, the settings are…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
2
votes
2 answers

Android; getApplication() returning null, can't see why

(It's quite late here, so could be overseeing something really simple..) I've got the following class : public class GlobalState extends Application { private Stub stub = new Stub(); public Stub getStub() { return stub; …
Jimmy
  • 16,123
  • 39
  • 133
  • 213
2
votes
1 answer

Can I send a broadcast from a class which does not extend activity?

I have a class which implements an Observer. I have a method which is triggered in this class when the Obervered state changes, I want to sent out a broadcast in this method. This means my activity can listen for those broadcast messages and do…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
2
votes
2 answers

Unable to bind onClick xml onto a method in my activity

I've got the following Button declared in my main.xml
2
votes
3 answers

Android ContactsContract.Contact missing constants from the API?

I've been using the ContactsContract api for some time now and I've come across two "columns" listed in the API page for ContactsContract.Contacts that do not appear to actually be assessable. The values are (under the columns…
2
votes
3 answers

Frame by frame animation in splash screen - Android 2.1

I am writing a splash screen in android 2.1. I want 20 png images to be shown in an order at the splash screen. I tried to use animation-list but couldn't manage to do it. Here is my code. Now, there is an image called firstLoadingImage.png. Only…
faruk.kuscan
  • 499
  • 1
  • 6
  • 19
1
vote
4 answers

Android app doesn't run on my tablet

I develop one app for android, on eclipse. It works in the emulator, very well. It works too, in a boston mobile, with 2.1 version but when I install the app on my tablet (3.2.1) says didn't was installed. I can't understand why. Can you help…
Pepper
  • 97
  • 1
  • 10
1
vote
1 answer

How can you assert that a given contentView is set using Robolectric?

Given the following sample onCreate() @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle extras = getIntent().getExtras(); if (extras != null && (null != extras.getString("myVar"))) …
Jimmy
  • 16,123
  • 39
  • 133
  • 213
1
vote
1 answer

Android 2.1 - Rooted Revue GoogleTV - Flash Plugin Missing in Webview

I am developing and testing a Android 2.1 app on my rooted revue. It needs to render Flash web videos. The app works fine if the flash web videos are launched through an external chrome browser (already installed on the rooted revue). But, I need to…
1
vote
2 answers

Should I be importing com.myapp.R into my activities?

IntelliJ is moaning if I don't have the following imports in my activities : import com.jameselsey.apps.romandroid.R; I've got several other apps which don't require an explicit import of the R file, however this one will not compile if I remove it,…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
1
vote
1 answer

How can I test "Rate my App" functionality?

I've got a bit of code in my app, that after X number of days will check if the user has rated the app, and if not, prompt them to do so. How can I feasibly JUnit test this in a painless manner? The emulator doesn't have the market application by…
Jimmy
  • 16,123
  • 39
  • 133
  • 213