android

Android Password GUI

I am looking for Android GUI which is wheel type number lock, with numbers on the wheel. The password GUI looks like a wheel with numbers on it and user can roll the wheel to select a number when wheel stops, only the numbers are visible that are on the surface of wheel. ...

Is it a good practice to create a reference to application context and use it anywhere?

I have to use context in many places of my code such as database operations, preference operations, etc. I don't want to pass in context for every method. Is it a good practice to create a reference to application context at the main Activity and use it anywhere such as database operations? So, I don't need some many context in method p...

What's wrong with this addProximity code?

I have this code: private void setupProximity() { Intent intent = new Intent(this, PlacesProximityHandlerService.class); intent.setAction("PlacesProximityHandlerService"); intent.putExtra("lat", objPlace.getLat()); intent.putExtra("lon", objPlace.getLon()); intent.putExtra("error_m", objPlace.getError()+ALERT_RANG...

Android Broadcast Address

Hey, I am making a Client Server application for my Android phone. I have created a UDP Server in Python which sits and listens for connections. I can put either the server IP address in directly like 192.169.0.100 and it sends data fine. I can also put in 192.168.0.255 and it find the server on 192.169.0.100. Is it possible to get ...

Android browse SQLite database on phone

How can I browse the SQLite database that I am creating in my app on my Android myTouch phone? When I log in through adb shell, sqlite3 gives me a permission denied. Is there another way to check if my database and tables are actually being created, and if rows are being inserted? I am not able to use the emulator, since it doesn't pla...

Eclipse/adb error message in Vista "Failed to parse the output of adb version"

I am trying to learn Android development, so I downloaded Eclipse Galileo and the Android SDK. However, whenever I start Eclipse, I get the error message "Failed to parse the output of adb version." In the Console/DDMS pane, the debug output reads: [2010-06-07 20:15:13 - ddms]Failed to reopen debug port for Selected Client to: 8700 [201...

Load an SWF into a WebView

I'm having problems with this. If I go to an SWF directly in the browser, it works fine. If I attempt to use loadUrl on an SWF file it stays blank and loads nothing. ...

Android 2.1 - Video issue

Why does my video playing app crash when I try to run on a Droid 2.1 device, but works fine with myTouch 1.6? Thanks Chris LogCat shows 06-07 18:13:13.444: ERROR/AndroidRuntime(4252): java.lang.IllegalStateException 06-07 18:13:13.444: ERROR/AndroidRuntime(4252): at android.media.MediaPlayer.getVideoWidth(Native Method) 06-07 18:1...

How do I put static data into an SQLite database in Android?

If I have a bunch of data that is never going to change (eg. an English language dictionary or the rgb values of a couple hundred color names), how do I use an SQLite database to store it? I know a database is faster than loading everything into memory when the app starts, but how do I make the database either the first time the app runs...

Android rotate control

How to rotate control (checkbox) in 180 or 90 degrees ? ...

A weird phenomenon of SensorService

I'm trying to develop a service on android2.1 which can detect the movement of device in anytime. However, my service can't receive the X, Y, Z data in onSensorChanged method, and WindowOrientationListener in framework is received the data normally. I put some log in the codes and found that the FileDescriptor (handle->data[offset++]...

how to delete sample app from android emulator

Somehow, I have deleted the code from for sample apps from workspace, but the apps still show up in android emulator. How do I delete them? ...

similar functionality like uitableview in iphone to in android?

can anybody please give me example of using similar functionality like uitableview in iphone to in android? ...

How can I create a list with only certain items expandable?

I am trying to compose a list with some items expandable and some single items. I wish to have it so that when either a single item or expandable list child is clicked, I can call an intent based on the text of the item. I suppose expandable lists would work, but is there a way to set items in an expandable list so that they don't ha...

How do I create an ImageView in java code, within an existing Layout?

I'm looking for an easy way for the user to see how many drinks they've had for a BAC calculator. PICTURE OF THE APP, for reference On button press, I would like an image to be added to the screen, directly under the spinner and with left alignment. When I press the button again, I want another image to be added to the screen. So if I...

Scrolling list in Android home screen widget

Hi folks, I am trying to teach myself the basics of Android dev. At the moment I am experimenting with home screen widgets. I would like to create a simple widget that lists all my bookmarks. Somewhere in my googling I read that ListView is not usable in a widget. What's the best way to display a scrolling list in a widget? An example w...

Turning a series of raw images into movie frames in Android

I've got an Android project I'm working on that, ultimately, will require me to create a movie file out of a series of still images taken with a phone's camera. That is to say, I want to be able to take raw image frames and string them together, one by one, into a movie. Audio is not a concern at this stage. Looking over the Android A...

ArrayList & contains() - case insensitive

Hi! I want the contains() method from ArrayList to be case insensitive. Is there any way? Thanks ...

Why doesn't my android application show up in the launcher?

I'm developing an application for the Android platform targeted for api level 4 (Android 1.6) but I can't get it to show up on my phone and I can't figure out why. Here's my AndroidManifest.xml is there a problem in here? Or is there something else I should be looking at? <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:an...

Loading package html + resources into webview

I would like to know how I can display a HTML page in webview with references to relative/local images. The goal is to have the html page and all linked images contained in the android application package itself. Where would I need to place the assets (assets directory?) and how do I reference these so they load into the webview? Than...