android

RuntimeException from Google Analytics for Android "sending message to a handler on a dead thread"

I am using Google Analytics for Android to track events, page views on an Android app. When calling the tracker's dispatch method, I receive a RuntimeException: 07-12 18:02:05.594: WARN/MessageQueue(12823): Handler{44a08620} sending message to a Handler on a dead thread 07-12 18:02:05.594: WARN/MessageQueue(12823): java.lang.RuntimeExce...

Linkify to call java code

Is there a way to have a Linkify'd link call a method in my Activity or am I only allowed to use Linkify to create links to other activities / apps etc.? ...

How to capture key events inside a service?

I want to be able to capture key events inside a service I am writing. I can do this inside an activity without problems, but all my attemps to get this working in a service have failed. The key I wanted to capture (globally) is the BACK button, but if this is not possible any (hardware) button a HTC Desire offers would be OK. ...

Android: Show mms photos in application

I want to show mms photo attachments in my application. I know how to read photos with output streams, ect... But where do I point my uri? ...

how to access a WIDCOMM based bluetooth device on android ?

I am trying to access a data stream from a bluetooth device which is WIDCOMM based. I tried opening an RFCOMM channel from android and the ASCII display just gives me blank lines. I learnt that the device is WIDCOMM bluetooth stack based. I am new to developing bluetooth applications and I would appreciate it if anyone could help me wi...

Can android bluetooth accessories force the device to launch an application?

I am wondering if a piece of hardware can be developed (probably over bluetooth for example) that could launch an existing android application on your device. I can't seem to find any documentation on this kind of functionality. Has anybody come across this? ...

Problems with using PreviewCallback at Android 1.6

Hi, i'm developing an app for Android 1.6 on an Zii EGG Handheld. I need to get the preview image of the camera. So i tried to get the image with the PreviewCallback function, but the onPreviewFrame() method is never called. I can only see the preview image on the surface. But my code seems to be right accroding to the documentation and ...

How can I go back to my main activity after starting the Settings activity?

Hi, when the device is not connected to the internet, I send the user to the settings startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS) but then I'm stuck in the settings page. How can I go back to my main activity? thanks Jul ...

android emulator does not recognize Hebrew font

android emulator does not recognize hebrew font where my phone does how do I install the Hebrew font on my emulator . ...

Sending Android app to friend

Hey, this might be simple but I dunno how to go about it. I have an app that I'm working on, and I'd like my friend to take a look at it. How can I go about sending them the apk package so they can play with the app? ...

Return data from dialog

I am using a dialog as a form for the user to input data. When they click the "OK" button, the dialog is closed, and I need to use the data that was entered. How can I reference this data in the activity once the dialog has closed? ...

Enum in Activity

I have trouble understanding the following thing: in my localized application I have an Enum in an activity that stores some localized strings (R.string.aString...) which are compared against another localized string. If while in application I change the locale and I came back and start the Activity that contains the Enum I observe tha...

Android Dev : NO EC/IO?

Wondering how to get the EC/IO value on the Android Nexus One phone. Actual methods given by Android class android.telephony.SignalStrength are: /* Get the CDMA Ec/Io value in dB*10 */ int getCdmaEcio() /* Get the EVDO Ec/Io value in dB*10 */ int getEvdoEcio() The problem is: I am on an UMTS / WCDMA Network, so, there is no wa...

Android 2.2 Screen Lock Security

Is there a way to find out if a user has the PIN lock or password lock screen security set? I know that you can check Settings.Secure.PATTERN_LOCK_ENABLED to read if the pattern is set. Even a value to read that shows if ANY security is set would be helpful. ...

How to make Android Virtual Device access the internet?

The internet is not available when I access it from the Android Virtual Device, any idea how can I configure it to do so? ...

Developing to all devices

Is there any way with the Android SDK to emulate a specific device ROM? For example, could I launch an emulator that replicated the Verizon Droid Incredible, or the Sprint HTC Hero? ...

Access data members of background service

Hi, I have an Activity communicating with and directly accessing a background Service's data members through get functions. The problem is that I can't seem to be able to access the actual data members. For instance, I try and get an ArrayList with a few items in it but I just receive an empty ArrayList. This code is almost directly fr...

Android Eclipse, Dropbox, Windows and Linux

I'm using my Dropbox folder to store my Eclipse workspace in (instant back ups) but want to develop on both Linux and Windows. (I think) the workspace file stores the location of the Android SDK which is different on both machines /home/android... and c:\android. Is there any way of developing on Windows one minute and Linux the next? (...

New Devolper where do i start? Android.

Title says mostly all. Where do i need to look and what do i need to know before starting Developing Android apps. ...

How to layout TextViews side-by-side with spacing in android?

I have a very simple layout with two side by side textviews. Both have the same parent layout that fills the screen horizontally. I need them to have a visible space between them so that they are visually seperated when both have text. I also need the left textview to take up about 2/3 the screen width and let the other have the rest....