android

Webview in a small window

Is it possible to make the webview stay as a small window, instead of get the full screen? ...

how to make internal database in android

I wanna store some information using file handling in Android. How should i do that? ...

Prevent ListView from reordering items

I have a ListView that is backed by a CursorAdapter. The cursor passed into the adapter is a MergeCursor. It is a MergeCursor because I have two tables, type1 and type2. I want to list all of the elements from type1 and type2 in a single ListView with all of the elements from type1 first, and all of the elements from type2 last. In a...

how to stream through mms://

There are some posts about this, but so far, i haven't seen any good answer. Is there a way i can stream audio from mms:// uris with Android?. MediaPlayer seems not to like these streams. Also changing mms:// with http or rtsp doesn't work either. Did someone find a workaround to this?. Thanks! ...

Block outgoing text

How to design the BroadcastReceiver class that will block outgoing SMS. abortBroadcast(); does not work. Any help will be appreciated. if ((actionType.equals(Intent.ACTION_SEND))) { setResultData(null); // I tried this and abortBroadcast(); as well } ...

Can someone explain to me this `StaleDataException`

Can someone explain to me this StaleDataException 07-11 19:58:23.298 E/AndroidRuntime( 1044): Uncaught handler: thread main exiting due to uncaught exception 07-11 19:58:23.368 E/AndroidRuntime( 1044): android.database.StaleDataException: Access closed cursor 07-11 19:58:23.368 E/AndroidRuntime( 1044): at android.database.AbstractWindow...

how can I change android application developed on android 2.2 platform to android 1.6?

A website hosts only android 1.6 platform developed applications.. What changes should I make to my project so that it runs as android 1.6 one? Would any change of minSDK from 8 to 4 suffice? ...

Bluetooth Communication of an application control packet using SPP

I need to send and receive data from an Android client to a Bluetooth SPP server on a non-android platform (not decided, but possibly Arduino with C code). I am mostly trying to correctly read from the serial iostream provided by the bluetooth socket and convert that into a Java class (to use as a structure). while packaging a delimted...

Reanimating a view when using layoutanimation

Using a layoutanimation on one of my views. android:layoutAnimation="@anim/animate_layout" The animation is done each time one enters that view. It will however not run if that view was already active and the user changed to another application and then returned to it. In order to do that, I need to overwrite the onresume() method an...

how gridview is populated with customized imageviews from the image adapter

Hi, The sample code of hello-gridview implements an image adapter to populate the gridview with a series of customized imageviews. the getview method in image adapter is implemented to customize image views. I am wondering how this method is utilized to populate the gridview. It looks like that the population is based on the integer arra...

R class missing after creating android project from existing source

I downloaded the source for SpriteMethodTest, and I want to build it in Eclipse. So I Went: File >> New >> Android Project >> Create Project From Existing Source >> SpriteMethodTest It created the project alright, but the R class is not generated. Any file that references a resource in R says R cannot be resolved. Importing android.R ...

Android: Viewflipper's first child invisible on?

This problem is driving me crazy. Basically I want to have a tutorial for my Android app that lets the user go forward and backward through a few tutorial screens. I have four children which just consist of a relativelayout with an imageview and textview for each child. For some reason the when I show the viewflipper in my activity the 1...

How can I search in other apps using global search

I'm new in Android programming and want to know if it's possible to search in other apps. I mean, I want to find all notes which have #yellow inside the text. Something like when I use the QuickSearchBox, but I don't want to open the notepad app. Instead I want to read this note inside my own app. Or the same with the calendar, I want ...

EditText's TextWatcher validator

I am doing a login Activity which basically has an EditText and two Buttons. It looks like this: The EditText has a TextWatcher that validates the user with an AsyncTask that hits a webservice. The code: public class Login extends Activity { private EditText mUserNameET; private Drawable mCorrect; private Drawable mInco...

Embedding youtube videos in your android app

I want to embed youtube videos in my android app and want to use the youtube api. Is there any way I can do this ? ...

How to add a system service to the Android Framework

I want to add my own framework code that runs in the Android "system_server" (handles all the system level services). My service loads a JNI library that talks to a driver I have added to the kernel. The service is designed to allow an app to register a listener with it to get updates from the driver. I found a pretty good blog post (htt...

Android App closes automatically - Native code crash?

Hi guys, I've a very simple / minimal code Android application. I'm drawing some lines on screen with my finger. At some point, app closes itself / exists automatically. No exception is thrown. I'm really stuck. Any help / idea is highly appreciated! Thanks in advance/ 07-12 23:13:54.264: DEBUG/dalvikvm(3638): GC_EXPLICIT freed 310...

Google Maps API for Android in a WallpaperService (live wallpaper)

Is there a way to use the Google Maps API for Android in a Live Wallpaper? From looking at the API, mapViews seem to require a MapActivity, so I'm not sure if there an easy way to make this work in a WallpaperService out of the box. ...

How to draw 2 PNG Images to the screen at the same time

I'd like to know how to draw two PNG pictures onto the screen. My XML layout: (named paperxml.xml) <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:o...

Reuse tips for Android

Android resources and their automatically generated references simplify the development of one app a great deal. But they also complicate the reuse of Android activities in multiple projects, and in general of any component that uses resources. Library projects are a limited alternative. A project can depend on many library projects, bu...