android

How can I enable vibration and lights using the Android notifications api ?

I have created an application that creates notifications, using the following code: // notification Notification notification = new Notification(R.drawable.notification_icon, title, System.currentTimeMillis()); notification.flags |= Notification.FLAG_AUTO_CANCEL; // parameters String ringtone = prefs.getString(context.getString(R.strin...

Developing Android REST client applications

Referring http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html. Can any body provide source/links which implements such a design? ...

Is it possilbe to read and/or modify the SMS header on Android?

I am developing an Android application for 1.6 and above that sends and receives SMS messages through a port. To send the SMS I am using the method: SmsManager.sendDataMessage(String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) but have discovered tha...

How can i create dynamic rhythm graph in android..

Hi! i have to create a dynamic graph in android .... picture is given below.. Please guide me..... ...

Animation paths/patterns in Android?

Hi there Just wondering in my Android game if there is a formula/function that would make animating an object across the screen in a 2d environment quick and simple. Of course if it just in a straight line then i would only need to increment the X co-ordinate for example every time a frame was rendered, however I'm looking to use more ...

Is it possible to pair BluetoothDevice programmatically android?

Hi, Currently Iam using backport.android.bluetooth2.jar file for bluetooth programming with Android 1.5.Whenever device pairing fails it populates alert dialog for passKey and if i give passkey then in my log iam getting below error 07-21 12:25:52.419: WARN/BluetoothDeviceService(948): setPin(00:0E:6D:BA:89:F3) called but no native data...

How to display buttons above tab widget on Android?

I'm trying to add buttons above a tab-widget but they are always displayed under the tab-widget's tabs. The buttons are displayed on front layer so that they appear on each tab. Does anybody have an idea is it possible at all to display any widgets above the tab-widget? Here's an example layout to give some idea on the placement of th...

Where to place twitter4j.properties in android project?

I'm developing Twitter application with xAuth support using twitter4j jar file. I want to place my consumer key/secret in twitter4j.properties file. Where should I put this file in directory structure? ...

Android alpha animation fadein fadeout with delays

I want to do a very simple alpha animation but I cannot find a valid way. The idea is to perform this animation over a view: alpha from 0 to 1 of 1 second hold alpha at 1 for 5 seconds alpha from 1 to 0 of 1 second hold alpha at 0 for 5 seconds. start again on 1. I've tried to implement that with an AnimationSet as: AnimationSet an...

how to get the file path in the android 2.1 device?

I create one application in android that will download the ics file from mail attachment.When i select the ics files in the downloads folder i can able to read the data of the file. This works fine in the emulator only. But in the device i can't able to read the file data.I use the following code to select the path of the selected file i...

set 2 proximity alerts with the same broadcast

Hi, I create a proximity alert in this way private void setProximityAlert(float radius, double lat, double lng, String place) { long expiration = -1; LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Intent intent = new Intent(TREASURE_PROXIMITY_ALERT); intent.putExtra("lat", ...

How to get return value from javascript in webview of android ?

Hi every one, I want to get a return value from javascript in android. With Iphone, i can do it, but Android, i can't. I use loadUrl but return void not object. Anybody help me ? Thanks ...

android with sqlite

can anybody give example how to connect sqlite with android? Thanks in advance ...

Creating a shortcut: how can I work with a drawable as Icon?

Hello, Below is My code to create a shortcut to a selected application. I have really no problem and the application work quite well. The problem is that I am able to create a shortcut with a ressource from my application: intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, R.drawable...

changing background color of a list view

hi guyz, can anyone help me of changing the background color of a list view?. i am new to android and i really need to know this. any help will be appreciated. thanks ...

passing paramters using ksoap2 to .net web service, always passes nulls (empty) values

I am new to android applications,I am using Ksoap2 to access .Net webservice and The call is executed just fine without parameters. But with parameters I am getting Empty. I followed all the steps provided in sites. I tried everything possible but no luck so far. I hope someone can help, private static final String SOAP_ACTION = "http...

Triggering swipe and touch events on a mobile web app? - iPhone/Android

Hi folks, wondering here if there is a way I could trigger an event, so that any library listening for these events (e.g. jQTouch, Sencha touch, iUI, ... ). If I could extend or use jQuery for such task e.g. $(...).trigger('event') that would be great to know. Usage example: I need to debug a few web apps by simulating multi touch ...

Running android unit tests from the command line?

I'm trying to run unit tests on the android platform in accordance with tutorial. Say, for example, I want to run tests for Email application. I open /apps/Email/tests/AndroidManifest.xml file, look for the <manifest> element, and look at the package attribute, which is com.android.email.tests, and in the <instrumentation> element I look...

Perform single SQL query over internet Android

Hi everyone, I am trying to find a way to goto a database located on the web perform 1 query and close the connection. I have not had any luck with finding an answer, and I really don't know how to solve this. Internet connection is not an issue, nor is any security issues. Also this cannot be solved with an internal database and this ...

Problem with Android SDK on Linux with Eclipse Helios

I just installed the Android SDK on my machine. I am running Fedora 13 (64 bit) and the Android kit is r06 for Linux. I am running Eclipse Helios. I get this error when I try to link to the sdk inside Eclipse: [2010-07-21 07:10:23 - adb]Failed to get the adb version: Cannot run program "/home/jmneedham/android-sdk-linux/tools/adb": j...