android

Image replacement with throbber inside webview - Android

What is the best way of replacing an image with a throbber image inside webview? onclick is responses slow inside webview... ...

Why do we use canvas.save or canvas.restore ?

I know what it does. If I dont use sometimes I can see the difference in alignments, sometimes I dont. My question is if canvas.restore restores the state previous to when it was saved. Why arent the changes made after save and before restore undone ? The changes remain same. Why ? ...

Spinning wheel on Android

Hi all, I am trying to design a widget which looks like the "spinning wheel" (I am not sure it is appropriate name for it) widget that you can use to set up alarms or counters on the clock app provided with HTC Hero. For those who do not know this application, this widget is made up with wheels that you scroll to specify hours, minute...

Using Alarmmanager to start a service at specific time

Hi friends, I have searched a lot of places but couldnt find a clean sequential explanation of how to start a service (or if thats not possible then an activity) at a specific time daily using the AlarmManager?? I want to register several such alarms and triggering them should result in a service to be started. I'll be having a small pi...

Android - Get all sms in phone sent to a peson

I'm new to android programming. just to improve my skills, i started with some project in my mind. when app starts, it will show a button. on click of it, it will allow me to select a contact from the address book. then i want to retrieve all the sms sent to that contact (if they are stored in sms outbox). Is it possible. Can some one gu...

Resolve error while loading 'dexed' JAR on Android

Hi, I'm trying to make a bundle for Felix on Android which may take photos regularly. All the code compiles well and it can be resolved by Felix, but when I try to start it, I get an exception (java.lang.VerifyError) and this trace in logcat : I/dalvikvm( 738): Failed resolving Lbarcode/android/CameraHandler; interface 1 'Landroid/har...

Android application error

Hi folks i developed application with map service and webservices when i run application its became very slow and continuosly it is showing activity not responding force close or wait how to resolve this issue Thanks in advance Aswan ...

When is onBind or onCreate called in an android service browser plugin?

I have adapted the example plugin of the android source and the browser recognises the plugin without any problem. Here is an extract of AndroidManifest.xml: <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> <service android:name="com.domain.plugin.PluginService"> <inte...

How is location accuracy measured in Android?

Does anyone know the proper interpretation of the accuracy measurements returned by getAccuracy()? For instance, are they calculated as: Circular Error Probability (meaning, if i understand correctly, radius of a 50% confidence circle)? Radius of 95% confidence circle? something else? In addition, what are the actual calculations tha...

Misplaced Layout after "home"-button and/or powersave screen

Hi, I have an app which also includes a service with a Notification. Right now I am experiencing the foillowing problem : I start my app which will work fine after couple of minutes the powersave kicks in and I get a black screen I (or hte user) click the Menu-button to dismiss the black screen and to unlock the screenlock Now my (full...

Fancy dynamic list in Android: TableLayout vs ListView

There is a requirement to have not-so-trivial dynamic list, each record of which consists of several columns (texts, buttons). It should look something like: Text11 Text12 Button1 Button2 Text21 Text22 Button1 Button2 ... At first obvious way to accomplish that seemed to be TableLayout. I was expecting to have layout/styling data spec...

"Android Create" call fails in windows 7 - missing JDK

I'm having a problem getting my android dev environment setup in Windows 7. I follow the instructions here, as well as several environment sublinks. I am using Eclipse with the Android plugin. I have installed the Java JDK several times, in various locations (jdk-6u20-windows-i586.exe) - but I am obviously missing something. Every ...

Synchronization in Robotium

How long does robotium wait for a new activity to show up? Is it possible to set the timeout manually for the Solo instance? ...

How to display Progress message ?

Hi all. After login button click I am waiting for the webservice response. At that time I need to display a progress message after receiving response I have to close that message. How to do this ? ...

is this Map API key Problem in Android?

Hi folks, I am using 2 map Activities. do i want to register multiple Map APi key for each? Now I am getting this exception: 06-16 18:49:41.498: INFO/MapActivity(11067): Handling network change notification:CONNECTED 06-16 18:49:41.498: ERROR/MapActivity(11067): Couldn't get connection factory client I googled about this exception. I...

Is there any way to tell what folder a drawable resource was inflated from?

Does anyone know of a way to tell which folder Android system will resolve to when I request a particular drawable from the Resources (drawable-long vs. drawable-notlong, for example)? I want to make sure it's loading resources the way I would expect it to (for instance, to make sure the Tattoo is really ldpi and not mdpi since it's rig...

how to use intent from receiver android

hi ive got a working sms receiver but when i try to load another class using: Intent intent = new Intent(SMSReceiver.this, SMSNotifier.class); startActivityForResult(intent, 0); i get the error: The constructor Intent(SMSReceiver, Class<SMSNotifier>) is undefined for the first line and: The method startActivityForResult(Inten...

Usuage Of Eclipse for BB and Android Development

Hello Guys,I am basically bb programmer and i used NetBeans ,BB JDE for BB development. I am partially switching over to android also.So i want to know how to use Eclipse IDE that should be compatible to Both Blackberry JDE and android SDK. What is IDE' that needs to be downloaded .I downloaded BlackBerry_JDE_PluginFull_1.0.0.67.exe. ...

How can I write character & in android strings.xml

I wrote the following in the strings.xml file: <string name="game_settings_dragNDropMove_checkBox">Move by Drag&Drop</string> I got the following error: The reference to entity "Drop" must end with the ';' delimiter. How can I write character & in the strings.xml? ...

Getting Hprof dump for other processes from application code

Hi, In my application , i have an option to capture the hprof dump. I used android.os.Debug.dumpHprofData (String fileName) Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process. Now i am trying to generate hprof data for other proc...