android

AIR <-> Android communication

Hey, I'm looking for a way have some way of communication between an AIR application that runs on a desktop and an Android application (that obviously runs on a phone). Basically, I plan to make the desktop application controllable via an application on an Android phone. Grant Skinner did a similar thing with his Androideroids game, wh...

HTC Incredible not showing Ime Options on soft keyboard

I have set the IME options for my AutoCompleteTextView object like this: inputSearch.setImeOptions(EditorInfo.IME_ACTION_NEXT); and also in another area, at a certain point i set the IME Options to: inputSearch.setImeOptions(EditorInfo.IME_ACTION_GO); why is it that on the HTC Incredible, there is no action next or go showing up ...

Android: Fixed top menu

How do I create a top bar menu for Android as I would for another phone? I already created a menu for the bottom, but I couldn't find anything to create a fixed visible menu on top (a bar menu). Am I missing something? How can I do it? ...

Can I be notified of an activity result that is declared as singleTask ?

Hello, My activity is interacting with other activities by sending intent to them. The requirements I have is : - to be notified when the activity launched is finished - know the result code. On most of the use cases this is working with a startActivityForResult as my activity is set to singleTask. But when I'm interacting with activi...

How do I close a secondary Activity gracefully?

I managed to create a secondary Activity, but now I wonder how I can close it again. public void button_onClick(View v){ finish(); } works when I'm dealing with just one Activity at a time, but how do I let the secondary Activity close the entire application? ...

Getting server side PHP script to run from android apk call

I've gotten HTTP POST to send strings to the server side PHP script. My log is showing the correct return values. The script runs fine manually from the browser and inserts a new db table row. But can't get the script to run by having the apk call it... though, again, it returns all script page content including strings. How can I get t...

How can I display a dialog from an Android broadcast receiver?

Ideally, I do not want to start an activity to do this. When the WiFi connection is lost, my app needs to close because this is a fatal error for us. I want to display an error message and have the user press an Ok button and then exit the app. What is the best way to go about this? Thanks! ...

ANDROID HTC TATTOO UPGRADE 1.6 to 2.1 OR 2.2 ??

Hi I just got an android phone Htc Tattoo and he had android 1.6 OS installed , I am trying to do some upgrade to some newer Android OS , My question : Can someone give me exact steps what and how can I do that ? (I watch some youtube tut. and some other sites but there are some terms rooter, rom , flashed some tools e...

Best way to get online data and store it in Android

I'm getting hung up on how to handle the data for an app I'm designing. I want to pull a list of items from the net. The data is updated routinely, and I think it would be good to store all the data on the device so the app can load quickly and refresh the data in a background thread rather than have to wait for the network on every st...

Bug in Eclipse Emulator DDMS?

Hi, I originally asked this question as a possible bug in Eclipse Helios : link text I accepted that it was bug in Helios but I now find that I'm now getting the same error under Eclipse 3.5 When I send a location from the DDMS perspective using the emulator control tab. I have a standard listener: onLocationChanged(Location location)...

How to implement SimpleOnGestureListener in Activity

This is primarily a design question. I've implemented SimpleOnGestureListener on an ItemizedOverlay because I wanted to catch the onLongPress event as well as the onDown and onTap events. Everything is working okay but now I need to transition to a new activity on a specific onLongPress event. In this particular case an alert dialog is i...

CellID location with CDMA

Is there a way to determine location via CellID on a CDMA network? I can get a network ID, base station ID, and system ID programatically, but is there an api somewhere to convert these to lat, long coordinates? The CdmaCellLocation.getBaseStationLatitude() and CdmaCellLocation.getBaseStationLongitude() methods return some junk number. C...

Failed to launch shortcut: Application is not installed on your phone.

Hello all, I am trying to create a desktop shortcut to one of my Activity in Android. I use the code that work in every tuto example i have read: final Intent shortcutIntent = new Intent(Intent.ACTION_MAIN); ComponentName name = new ComponentName(getPackageName(), ".MyActivity"); shortcutIntent.setComponent(name); shor...

How to keep search button from closing an AlertDialog?

If I create a standalone alertdialog with the builder (not connected to the activity/view) how can I keep the search button from causing the alertdialog to close? Thanks. ...

Android Programming - How to display .swf

Is it possible to run a .swf on Android running Froyo 2.2? If so, how do I do it? I am basically trying to do a cool animation and it is done in Flash but I have no idea how to show that animation on the Android. ...

How do I set the behavior for an inflated view?

I have an audio player toolbar activity that has a corresponding layout file. I need this player to show up at the bottom of another activity. I use a ViewStub and inflate the audio toolbar's layout file in the stub. How do I access the buttons, etc on this inflated view and how do I set their behavior? The docs on ViewStub did not me...

Android java.net.UnknownHostException: Host is unresolved: server_address:443

Hi everyone! I'm trying to get xml from server via https connection. If i do it with curl command curl -k -A "Mozilla/4.0" https://username:[email protected]/test/infoxml.ashx connection is successfull, but when i try it in java on android, it doesn't work. I'm using this code: URL url = new URL("https://user:[email protected]")...

Draw an ImageView at specific GeoPoint on a MapView (Android)

Trying to solve my current problem of drawing an image on an Android MapView and then animate it to represent a moving object, I decided to try to just draw a raw ImageView at a GeoPoint on the map and then try and animate it from there. This is the code I put in my map activity (extends MapActivity)'s onCreate method: GeoPoint point ...

Explain animated overlays? (Android)

The Android Javadoc for the MapView Overlay class mentions two draw methods. One regular, and one for animated overlays. I have tried to find more information on how to animate overlays and use this second method, but it all keeps coming back to the same forum postings. Can anyone explain how you specify to the MapView that a certain Ov...

Android 1.6 SDK source code misaligned?

Hey guys, I'm trying to get the source added to the 1.6 Android SDK in order to be able to step through and see what Android is doing, and I'm getting weird misalignments when Eclipse actually runs and I step through the debugger. This is not a problem if I use the 2.2 SDK - then, say, Activity.onCreate() lands perfectly when the debug...