android

Need Help in Implementing an Search Bar in Android?

Hai Friends, I have created an Edit text,in which the user type something , ForInstance: if the user types "tl" then i have to fire keytyped event and a search has to be done with the existing array and list the combination of tl, which the user was typed in the edit box, i am struggling on this, pls guide me on this. @Overr...

How can I trigger a rebuild of my Android apk?

Hi everyone, I have an apk that is built with make, and so it has an Android.mk file associated with it. Now, I want to make sure that this apk is rebuilt every time a specific file (that is not related to the apk at all) has changed. So I need to somehow specify a dependency from my apk to this specific file but I can't figure out how ...

Determining roll angle (up/down) when Android phone is horizontal?

When the Android phone is on its side (horizontal orientation), the Roll represents the tilt, so to speak. When the phone is perpendicular to the ground (looking directly at the screen), the roll says 90. However, when you start tilting it forward or backward, as if you wanted to look down or up, the angle just decreases either way. ...

Horizontal LinearGradient with android.

Hey everyone, This must be an easy one but I'm really at a loss... The following code draws a rectangle with a linear gradient going from left to right, from white to black, int x1 = 0, y1 = 0, x2 = 100, y2 = 40; Shader shader = new LinearGradient(x1, y1, x2, y2, Color.WHITE, Color.BLACK, TileMode.CLAMP); Paint paint = new Paint(...

nested tag in KSOAP

I have a question: How to handle nested tag in KSOAP webservice in android ? ...

Android: Contributor for Distributing app on android market ??

Hi, as we all see Google was increased his country list on android market on ( 30 countries for selling) and I saw some talks here about this theme , but I did not find quality answer .. My question is there any company or person etc. who make some service for publishing android app on android market from developers from cou...

Android SDK Align two elements in center

Im trying to align two elements in my xml file. I want to display a TextView called "Description" and a TextView called "Value" on the same line. The Description should right aligned to the center, the Value should be left aligned the center. But the following gravity doesnt seem to affect them. I assume I should avoid using AbsoluteLayo...

android debug error

when i try to debug the code in http://code.google.com/p/dalvik/wiki/JavaxPackages ... it give me an error at build.xml : 215 and the generated file is named hello_stax.ap_ not hello_stax.apx ...

list inside scrollview

On my screen I have a list view and a button. my list has like 8 item. I would like my screen to scroll if both these items does not fit in. I don't want my list to have scroll but the complete layout including both list & button. If I use the below layout it only shows on item inside the list and I have to scroll within the list to go t...

What does the following code do if there is no GPS fix..?

If there is no GPS FIX (because the person is in a metal building or something)....does it just stay in the Looper..?? OR does it keep trying for a fix via requestLocationUpdates..?? If I do have a good GPS FIX....my code works fine...and in onLocationChanged()...I update the current location to the database. Also...when is onLocat...

Motorola Bluetooth SPP profile problems

Hi, I'm developing application for the Android that communicate via Bluetooth. Our Device tries to open connection to the Android phone and send information using the Serial Profile (SPP). What I found in the last days is that accept() API does not work with the Motorola phones DroidX and Droid2. Same code does work with HTC Aria pho...

use amazon aws-java-sdk-1.0.11 in android

i need a way to use aws-java-sdk-1.0.11 in android as when i try to import the jar files of third-party it give me an error delvik conversion error i want to use only ec2 ...

Android Plugin for Eclipse Update Problem

After performing an update to a new version of the Eclipse Android Plugin, it stopped working. There is no Android Tool visible anywhere. The Window/Preferences tool does not show the Android plugin to configure. And yet, it is installed (says the "Eclipse Installation Details"). I tried uninstalling the Plugin, and re-installing, but i...

Android problem using built in SQLiteDatabase execSQL to update function

I have the following code to open a database on the SDCARD and then update a value. If I run the code as is, it will generally run through without throwing an error but nothing gets updated. If I single step through each line, it works perfectly. I have also tried adding SystemClock.Sleep(2000) in between each statement. Still, it do...

Clearing Data issue in android

Hi all, I have stored all the data to database for given username and password.then in the real device I cleared data from settings=>applications=>Manage Applications=>click myapplication and click "clear all data". After that I could not login successfully and am stuck... whats the solution... Thanks in advance... ...

android: how to override a listview's touch background

by default for an android listview, when you touch it, it has an orange color. does anyone know how to override this? there doesn't seem to be a method for it. ...

Image cropping activity/widget

Is there an Image cropping Activity in Android? I know that when you save an images as your wallpaper, it pops up an image cropper... and I've looked into the sourcecode for that, but it depends on a LOT of gallery specific stuff. Not very reusable. Does anyone know how this might be done, or are there any third party libraries that c...

Anyone have example code using switched Views instead of Activities inside a TabHost on Android ?

The Android developer guide (http://developer.android.com/resources/tutorials/views/hello-tabwidget.html) states: `You can implement your tab content in one of two ways: use the tabs to swap Views within the same Activity, or use the tabs to change between entirely separate activities. Which method you want for your application will dep...

Android test annotations with Robotium

Hey all, I'm currently building an app in Android, and using Robotium to do functional tests (PS don't use Robotium on anything less that Android 1.6, it is way too buggy). Some of these tests have a random tendency to fail, mainly Robotium missing a text field, or timing out, not reading text. I am trying to use the @FlakyTest annotat...

Reserve the App Market URL in advance

We are currently developing an android app for our client. Client would like to include a barcode on a it’s mailing about the Android app, such that when the user scans the barcode, s/he will be taken directly to the application on the Android marketplace for download. To do this, client will need to know the exact URL on the marketplace...