android

How to get data from a mysql database using javascript?

If possible, how can I get (and post) data from a mysql database using javascript? I know I can use php and other languages, but I just need to know if this is possible with javascript? Thanks in advance. ...

Calculate time between two times Android

basically i have one time currentTime = DateFormat.getTimeInstance().format(new Date()); and i want to calculate how much time has past since currentTime. any ideas? ...

Is is Poossible To Deploy Silverlight Apps on Android?

Hello Guys I simply want to ask that is it possible to deploy Silverlight Apps on Android. ...

ActivityInstrumentationTestCase2<axtivity>

I wanted to know if there is a way to save the state of an activity before starting another test case and start the next test case from this state ...

Android: click event on game object

Hey, I'm creating a game for Android and i want to add click event on some game objects/images in my game. The problem is that the object/images is created programatically in a Thread, so i don't know how to add a click event to them. My code structur looks like this: -> Main.xml -> Main.class --> MainView.class ---> MainThread.clas...

File download in android?

I use the following intent-filter in the manifeast.xml. I need to download the ics file only from the mail attachment.If i use it in the browser it works.But from the default email configuration it's not used to open the mail attachment . How to solve this? <intent-filter> <action android:name="android.intent.action.VIEW" /> ...

Android: Within Android Device Chooser the same device shows up several times

I am using Eclipse to program for the Android OS. I use a real device to test my application on. To test my application I click on run, then the target project i wanna run and then the Android Device Chooser pops up, where I can choose the device or emulator that I want to run the application. (like probably every programmer here). But...

HttpUrlConnection.openConnection fails second time

I know this issue should be fixed with System.setProperty("http.keepAlive", "false"); before openConnection, but that didn't work to me. First try on this code works, second one fails. Even if i try this request after less than 5 seconds, it also works. If i wait more than that, it fails again This is my code: System.setProperty("h...

Android: is it possible to configure ListView of ListActivity via xml

Hello everybody Actualy the question in subject... How to configure ListView of ListActivity via xml, for example padding, dividerHeight etc... ...

Webservice credentials - OpenID/Android AccountManager ?

I'm building a webservice and would like to use the user's google account credentials. The service runs on GAE and will have a web client and an Android native client. This is my first attempt of something like this and I've been reading about OpenID and the Android AccountManager library. I'm still not sure what are my options in ter...

Disabling focus in TextView

Hello, In an Android application I have a ListActivity. After creating it I have a broadcast receiver which has to disable some items in the list. So I have a pice of code ike this one: View child = getListView().getChildAt(i); child.setEnabled(false); It works in the way it changes the color of the disabled views to gray. But I need...

How to boot android phone programmatically?

I want to reboot targeted phone by SMS. Is it possible? How can we implement this? ...

Google Map with Android Application

Hello All! I want to know about the configuing process of Google Map in an Android Application. Thanks, john ...

How to display hierarchical data on Android ?

I'm only interested in the GUI part (NOT cursors, asyncTask, ContentProviders etc.) The data sits in a hierarchical tree structure, top nodes are "Mens clothes", "Womens clothes", "Childrens clothes", "Other". Below the top nodes there are various levels of sub nodes. In total 200 leafs are present. The user will select one item at a ...

Android Webview Zoom Density

I would like to set the zoomlevel on my WebView (WebChromeClient). According to the API WebSettings holds a static method ZoomDensity that should do the trick but I just can't make it work. It looks like WebSettings does not have the method, Content Assistant does not suggest it or show it to me.. Neither the Webview or the WebSettings...

android service running in the background

Hello, I would like to make a service that runs in the background and monitors the quality. I have thought of a separate service that exposes an aidl interface to an activity, the aidl would have some monitor related functions that an activity can call. To give an example of how my service should work think of the ebuddy application that...

how to go to previous activity if the activity is killed by android runtime.(Answer Found)

Hi friends i had a prob with app i.e when i am moving to the previous window the control goes to the splash screen of my app because the previous activity is killed by android runtime. how to make the previous activity alive. or how to create activity again and how to access it from present activity/.... plz help me....fnds ...

small project in android

I give the description of project My project is like calculator project I have one editbox and 10 buttons in my layout file. i need the logic when i click on particular button editbox will be clear but its value will be stored,so i will use it in the next calculation. so please give me the solution. ...

regarding search hard key behaviour with progress bar (android).

When a progress dialog is displaying and we press search hard key it closes and moves to search bar of phone, even if if the progress Dialog setcancellable value is set false. how can we avoid this? ...

Android: free to update version?

If I purchase a mobile which comes with Android 1.5, will I be able to update it to Android 2.2 or does this depend on the mercy of the vendor? Basically, if I purchase a Netbook, e.g. with Ubuntu 9.10, I can update it without problems to Ubuntu 10.04. ...