android

Android SimpleCursorAdapter and Database Update

Hi All, I just started with Android development and love it so far. To get some experience, I am writing a little todo application. In my database I have a state for a todo item, represented as int. I use a checkbox in a list view to represent this state. To bind the data to the view, I use a subclass of SimpleCursorAdapter. I add an on...

Connecting / disconnecting with headsets on HSP/HFP, A2DP, AVRCP profiles in android

Hi, Can any please explain how Connecting / disconnecting with headsets on HSP/HFP, A2DP, AVRCP profiles is handled in android... Thanks in advance. ...

Multiple HID devices connection management

Hi All, Please explain how Multiple HID devices connection management in android and what are the UI support APIS to handle HID profiles.. Thank you. ...

Take photo using key or motion event by any method

Hi, My aim is to take a photo using the native android camera by using the Key or motion events. But it is not possible. I tried with junit testing. Code for invoking camera **package com.two.camera; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class CameraTwo extends Activity { ...

get resource id by passing name as a parameter in android

Hi folks i want to get image resource id by its name Thanks in advance Aswan ...

Dynamic view size increase in android?

Hi to all.In a single Screen i have a two ScrollViews.I need to show this two scroll views by using pan view.Is there any possibility to do like this??? ...

Pausing main game thread until an Activity is started, and has finished - Android

Hi there In my game when the user completes a stage, I want the main game thread to pause/sleep/wait and a new activity to be launched called StageClear that displays information about points scored etc. After this has been displayed and the user has pressed continue I want the original game thread to resume where it left off. I have tr...

Why are these permissions being refused?

Just for the Heck of it, I requested all the permissions from my application (hello world), to see what are the types of permissions that are granted and what are those that are refused! To my amusement I found about 40 of the permissions not granted! Two were returned as unknown permissions. Here is the log of all the permissions that ...

Using authenticated SOAP web service in Android

I have to securely connect to an authenticated SOAP web service in Android. The web service uses a self-trusted certificate. Unfortunately it seems that the usual Java libraries for this can't be used in Android. Could someone give me some pointers on how to do this? Is it possible to implement this connect just with HTTP POST request...

Animating while navigating between two activities

I want to show an animation when the user tries to navigate between one activity to the other .How can i achieve this? Upon googling i found that we can use styles and set animation using themes for an activity. But when i do so i am unable to see any kind of animation happening. Is it doable? http://groups.google.com/group/android-dev...

Why can't one add/remove items from an ArrayAdapter?

I am using an ArrayAdapter<CharSequence> to populate the items to list in a android.widget.Spinner. That works all fine. But now I want to keep the list of items dynamic, i.e. I want to be able to add/remove items from the selection list at runtime. However, when I call adapter.add(item) or adapter.remove(item) I always get a Unsupporte...

How to get the Touch position in android?

I need to get the touch begin position (X, Y) , touch move position and touch end position of the screen in android. ...

How to read/write data to mounted sdcard

Hello, is there any way to write data to a sdcard when the card is mounted as a disc via usb? I get an permission denied exception. If I unplug it everything is fine. I know I should be using Environment.getExternalStorageDirectory, but I don't think this would make any difference. Code: File file = new File("/sdcard/Test/t...

what is the speed differential of binary versus text file i/o?

I am developing a financial app that stores data in a file. I have noticed that text file i/o is pretty slow. If I switch to a binary format, how much faster will it be? 2x? 10x? I could write my own timing tests but I am hoping someone else has already done it. Thanks in advance. ...

Can I have a write permission in android Read-only file system ?

Hello Everybody, Whenever I try to update framework-res.apk on system/framework folder on my G1 it gives me an error:-- failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Read-only file system Then I tried to mount it with read write permission with this line :-- mount -o remount,rw -t yaffs2 /dev/block/mtdb...

Where to store a contact list on an Android phone?

I want to create a new contact list just like blacklist to store few phone numbers in android. which storage medium we need to use ?? ...

ItemizedOverlay seems to be drawing with a "broken" projection

I have a strange problem that I don't really know how to attack so I'm wondering if someone has had a similar problem before. I override the draw(Canvas canvas, MapView mapView, boolean shadow) method in an ItemizedOverlay subclass to draw some paths, text etc. between the items. The first thing I do in the override is call super.draw w...

HTC Sense Copy/Paste API's

Is there a way to access the copy/paste api/UI in an Android / HTC Sense based phone? I really like the way a long press works in a large canvas while using Sense. Is there a way to programmatically detect code is running on a Sense-based phone and call out to those APIs? ...

Picture editor in Android

Hey guys, I'm quite new to Android development and I wish like to develop my first app which is a picture editor. Basically it can let the user adjust the brightness, contrast, black and white effects. I would like to ask which package should I look for? I have roughly go through the Android API and I couldn't found any related package...

layout inflater in android

Can anybody tell what is the use of LayoutInflater in Android? ...