android

Use SMS Emulator from Android Test Case

I want to automate functional testing of my code which works with SMS. I know, that I can use send sms command and sms will be sent to emulator instance. The question is how can I execute send sms command programmatically from my test case, so I can run test without manual intervention? ...

Android Launcher application compilation on Eclipse

I am modifying the Android Home (Launcher) application and configured an eclipse project from the Android source checkout. Eclipse project shows number of errors which are about unresolved imports and unavailable flags. Upon checking in the internet at http://forum.xda-developers.com/showthread.php?p=8402045 , I found that the home appli...

DDMS Error in Android Application

I am using Eclips IDE to develop Android Applications and Android SDK 2.2 Now, I am getting an error that is: when closed the Emmulator in the below console of IDE showing " [2010-10-01 11:08:38 - DeviceMonitor]Sending jdwp tracking request failed! [2010-10-01 11:34:06 - DeviceMonitor]Sending jdwp tracking request failed!" What should I...

Encrypting Data on the external Storage in Android

Hi there, my current project requires to download data in a zip file wich i would like to unzip and store on the sd-card because it might be pretty big. however my client want this data to not be accessable to the user. What kind of encryption could i use, given that the zip contains images and textfiles? Thanks for sharing your ideas. ...

Android Contact api

I use all the Contact Example in mY android Emulator but it is not displaying phone numbers, it only displays names , so can u just give me one example of android Contacts api which import names and numbers form phonebook ...

Exception in Android XML

Hi all, I get an exception every time I launch the application. Here is the stacktrace for the exception 10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute. 10-01 14:...

Android:Biginner::: AudioRecording Errors

10-01 14:10:28.269: ERROR/audio_input(31): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value 10-01 14:10:28.269: ERROR/audio_input(31): VerifyAndSetParameter failed 10-01 12:45:47.989: ERROR/PVOMXEncNode(31): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle Pls h...

List in app widget

Is it possible to have a list with dynamic amount of items in app widget? ...

Looking for the android.net.iConnectivityManager

I founded this class with the function: setBackgroundDataSetting, on kiwidoc.com. I just need this function for my application. But like the site say's: "This class is not part of the public API.". I can not use it in my IDE. So i googled around looking for this iConnectivityManager, but i just can not find it only more documents. Sh...

TCP/IP Streaming in Android App

Hi All, I'm porting an app that I've already going working on Windows to Android. The premmis is the same, the server is continually sreaming out data packets and the client reads them in. The problem I have is that whilst the orginal app works just fine, the Android App connectes okay, but looses loads of packets - is there something ...

android Eventhandler like in c#

Hi, I just start developping on android and i'm missing the EventHandler from c#. As a learning process, I started to write an EventHandler in java. It's almost good execept the method: getSlider_WantedValueChangedMethod() I need to get it through reflection, and the name is a String. So when you refactor, It will not change. What do you...

Bluetooth on Android

Hi, I want to do a sample bluetooth program in android,please suggest me good sample program ...

Android: adding a bitmap texture to a non rectangular item

I have a widget which looks like this: Every cone is a "touchable element". Now I want to put a bitmap texture above each cone. However, bitmap images are all rectangular, so a bitmap texture above one cone would interfere with the bitmap texture above another cone. I'm wondering what is the best solution to this approach. Should I j...

Android/Java - Date Difference in days

Hello i am getting the current date (in format 12/31/1999 i.e. mm/dd/yyyy) as using the below code: Textview txtViewData; txtViewDate.setText("Today is " + android.text.format.DateFormat.getDateFormat(this).format(new Date())); and i am having another date in format as: 2010-08-25 (i.e. yyyy/mm/dd) , so i want to find the di...

Menu Intent in android

I have this menu example But in this example new activity is not called, please give me the solution package Com.ContactProject; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.MenuInflater; import android.view.Menu; imp...

how do i do authentification on android

Hi, I need to authenticate to use a rest web service. I make a HttpClient httpclient = new DefaultHttpClient(); an there must be a way to use UsernamePasswordCredentials on that client. Can somebody please point me to a relevant example? I have found some source code uding the HttpClient class in the org.apache.commons.SOMETHING...

Tryng to update my widget with no result

Hi, i'm tryng to create my first widget. To make a experiment i'm tryng to visualize a Toast every update but it doesn't appaire. This is my manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.skatephone.smokecounter" android:versionCode="1" android:versionName="1.0"> <application android:...

How to find out carrier's name in Android

How can I find out carrier's name in Android? ...

android classcastexception on activity startup

hello, i have a simple activity program in android. basically the class just extends Activity. But when i start it i get a ClassCastException in the constructor of my class. i dont even have a constructor defined, so it must be in the constructor of the superclass which is Activity. unfortunately the debugger doesnt give any detailed in...

android: response from market activity

Hi I am trying to make an app that opens android market page of selected app & lets user download it.I have used below intent to open market. Intent intent = new Intent (Intent.ACTION_VIEW); intent.setData (Uri.parse ("market://details?id=" + PackageName )); intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK); startActivityFor...