android

Android App - disappearance of app GUI

I'm trying to create a simple app, whose main task is to open the browser on defined URL. I've created first Activity: public class MyActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); Intent myIntent = new Intent(Inten...

Android: Is there a universal way to send the MMS on any android devices?

This code works on the plain google devices with native android system. But there is no MMS app in the list on htc sense devices and I don't know about Motorola Blur etc.: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("image/png"); emailIntent.putExtra(Intent.EXTRA_STREAM, uri...

Custom Title for Email in Android?

I have working with email option. i can send the Email using the intent chooser method. by this i can get the default email compose window with the title of "Compose". i want to change and customize this. is there any possible to do the Feature_Custom_Title option for it? Any Idea? ...

How can we update the system wallpaper in an Android 1.6 service after changing it with setWallpaper()?

We are doing a simple service that changes the wallpaper when the phone (an SE xperia x10 mini) is tilted. So basically the code "almost" works - the problem is that the system does not appear to know that the system wallpaper have been changed or does not do anything about it. Starting and closing another app manually appears to enforce...

Android Bluetooth API connect to multiple devices at the same time

It is possible to connect simultaneously to multiple bluetooth devices? ...

Using ContentProviderOperation to update and insert contacts

Hello, I faced the problem updating/insertng contacts on Android 2.0+. There is no problem to insert a new contact when phone book is empty but when I did it 2nd time some fileds like TEL, EMAIL are doubled and tripped etc. but N, FN, ORG are ok (one copy). After getting and advice of other member this forum I updated a contact first...

RSA encrypt with base64 encoded public key in Android

How to do RSA encryption of byte array with base-64 encoded public key? After reading the couple of articles( of google search ) on how to do RSA encryption in Java, found the following snippet public byte[] rsaEncrypt(byte[] data) { PublicKey pubKey = readKeyFromFile("/public.key"); Cipher cipher = Cipher.getInstance("RSA"); ci...

read the file data in android ?

I download the *.ics file from the browser. Downloaded ics files are listed with my application icon. When I select the file it opens my application. At the time of opening application I need to read the file data. I am very new to android. I need some help to do this. Can any one help me to solve this??? i use the intent filter like thi...

Android Login - Best implementation

Hi everybody, I'm planning to implement an Android application that requires a login screen. If the user opens the activity something like this should happen: If user is logged in, goto 3 If user is not logged in open the login screen and perfom login Show my application content So, what's the "correct" way of implementing a login?...

ExpandableListView in Android

I have requirement like this- my activity contains some textviews at the top then the expandable list view in the middle and a button at the bottom. my problem is when i clicked on expandable list view the expanded list get accommodated in the space between button and expandable list view. I wanted expandable list view to get expande...

How I can simulate "tail" command for file on the Android file system?

I have file on SD-CARD and my app using it as log file. Is it possible through the adb to watch file with all changes in real time? Like with tail -f /sdcard/myfile.log command. ...

How to get a TextView in Android have Horizontal Scrolling and autoscrolled?

I want to have a simple TextView with horizontal scrolling, I know that I use HorizontalScrollview for that and I want the text to be autoscrolled continuously. Is that possible? ...

Programatically detect presence of hardware call/hang up keys

One of my clients wants a code method that returns a boolean. True if the Android phone has hardware red/green call/hang up keys and false if it does not. Sonething like this : public void keyFeedbackFromInput(KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN && (event.getFlags() & KeyEvent.FLAG_VIRTUAL_HARD_K...

How to implement scrollbar with thumb for fast scrolling

Hi , I need to implement a screen having around 1000 thumbnails. This screen should support gesture based scrolling as well as fast scrolling using a scrollbar with thumb. So if user want to move from page 1 to page 100 he can just drag the thumb and reach there. But there is no such control in Android. There is seek bar but its look a...

Web image loaded by thread in android

I have an extended BaseAdapter in a ListActivity: private static class RequestAdapter extends BaseAdapter { and some handlers and runnables defined in it // Need handler for callbacks to the UI thread final Handler mHandler = new Handler(); // Create runnable for posting final Runnable mUpdateResults = new Runnable() { ...

Confused about Android API's and compatability

I have purchased an HTC Incredible and have dived into the world of android! Only to find myself totally confused about the API levels and backward compatibility. My device runs the 2.1 OS, but I know that most of the devices out there run 1.5 or 1.6; and soon the 2.2 OS will be running on new devices. The SDK has gone through such enor...

Custom list: EditText consumes list's OnItemClickListener

Hi everyone, I've been implementing a number of custom-lists, all worked fine. Now I'm trying to add an EditText to the list's rows. The rows look like that: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height=...

Remote service , start remote serivce (on diffrent apk)

Hello, right now i am in the scope of a RemoteService which on an apk. and i want to start another RemoteService which is on diffrent apk. (i can only know it's service name on a runtime). how would I achive that? thanks all. ...

QuickActions like the Twitter app

I want to add Pattern 6: QuickActions from android's blog to my app. Any code snippet? Anyone try to do it already? Should this work on android 1.5? ...

Android 2.2 Update

Hello All, I have been trying to find information on updating to Android 2.2 for my Nexus One. I have seen posts on a place to download 2.2, but I am very weary of that and people who have tried it seem to have issues with it not working on their Nexus One for AT&T. Does anyone know when/where/how I can update the phone, or if I have ...