android

xml file parsing in android

How can I parse my local XML file located in the systems hard disk. ...

Tab host disappears

I am developing an Android application consisting of 4 tabs. On the first tab I have a button, which again calls an Activity called ActivityA. When my ActiviyA is started, the tab control is not shown anymore. Can anybody provide solution for this. ...

android route mapping program

hai , Can anybody help me to create a route mapping program in android which will take location's names as input and give output as route between these two locations ...

Where to place the resources of her application so that they are installed on the SD card ?

Hello everybody, I have big files to integrate into my application (videos), and thus for not not that my application occupies all the internal memory of the telephones, I saw that it was possible with Froyo to install the applications on the SD card. I thus have to test this solution and my application settles down well on the SD card...

Set video as wallpaper on Android

I want to know how to set Video as wallpaper or it is not possioble. I can set image as wallpaper and I can build live wallpaper but I can't set video as wallpaper ? so anyone has an idea how can I do that ? Thanks in Advance. ...

What is the path to your apps "assets" folder in Android?

I am developing an Android App and would like to have a video file (mp4) bundled inside the .apk so that when the app is launched I can play a short intro video. Unfortunately I'm having trouble figuring out where in my project folder I should place this video file, and also how to access it (the path to the file). I am using videoView...

Android ListView : items fit screen

I need to calculate how many items fit on the screen. I tried do it in this way private int callculateItemsOnPage(View layout, View item) { if (layout == null || item == null) return -1; int itHeight = item.getHeight(); int layHeight = layout.getHeight(); return layHeight / itHeight; } But itHeight, layHeight permanently 0...

StartActivityForResult from a Service

Id like to enable bluetooth like in this example. However my class isnt a Activity but a Service and therefore I can't call startActivityForResult. How can i solve this problem?. I know there are other questions that have been answered like http://stackoverflow.com/questions/2848775/use-startactivityforresult-from-non-activity but thi...

Problem with custom cursor adapter for list view in Android

Hi all, I have an app that will query a database and attempt to output results in a list format. my first attempt was to use a simpleCursorAdapter, which worked fine for string outputs such as name and status, but would not display the time field from my cursor. My time field in my data base is of type Timestamp. the query for the ti...

Activity idle timeout for HistoryRecord in android

i have created an application in android version1.6 with eclipse to get the weather details from an url. the application has run successfull for 2 months and all of sudden it is throwing "Launch Timeout has expired, giving up wake lock!" and followed by "Activity idle timeout for HistoryRecord {438b31f8 com.weahter/.Weather}. kindly give...

Location Providers in Android?

Hi, My application requires current location of the user. For this I have implemented the code and I am able to get the current location. The code tries to get the best provider first and then fetches location information. The problem is that the current location is returned from NETWORK_PROVIDER if GPS_PROVIDER is disabled. If both NET...

Intercepting download in webview and downloading using HttpClient

Hi, I have created a WebView instead of directly linking to a link because the website has complicated redirect checks that prevent me from directly linking. However, in order for the download to complete, users have to long click on the link and save it. Users are confused. They think its broken. I was wondering if it would be possible...

native UDP implementation for android

I'm trying to use native implementation of UDP server/client on Android, I'm using JNI to access the native code from java. The code was tested successfully on Android 1.5 (HTC Hero) but when I tried to run the same application on Android 2.1 (HTC Legend) I got "Stack Corruption Detected" every time I received a packet bigger than 32 by...

Warning when i am installing ADT plug in to eclipse 3.5.2

Warning : Your installing software that contains unsigned content. The authenticity and validity of this software can't be established.Do you want to continue with the installation.. I tried the by downloading ADT plug in as zip file even i am getting same error. How can i solve this issue.. I installed eclipse 3.5.2 j2ee version ...

Enable longClick in WebView

In the browser, you can longClick on URLs. In my WebView, you cannot. How can I make it so you can? ...

LocationManager calling onLocationChanged too often?

Hi I've set up the LocationManager to get the current location every 2 minutes: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 120000, 0, this); This works fine and onLocationChanged is called every 2 minutes as expected. However, it seems that it is being called multiple times over a 10-40 (a random amount) sec...

how do i get nmea sentences on android when the API method does not work

Hi, I have the same problem related here on a Samsung galaxy spica and i tried all suggestions but i still don't get the nmea sentences in my application. So is there a other way to get the nmea sentences ? Is someone else facing this issue with the same device ? Thanks. ...

Button position in android

Hello, I'm trying to make some "Chat view" with speech bubbles like on the sms iPhone app. This is a row I done in the xml editor : http://img44.imageshack.us/i/xml.png/ But when I launch the my application, I get this : http://img59.imageshack.us/i/resultt.png/ I don't know why the button to answer is so far away my Relative layout ...

FileNotFoundException when trying to read a file I've written

I am trying to write an object (pilotRecord) to a file and read it back again. I understood that I didn't need to specify a path as it is internal to my app, so I want all files deleted if the app is uninstalled. Here's my code: fileoutputstream = openFileOutput("test1", Context.MODE_WORLD_WRITEABLE); Log.d(this.getClass().getN...

Getting the extension of a resource in Android

Is it possible to get the extension of a raw resource in Android? How? ...