android

Set the size of text in ListView

I want to set the text size of the ListView. I am not use the XML Layout file. How to do this in coding? ...

handler running then close total activity media file continue how to resolve the problem

hi I am working android application my problem is i am using handlers this handler running audio files this audiofiles running automatically every 5 seconds i am closing total activity application will be closed but audiofile also running last position file how to resolve this problem please forward some suggestion or som...

how to stop media player in android

Hi folks when open my apps gallery is running and set current gallery image to imageview and playing one audio file through media player if i come out of my aps even it is running i tried to give mp.stop() and mp.release() in destroy method but it wont work for me please suggest me Thanks in Advance aSwan ...

Parsing HTML in Android: no XSLT? What to use?

In need in my application to fetch remote HTML document and parse some parts out of it. As I don't want to play with string parsing, which would be really lots of work, I thought about using XSLT, which would let me build small XML document out of HTML and then read it easy. Seems there is no XSLT support in Android? What other ways I c...

Android REST XML result to Listview

I have a REST web service that returns an xml result like this: - <MyCategories xmlns="http://schemas.datacontract.org/2004/07/ceva" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; - <Category> <CategoryName>First category</CategoryName> <Id>1</Id> </Category> - <Category> <CategoryName>Second category</CategoryName> ...

Problem with draw() on a MapView ItemizedOverlay

Hi, I am developing an application for the Parisian Metro. One of the functions is a map where you can click the metro stations and see what are the metro lines, and when are the next 4 trains on this station. I have hence created a MapActivity and an ItemizedOverlay classes. On my device it is working perfectly, but I am getting some...

How to parse different XML files using SAX on Android

Hey there, I have the following scenario: I send a XML file to a server as a request and get a XML file as response and all that as a background thread on android. The XML request is serialized using various values. The XML response is then read by SAX and put into a list. The whole request/response process happens in a background thre...

setting image view position on canvas

hello guys, i have map tiles in binary file. i had read that file and got the tiles...so i have to display that tiles on the canvas. and i have positions in Rect and i want to set my image view on that rectangle...is there anyway i can set my ImageView on that position using Rect? and i have to do this without using XML. thanks alot ...

onMenuItemSelected never executes

When I click on a menu item I am presented with the following message in DDMS: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43882778 Here is most of the code from the Main class where the onMenuClick is being ignored. public class Main extends TabActivity { public static fi...

Increase height of TextView on runtime

I have a TextView and I want to increase its height on runtime. I have used android:layout_height="wrap_content" but it did not gave me the desired result. I'm using a Relative Layout. i get text through edittext and i want to set it on textview. when i do this it shows only one line, and when i click on edittext it get expanded and f...

how to implement chat application in android?

i am developing chat application in android... i got some exception when i run my application 08-27 18:05:29.545: WARN/System.err(809): java.security.KeyStoreException: KeyStore jks implementation not found 08-27 18:05:29.565: WARN/System.err(809): at java.security.KeyStore.getInstance(KeyStore.java:134) 08-27 18:05:29.565: WARN/Sys...

Android: How to launch external activity in current activity's process?

My app is comprised of a set of reusable Activities that other apps can reuse. For various reasons, I would like my Activities to be launched in context of the invoking Activity's process, instead of always being launched in my Activity's process (default behavior on Android). How can I achieve this? ...

Android similar NSUserDefaults from iPhone

Hi, I like to save very simple a few Data. best like in iPhone I can do with NSUserDefaults. What is the similar command here in Android? (just saving a few Variables, to be reused as long the application is installed) I dont like to use a complicated Database just to do that. thx chris ...

Installing application on SD-card in Android sdk 2.2

Hello all, I am facing this problem and finding solution for this issue since last 2 weeks. Right now i have developed an android application for the client perpose, whose size is 54 MB, from which 52 MB of only Images/Photos. [Edit: I need to keep images in "drawable" folder ] So i want to install it in sd-card on Android SDK 2.2 fo...

Delete entries from releted tables

I have got 2 tables: Contacts and Users. Contacts table contains user_id which are referring to id in Users table. Contacts also contain list_type column. Contacts: user_id, list_type Users: id, data How can I delete entries/rows from both tables (Contacts and Users) that are referring to given list_type? The trick is that i don't wa...

Leaked Intent & AlarmManager

Hey, I am trying to create authentication system which pops up the login window if the device has been off (SCREEN_OFF) for more than INTERVAL. I have registered a BroadcastReceiver to listen to SCREEN_ON/OFF events in the onCreate() of the launchable activity: /* Listen to Screen On & Off events */ IntentFilter filter = new IntentF...

how to place a line of text below the end of grid.

I have a task to show images in grid ,i got the view what i needed but i have to place click here to view more.. at bottom. Here i'm facing problem to place the text below image has a common, for example,each row have three images in grid and it looks: ---------------------- | img1 img2 img3 | img4 ... ... | ...

Convert String to Drawable

I want to raise a notification showing an icon in the status bar - so far so good, but actually I would like this icon to be a 3 character String. So my question is: Is there a way to convert my String into a Drawable to display it as Icon in the status bar? EDIT: I recently found an app which does something similar - Battery Indicator...

How to Send Email in Android ?

Hai All, Can Anyone tell how to send email to a user from Android ...

Need to resize Android ImageView to match changing Drawable size

I would like to be able to alter the size of some of my ImageViews based on what Drawable they are showing. I've not yet decided on whether I'll get them to read the new dimensions from the Drawable or if I will just have an array/enum storing the heights of these, but what I need help with is the actual changing of the ImageView size. ...