android

How to draw a Drawable over a View

I have several Views in my Activity. I want to draw a Drawable over these views. The Drawable should be on top of the views (that means it hides the views below it. The Drawable may appear over several views (that is I can't just draw it in one view). How can this be done? Thank you ...

Beginner: Best Practices in an Android App UI Navagation

I am trying to learn how to do stuff in Android, and I'm not sure of the best way to build the interface. I've been working on porting an iPhone app, which uses navigation controllers and table views for looking at the different sections: basically, someone touches a cell in the table, which drills down to another table. when they touch...

Launch custom android application from android browser

Can anybody please guide me regarding how to launch my android application from the android browser? Thanks in advance. ...

Add a view/activity on top of a ListView [Android]

Hi everybody, I want to have a view with several choices when I click an element of my ListView. I was thinking of implementing an AlertDialog but as I need more than 3 options it is not possible... I also thought of putting my ListView in a FrameLayout and have an view with a gone visibility that I would turn visible at the click and u...

Service and a BroadCastReceiver

Hi, I have seen several examples on how to implement a BroadCastReceiver, but how should I implement a Service who has to react on some pending Intent (for example incoming phone call)... Actually I was wondering about the same "prbolem" but in an Activity.. You obviously have a class which extends a Service 9or an Activity) so it cannot...

mulithreading in android

How to implement Multithreading in Android application so as to increase responsiveness of UI. ? ...

Android SOAP Web Services

I'm appalled by the apparent lack of support for calling SOAP web services in Android. I've looked at ksoap2 libraries but getting them to work is like rocket science. Is there a way out? Has anyone got it working 100%? Clearly, Google is not targeting Android as a business app platform. Good for tic-tac-toe and tiny little feel good ap...

Calling Custom Android Keyboard in my application

Hi, I have searched the net quite a bit and haven't found a single resource that can help me call my custom keyboard in my application. I am using the android/sdk examples/soft keyboard and have commented out the first row of keys in the qwerty.xml file for testing purposes. I have tried making changes in the AndroidManifest.xml but st...

Dealing w/ Sqlite Join results in a cursor

I have a one-many relationship in my local Sqlite db. Pretty basic stuff. When I do my left outer join I get back results that look like this: the resulting cursor has multiple rows that look like this: A1.id | A1.column1 | A1.column2 | B1.a_id_fk | B1.column1 | B1.column2 A1.id | A1.column1 | A1.column2 | B2.a_id_fk | B2.column1 | B...

Android SDK - Reference the phone's gallery app?

Hello, As of right now, in my app I have created a rudimentary gallery app using the provided widget, I need this to select a picture from the phone. This is working fine and everything, but lacking very much in presentation. I've got a couple apps on my phone that do the same thing, but they somehow use the gallery that's already in t...

NullPointerException when trying to connect to web service using kSoap method Android

My web service should be returning an integer, but every time i run the code i get the NullPointerException error. Any ideas or help would be very appreciated Here's my code: public class CGCountTest extends Activity { TextView testTV; private static final String NAMESPACE = "http://passport-america.com/webservices/"; private sta...

How to add parameters to a HTTP GET request in Android?

I have a HTTP GET request that I am attempting to send. I tried adding the parameters to this request by first creating a BasicHttpParams object and adding the parameters to that object, then calling setParams( basicHttpParms ) on my HttpGet object. This method fails. But if I manually add my parameters to my URL (i.e. append '?param1=va...

how to create list and sublist -android?

hi, I am new to android.Can any one help me .how to create a list. example: List1 by selecting list1 I should get list1 items in sublist list1.1,list1.2.... List2 by selecting list2 sublist items as list2.1 list2.2 Please help me. ...

Failing Android JUnit tests, not breaking my Ant script like I expect?

Failing JUnit tests, not breaking my Ant script like I expect? My continuous integration server runs an Ant script, which calls something like: /tests/ant run-tests My JUnit tests run, but with errors: run-tests: [echo] run-tests-helper. [echo] Running tests ... [exec] [exec] com.zedray.stuff.FooBarTest:.... [e...

Example/tutorial for creating an input form using Android SDK

I'm looking to create a simple form with some textfields and a button using the Android SDK. Could someone point out a good example or tutorial for getting started? ...

Convert existing project into Android project in Eclipse?

How do you convert an existing project into an Android project in Eclipse? In particular, I want to convert a plain old Java project into an Android Library project. Thanks. ...

WebView: how to preserve the user's zoom settings across sessions?

My app uses a WebView, and users sometimes adjust the zoom level to make the text larger. However the zoom level setting is lost when the Activity is closed and another one started. I can't see how to get and set the zoom level programatically on WebView, can anyone suggest a way this could be done? ...

Android menu item separetor (menu item in different line)

How can i define each menu item in different line? Right now if I'm adding 4 items they will get the form of 2X2. Is there a way to add them differently? Like 1 item and 3 below it? or 1X4 ? ...

Android - Buffering in MediaPlayer

I am using MediaPlayer to play a video in my app. The video takes a while to buffer and the videoview is blank for that time. Is there a way to start the buffering when the user is in the previous screen, so that when he comes to the video playing screen, the video is ready to play? Thanks Chris ...

Android - database disk image is malformed

Hi In my android app I am getting "database disk image is malformed" What are the reasons for getting this error? not closed db? multiple threads accessing the db? or android just got corrupted? Thanks ======================================================================================== android.database.sqlite.SQLiteDatabaseCorr...