android

Easy way to make the ListPreference multiple choice in Android?

I am trying to create a preference dialog window that allows the user to select more then one item in the list. Currently it only allows you to select one item. Is there an easy way to do this? I have looked all over the internet and not seen a way as of yet. Any help is appreciated! ...

Login with email-id and password

Hi everybody, I want to create a login application which will asks email-id and password from the user. Then this email-id and password will be checked on the email-provider server like google, or yahoo. How can I do this? For this, I think i need to send the Request to email-provider server with email-id and password and get back the r...

Android Tabhost Problem - .setIndicator

Hello, First let me clarify that i have already referred the SO question related to "Android - TAbhost". I have done googling about "Android Tabhost" but failed to find the solution. My problem is: If are having <3 tabs then it is fine. but Supporse if we are having 4 tabs with indicator title as TabHost1, TabHost2, TabHost3, TabHos...

Android Web Page Needs Force-Refresh To Show Background Colour

I have an HTML 5 web page using CSS 3 and have tested it in more browsers than you can shake a stick at. I am getting a strange problem when viewing the page on an android phone... When I visit the pages, all of the CSS renders, except the background colour (and luckily the foreground text colour). If I force-refresh the page, it then w...

Android Intent with Tab Host

Hi All, I Have one App which is having four Tabs. When i click on Tabs it shows me different activities. now the problem is i m working on current project and i want to call another project in my applicaion. i have imported the package in my current project. but when i m calling the other activity in Manifest its is showing me the error...

access t9 predictive text input engine on Android phones

Hi, I was wondering it there is an API that can access the core functionality of t9 predictive text engine on Android phones. The API should have some access point like: -setCurrentLanguage -closeCurrentLanguage -appendKey(some key) For example: appendKey(4),appendKey(6),appendKey(6),appendKey(3) will give: "good" -get current word -get ...

CursorAdpater vs ResourceCursorAdapter

Hi, What is the exact difference between CursorAdapter and ResourceCursorAdapter ? Can somebody explain what are the api's that are required to override when implementing my own ResourceCursorAdapter ? I have gone through the ResourceCursorAdapter documentation and able to figure out that it's constructor takes an additional layout par...

colors on listview

HI all, i have 10 rows in my listview, and i want to provide different colors in each row. how can i do this??? ...

Android: need help to create UI

In my app I want to create something like this: like this: I thought to put five buttons inside a linear layout, but the problem is how to show the inner items at run time. Every time i click on a button i want to show the proper items and hide the others. ...

Android Alarm Manager with broadcast receiver registered in code rather than manifest

Hi, I want to use an alarm to run some code at a certain time. I have successfully implemented an alarm with the broadcast receiver registered in the manifest but the way i understand it, this method uses a separate class for the broadcast receiver. I can use this method to start another activity but I cant use it to run a method in m...

MapView doesn't take up full screen

I hate to bother you all again, as this is probably me, a newbie, making some big blunder, but I'm baffled as to why my mapview only takes up a fraction of the screen. I've been following tutorials. My layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_wid...

scroll an image bigger than the screen and stop at its border on Android

I know how to display an image that is bigger than the screen. That's fairly simple and explained in details here, however, this method makes you able to scroll as far as you want, event if you have left the image and you just have black screen. I would like to know how we can make the scrolling stop when we reach the side of the picture...

Problem in fetching image from database

Friend's, I stored image url has a byte array in database has blob type and at time of fetching this image i'm getting nullpointer exception.how can i fix this problem,here the code for fetching data from db... String bb = c.getString(c.getColumnIndex(JR_Constants.IMAGE_97)); Log.v(TAG,bb); Bitmap theI...

about android google api-streetview

How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline. ...

Activity idle timeout for HistoryRecord

Hi, i'm having sometimes problems when launching my app. From time to time the screen stays black and i have to wait 10 minutes. I don't get an error message and the logcat says this: 08-10 11:45:39.659: WARN/ActivityManager(104): Launch timeout has expired, giving up wake lock! 08-10 11:45:39.736: WARN/ActivityManager(104): Activit...

Android: Background with specific size?

Hi all, I'm having some trouble trying to create a program for Android 2.1-update1 with a background of a specific size. It seems that the only option is to scale the image according to the device screen size/orientation. Is there a way to create an empty LinearLayout (edit: with a specific size) behind the gui widgets and then set the...

Automatic/dynamic margin in Android layout

Hi, I was wondering if it's possible to set an automatic/dynamic margin (padding?) between elements in an Android layout without having to do it programmatically? For example let's say there is a horizontal LinearLayout which is set to android:layout_width="fill_parent" and that contains five elements. Is there a setting that evenly sh...

Android: Custom Typface in Listview Row layout

Hi How can I add a custom typeface to a view outside my current view ? The code in bold compiles fine, but throws an error at run time caused by : TextView tv = (TextView) findViewById(R.id.text1); text1 is defined in a separate view (android.R.layout.two_line_list_item) and is NOT defined in the same view as set by the following lin...

How to change text when scanning barcodes with Zxing via intent in Android?

Hi! Is it possible to change prompt text that says "place the barcode inside the viewfinder..." when launching Barcode scanner (zxing) via intent (Intent intent = new Intent("com.google.zxing.client.android.SCAN")) ? I want to have prompt in my language, how should i do that? ...

Android AutoComplete Binding Question

I'm developing an Android Recipe program which has database of food recipes. I have a created a database within it a table called "recipe" which has the following fields: 1 - _id(referred to as KEY_ID) 2 - recipe title(referred to as KEY_TITLE) 3 - number of serves(referred to as KEY_NOSERV) 4 - ingredients(referred to as KEY_INGREDIENT...