android

Android: COnsuming GPRS Data

Hi, I am using an application that uses internet let us say it is taking some data from internet. Is there any way by which i can know how much data is consumed by my application programatically? ...

android applications

in my application i want to create a shortcut (a button), to another application but i want the user to be able to select which application he wants... So how do i access a list of all the installed applications and how do i create an intent to start any one of those applications ? ...

Android media player fails MP3 with PVMFErrNotSupported?

I have a downloaded MP3 that I can verify as MP3 by adb pull to my mac or pc and play in its respective media player. However, the error from Android implies that it does not support the format. I think it may be related to the directory location where I am storing the file, but that does not make sense (/data/data/com.myapp/files/file...

How to change android tab text on the fly?

This seems like it should be simple, but I can't figure out a way to do it. I'm needing a tab to have beginning text, but then have that text change after the user selects an item from a list. I know how to change tab backgrounds and colors via mTabHost.getChildAt(index).setBackgroundColor(); but there isn't an option to change the ta...

Are there any relationship between SurfaceFlinger and PowerManagerService...Please help me ASAP

HI, I need to know sequce flow from PowerManagerService to SurfaceFlinger...i digged the api in PowerManagerService but couldnt get the connection with SurfaceFlinger.Please let me know the sequence flow. can anybody help me for this..... Thanks in Advance. ...

How can a button click method find out which item is selected in a ListView?

I have a single screen with a bank of buttons below a ListView. Entries on the ListView light up in orange when I scroll so I assume that are selected. When I then press the "Delete" button I want the onClickListener to remove the currently selected entry. But getSelectedItemPosition() always gives me -1. If I can't hope to use the GUI c...

android services

i need to learn aboput making my own services and how to use these services... can anyone pointme to a tutorial or anything which i can use...? Ive already seen the developer.android.com site i am looking for something else... ...

Access Activity below in the stack

Hi all, I have pushed one Activity to make few changes. Now I want to pass all the changes to the previous(below) Activity. I dont want to create Activity again;and intead i want to access the previous activity. thanks... ...

Access image in my Android Tests

Hi, I am working on an Android app. It has corresponding spec/test application. As part of some of my tests, I need to pick up an image from my assets folder and calculate SHA-1 for it. I can calculate SHA, as long as I can pick the image. Since the tests run on emulator; I am not sure how to pick the image in my test. Does anyone hav...

check wifi connection type on android

Hi, Is there anyone knows how to programmatically check on Android if the current wifi connection is made to a WPA secured AP, or a weaker WEP secured AP, or a unsecure open AP? Thanks! ...

Android Market Upload APK file hangs

I've been trying to upload an APK file to the Android Market for a few days, and the upload process hangs with the spinning icon just rotating. I've let the upload run overnight and it still hangs. 1) The APK file is 28 MB 2) I've uploaded an APK file to the Android market before and it is now for sale. Is there a way to find out w...

Is it possible to detect if an Android phone has a trackball?

My application requires users to hold down the trackball in order to access an advanced menu. Not all phones have a trackball, however, so I need to remove this requirement for such phones. Is there a way to detect if the phone has a trackball? ...

Android: How do I customize phone apps menus?

I want to add a new menu or context menu item to existing applications like the Phone and Contacts. For example, in the contact list, select a contact then you see "Send picture to this person" in the menu. Or from the phone app, while talking to someone, you see a button that says "Mark this call for follow-up" or anything like this. ...

Android Beginner: Adapter for simple view or direct DB query?

First off I'm really new to android (< 4 days). I'm trying to wrap my head around how database data is linked to Views and widgets. I've done a few tutorials and I've noticed that Adapters are used to link AdapterViews which are (as I understand it) Views which contain a bunch of identical subviews (eg lists, gallery, etc). So the A...

Full screen display in portrait/landscape mode in Android

Hi, I am using VideoView component for streaming video in Android , but I am not getting the full screen display. Kindly provide the code to display full screen in portrait/landscape mode. Warm Regards, Chiranjib Banerjee ...

how to set color for the textView in android?

In the string.xml file i use the following tag <color name="mycolor1">#F5DC49</color> if i use textview1.setTextColor(Color.CYAN); it works, But textview1.setTextColor(R.color.mycolor1); This is not working how to use the color tag in android. ...

How do I add Advertising in my Android Apps?

Did google provide some special things or how do you add Adv. in your apps? ...

Android View stops receiving touch events when parent scrolls

I have a custom Android view which overrides onTouchEvent(MotionEvent) to handle horizontal scrolling of content within the view. However, when the ScrollView in which this is contained scrolls vertically, the custom view stops receiving touch events. Ideally what I want is for the custom view to continue receiving events so it can handl...

android : how to detect the navigation button pression on HTC ?

Hi, Im testing a software on HTC desire phone. There is a special button on the right of the menu button. Its a circle. Its used to navigate and you can also press it. I would like to detect when someone press it over a row of my listview. I did put a convertView.setOnKeyListener((OnKeyListener)... but its doesnt work. Any ideas ? ...

how to drag an image by touching in android?

how to drag an image by touching in android? Please Help me with a sample code. ...