android

Android: View multiple image with system image viewer

We can view an image with code: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File("/sdcard/test.jpg"); intent.setDataAndType(Uri.fromFile(file), "image/*"); startActivity(intent); What if we have some images? How can we put the extras to let the viewer know we have /sdcard/a...

Target only high-resolution (pixels) devices on Android Market

I want to publish an application that specifically runs only on 800x480 or higher screens. I don't want users with 480x320, 320x240 etc devices to get it from Android Market. How do I configure it? Market Filters seems to have the answer but I still don't get it. ...

getting connction metrics in android

im interested in retrieving the following performance metrics for a http connection in android time taken for each task : DNS lookup, establish conneciton, download response etc total download times. number of tcp connections made amount of data downloaded number of page requests and page responses ajax requests request type (GET/PUT/...

Android Listview, cursor adapter with custom multiple select

I'm building a list of contacts, where the user can select more than one one contact. Currently the android layouts only provide a multiple select with a single textview and a checkbox, what I want to do is have the name and number and a checkbox (two textviews and a checkbox). When I implement this with a custom layout, and when the use...

pass values in alarm manager

how can we pass the value to receiver...i am using alarm manager... ...

find app released date in android

How to find the release date of an app in the android market? I want to know when some apps with a big number of downloads where release to have a look on how long it took them to get there. ...

finding running process in android

how to find runnning process in our android mobile phone programmatically? ...

How to better unit test Looper and Handler code on Android?

I use the android.os.Handler class to perform tasks on the background. When unit testing these, I call Looper.loop() to make the test thread wait for the background task thread to do its thing. Later, I call Looper.myLooper().quit() (also in the test thread), to allow the test thread to quit the loop and resume the testing logic. It's a...

Accessing static field: caching handles locally

I have a class structure such as following for storing static final constants: public final class A{ //..list of constants public final class B{ //..list of constants public final class C{ // ..list of constants } } } If I need to access static constants of class C(say about 10 to them) in some thread, which of the two app...

https connection in android

How to setup a https connection in android to get a response type of XML ....? ...

Recurrent events

Hi I was just wondering, how to fetch recurring events from native android calendar ...

Android - get Height of the parent layouut

I want to determine the available height and width of the parent layout to which I have to add my view. I have used many methods on layout like layout.getHeight() layout.getRootView().getHeight() All these methods return 0(zero) as the result. My main requirement is to be able to give width to a view that is some % of the width of...

develop speech to text conversion api for mobile os

Hi Folks develop one app speech to text conversion on mobile phones.i want to develop it for supporting all mobile(android,iphone,wince,windows 7,webos).for that i would like to develop one api. is there any way develop api for supporting all above os.Please Let me know and suggest me.any other way Thanks in advance aSwan ...

Android: Using Wifi connection through Application

I want to make http connection which ensures that it is done through wifi only,so that I can not be charged for the transfer of packet from GPRS or 3G network. It means what ever the connection available I can use only wifi that I want to ensure through Application itself.. All help is appreciated. ...

Can one display a table's grid?

My Android app displays data in a table. How do I display a grid separating the cells, so that it's easier to visually follow rows and columns? I didn't find any option pertaining to grid in the android.widget.TableLayout class... Michael ...

Multiple notifications with one status bar icon in android

i am using custom notification...how can i set no of notification is showing?and list out those notification? this is my code... public void onReceive(Context context, Intent intent) { Toast.makeText(context, "coming", Toast.LENGTH_LONG).show(); Bundle descBundle = intent.getExtras(); CharSequence desc = descBund...

dynamic String using String.xml?

is it possible to have a string value in string.xml of the sort " some string PLACEHOLDER1 some more string" so that the place holders can be assigned the value at run time. ...

How to build a Calendar

I am developing an application where in i want to write a Calendar. I have the UI part of the calendar completed. Please suggest me how do i create a calendar. My idea is that on clicking the dates of the calendar i need to navigate in to another activity. ...

where does dataDir in Android

Hi, I am working Android App where a file is given its location like the given below: the method is like this public booelean log(ApplicationInfo aplinfo) { ApplicationInfo objAppinfo; objAppinfo = apinfo; _strFilePath = objAppinfo.dataDir; _strFilePath += "/"; } where Appicationinfo is my ...

How to determine android database max size and prevent SQLiteFullException ?

Hi... I have few queries on Android SQLiteDatabase 1.) As normally the database stored in internal memory, can we specify the path of external storage and use it in similar way ? 2.) How to determine the size of available space of database ? I used getMaximumSize() from SQLIteDatabase class but that gives me 1099511626752 Is this in byt...