I have an application that calls AlarmManager
Intent intent;
intent = new Intent(context, MyEventReceiver.class);
PendingIntent appIntent = PendingIntent.getBroadcast(context, 0,
intent, PendingIntent.FLAG_ONE_SHOT);
AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_W...
I have written an app that required me to create the following additional folders in order to support multiple screen sizes: layout-land, layout-small-land, and layout-small-port.
When I load an AVD for a QVGA screen, the emulator is loading the screen sizes from the HVGA settings, and I need to know how to force the emulator to load th...
I have published an app on Android Market which is limited to Norway. I'm able to find and install it myself from Market, as can several other Norwegian users. A colleague (Android 2.1) and a friend (Android 1.6), on the other hand, cannot find it. They both have phones bought in Norway, with SIM cards from Norwegian providers.
Why ...
I'm making a simple 2d game for the android platform, which works perfectly from version 2.0 and above, but when testing it on a 1.6 device, it crashes immediately. On running the debugger, it seems that I'm getting a null pointer exception in the thread class. I was just wondering if anybody has any ideas as to where the problem might b...
I have run into some trouble lately with onSaveInstanceState() and onRestoreInstanceState(). I have multiple activities that do this to save state in the case that they are cleaned up by the system. Most of them work, except for one, and I have no idea why.
What specifically happens is this:
--I have my emulator running, and the dev too...
from a list view how can I have the selected item show a static HTML file?
...
my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it .
steps I have done in order to install:
I have inserted the xxx.apk file into the device via usb
I downloaded an apps installer via the Market
I opened the app using the installer and instead of picture an white background...
Does anyone have any good references for designing and implementing an idea I have for an android application.
My idea is for an application that stores information and reviews about a specific location and presents this information to user.
I have gone through all the tutorials and have been reading up on anything and everything abou...
I'm trying to create an Android app that needs to use OAuth to authenticate (with the Google Wave data API)
I've specified a custom scheme in my AndroidManifest.xml so that any views to a url beginning "braindump://" should go to my app:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/...
This is the code I used
but every time I excute it force to stop.
note that I use it on android 2.1
package com.arb;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.content.res.AssetManager;
import android.graphics.Typeface;
public class arabi extends Activity
{
AssetManager arab...
I followed the tutorial to the letter. I select run then the emulator starts up. Problem is that I never get to a home screen, nor does the text hello world display.
Is there a way to test my installation of the emulator?
...
I have a audio player app, where there is a Main activity that shows 3 audio sample urls. On click on one, it goes to a Details Activity, which has a play and pause button, to start and pause the audio.
My problem is that, when I start the Main activity, and say click on audio 1, I hit play on Details activity. This starts the MediaPla...
I have installed the Android SDK and plugin for Eclipse and written my first test app. I am trying to view the device in the DDMS section of Eclipse, but my Android Virtual Machine is usually not listed in the Devices section when it is running. Occasionally it will appear for a minute only to disappear again. I found an article recom...
How am i able to Stop GPS from receiving new signals?
was searching for it, just use:
if u initialize a LocationsManager Object
mLocationManager_ = (LocationManager) mContext_.getSystemService(Context.LOCATION_SERVICE);
add an location listener, GPS is starting to a GPS-Lock,
mLocationListener_ = new MyLocationListener(mContext_);
...
I'm having trouble trying to use a list in my activity. My XML for res/layout/main.xml is as follows:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Te...
Hello. I'm posting this question in the sequence of another question found here and a defect detected and mentioned at Google Code Defects.
I use the Eclipse IDE with Android plugin for development, and when I try to run the Camera application from within the phone emulator, for an Android 2.1 phone, I get a weird small camera-window si...
I can access the preferences and add and change them. How can I view the entire file that stores the keys and values for sharedpreferences in my app. I have changed, added and removed some keys from my code and would like to see the effect on the preference file.
...
I have a normal SQLite database in my app, managed through my own ContentProvider and implemented via SQLiteOpenHelper.
On the Droid only, every few weeks or so, the database just disappears. I have several users who wrote me about that, and I've seen it myself too now. I added some debug info (hard to repro when you only see it every f...
This is probably a dumb question but I can't find it anywhere... Which icon is used in your marketplace listing? Is it always the application android:icon="@drawable/icon" setting from your manifest file or can you have a launch icon different from your marketplace listing?
...
I don't have an Android phone now, but I really want to test Multi-touch or Shake feauture. How can I do this on Emulator?
...