android

How to call the java script function from android

Hi to all I am new to android. I create a javascript function to generate the graph using RGraph.Now i want to send the data for the graph parameters from android java file.For that i want to access the script function in the android java file.Could anyone tell how to do that in android.Pls help me Regards, Satheeshkumar ...

How to listen to a closed activity from a widget? (onActivityResult is only in Activity)

I have a widget that launches an activity, but when the activity finishes using the finish() I don't know how my widget can know about it since I can't override onActivityResult() which seems like the only way to listen when an activity closes... Anyone know of another way to listen for when an Activity closes when it is a widget that ...

Android:To set an item as selected when the ListView opens?

Hi, An activity has a Button and a ListView. Initially, only the Button is visible. When the button is pressed, the ListView is displayed. When displayed, is it possible for me to show one particular item as selected/focussed? A use case could be that suppose it is a list of language settings and when the list opens, the currently sel...

Android Dialog with dynamic text (API level < 8) killed on rotation

I want to create a dialog with a string that I build at runtime. It looks like API level 8 allows you to call showDialog with a bundle, but I have to write an app that will run on the older OSs. How do I create a dialog with something like a simple error string and make sure it doesn't die when I rotate the screen. I realize if I over...

configure an android application using property file

Hi guys, i have an andrid application. i need to install in diffferent devices with different configuration. i kept it in res/raw folder. the data in that file is like (key=value). Can i access the value by passing the key?? can i change the .properties file from outside the application??? ...

Android Contacts Sync

Hi, I am new to the Android Development, Please tell me how to read contacts from Phone and how to add new Contact to the Phone. ...

Access C# .net web service in android

How can I use .net web services using android? My code is like this... package Webservices.pck; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.widget.TextView; import android.app.Activity; ...

disabling and greying out list items

I have a list view. In that list view, I have to grey out and disable some items, and enable the rest list items with seperate color. How to do this? ...

Bluetooth A2DP profile

I am completely new to bluetooth app development. what exactly is a bluetooth profile? is it a hardware specification for the device? can an android mobile phone with bluetooth act as sender and receiver in A2DP profile? ...

Addon sdk documentation template

Hi, I'm currently porting Android on a development board and I add some new hardware peripherals for my project. To allow app developpers to access those peripherals, I've developed an addon-sdk. I'm able to generate corresponding documentation for the addon but I wonder if it is possible to use the android developper doc template? T...

Android: Only one Looper may be created per thread

Hello everyone, I am having a problem with Android looper. I have a class that has extended AsynTask. Inside doInBackground() method i have Looper.prepare() and some code below. It runs well and good for the first time but after that it gives an exception " Only one Looper may be created per thread" . There seems some solution...

Android : Finish Activity from other Activity

hi, friends, I am having application in which i am using menu , on tap on menu item i am redirecting to specified activity. I want to make sure that when i am redirected to another menu item my current all activity should be finished to reduce the stackflow of the activity and better performance. So when i tap on back from my tapped a...

How to change cursor style in android?

I have different views on my activity. I wanna change my cursor style when cursor is move to any view. How to do same in android.For example there is a normal cursor on the android activity when cursor moves to a button i wanna change cursor style normal to finger style. ...

launching android widget

Hello, I am following http://www.helloandroid.com/files/xmaswidget/android_howto-hellowidget.pdf for developing a widget. I am unable to launch a widget on to the home screen. When running the application I am getting the errors like No Launcher activity found and The launch will only sync the application package on the device! Looking f...

how to scan barcode using phonegap

I need to scan a barcode using phonegap in Android and iPhone. Is there a way to do this? If yes, please share links. ...

how to judge the scrollbar of the listview to the bottom

i just want to append more data to the listview only if the listview has already been scrolled to the bottom,but i do not know how to judge that.Any ideas on how this could be implemented? ...

[android] startService() from the service class itself

Hi! I try to start an android service from the service's class. The reason to do this is to achieve some platform independence. Doing this I get a NullPointerException at android.content.ContextWrapper.startService(ContextWrapper.java:326). The platform target is 2.1-update1, any suggestions? See the code below (I left the imports out...

Is it possible to get incoming call data to application in Android

Hi All, I would like to know if we can get Incoming call data to the application in Android. I will be using this incoming call data to record the call or for the purpose of call streaming from my application. I read Audio manager and Telephony manager class provided by Android , but I could get an API which can give the data of incom...

Android 1.5: Implement clock widget using pictures as numbers , and getting user location

Hi everyone, I'm trying to code a clock widget in Android 1.5 for my application, which uses images as the numbers, and updates every second. I'm hoping to have the clock widget extend the View class, so I can use it directly in the layout.xml files. I need some help/tutorials on getting started on the clock, and also about how to get ...

Instant signal strength

HelloZz, I need to find a way to measure the current signal strength of Android phone, without the need to register a PhoneStateListener that God knows when it returns the actual asu. something like: int signal = getPhoneSignal(); any help plz? thanks! ...