android

Android: How to work with Checked ListViews?

Hi, I wish to work with checked list views wherein only one item can be selected at a time. Some queries related to this: 1) Is it advised to work with CheckedTextView as the ListView items, or a combination of CheckBox and TextView? 2) If using CheckedTextView, the text comes first and the checkbox appears on right edge. Is it possib...

how to show progress bar on webview?

dear friends, i am trying on to open a webpage in my application using webview when i open it. it shows me blank screen for a while and then open that page in browser inside my applciation. any one suggest me how to show progress or get rid of that blank screen which comes during loading of webview? any help would be appreciated. ...

color pantone in android

color pallette selecting the color in bunch of colors after selection sending the color pallette to friend through E-mail ple tell me where to start and the packages used for that... ...

Android network stats

Hi, Is it possible to create a application that gets network activity / statistics while running as a background process? Or just make a application that listen to traffic on a specific port? Thanks M ...

Having a view wrap around another view

Is there a way to make my textview wrap around other views? For example in the picture, is there a way to get it to wrap to the edge once it gets below the imageview? This is my xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" ...

Webservice With BraoadCastReciever

I have to call httpClient Within broadCastReciver ,but I got the following error Can u just help me. package com.BroadCast; import java.util.ArrayList; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; org.apache.http.client.methods.HttpPost; import org.apache.ht...

Identifying market and non market apps on android device

Hi, I want to filter market and non market applications installed on android device.How can I do this... Thanks, Prateek ...

Needed C++ HTML parser + regular expression support

I'm working on a C++ project and I need to find an external library which provides HTML parser and regular expression support. The project is under 2 OS - iOS & Android. I was thinking using libxml2 which has a HTML parser module and xml regular expression. Can I use the xml regular expression module on HTML page? In addition, I need...

Error while licensing the application in the android market?

hi, after following the steps given in the android developer site for licensing, i have an error "could not bind to the service" how do i solve this . thank u ...

LinearLayout Gravity Bottom in Java

Hello, I am trying to accomplish something like a vertical bar chart. This is done dynamically in Java. For some reason the TextViews (bars) are not aligned at the total bottom of the LinearLayout but ~20px above. When the height is set I can see by different and growing sizes that it first stretches to the bottom and then the to the top...

Set image / background source dynamically

Hello, is there any possibility to set background image dynamically?! I try to explain what I mean. String picVariable = getPictureFromServer(); ImageView image = (ImageView)v.findViewById(R.id.dynamic_image); // I know, that doesn't work, but that's the way I looking for image.setBackgroundResource(picVariable); Thank you in adv...

Apple pList form of XML can I parse it through Android Java?

Can we parse the iPhone/iPad based pList XML from Java on Android? Please tell me if any such library you have used or know about? ...

Android Application Error

Hi every one i am new to android application. i am reading data from xml which is in server .. for hotel list its reading properly but when i click any of the hotels i am redirecting to another page there its showing an error " application has stopped unexpectedly please try again" i dont where i am wrong can any one pls help me in dis.....

Android HTTP User Agent

Hi.. Can i ask how to get http_user_agent real device? When i use WebView, i can get the real value like this: [HTTP_USER_AGENT] => Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 But when i use Apache connection, the result is different like this:...

Determine the audio frequency of sound received via the microphone

I am trying to understand how to go about determining the frequency of various sounds captured on the phone via microphone. I am attempting to display a graph plotting the frequency of the note. ...

[Android] Get resource ID from value

I do have a lot of language specific resources. There's one point in my Android apps where I do get a resource value and need to translate this value into the matching id. The value is not neccessarily in the language specific file for the current language (en/de/...). It's somewhere in there ... and it's unique. After reading the docs ...

How to use android:Layout_marginLeft dynamically in Android for TextView

Hi, I am creating a TextView dynamically from Activity. I created 2 Textviews and I want to maintain some gap between 2 TextViews. How can this be achieved through code rather than from XML. Normally in XML we use android:layout_marginLeft/Right tag to maintain gap between 2 TextViews. How can this be achieved through code? Thanks in Adv...

how to modify table values in database

hi i am new to andriod.I am creating a table and inserting the values into table by using sql lite.Now i need to change vales based on the id.how can i done this pls post some code.Thank u in advance. ...

How do I pause my app when the user long-presses Home?

If the user taps the Home key, I can pause my application because the onPause event fires. However, if the user long-presses Home, the recent app launcher pops up and my application carries on running behind it. I want to pause my application in this situation. What can I do? (NB. I don't want to prevent the long-press of Home or alte...

Android: How to check a particular item in a Checked ListView?

Hi I am using a ListView in which only one item can be checked at a time. This is my custom list_row.xml : <?xml version="1.0" encoding="utf-8"?> <CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dip" and...