android

Routing audio to Bluetooth Headset (non-A2DP) on Android

I have a non-A2DP single ear BT headset (Plantronics 510) and would like to use it with my Android HTC Magic to listen to low quality audio like podcasts/audio books. After much googling I found that only phone call audio can be routed to the non-A2DP BT headsets. (I would like to know if you have found a ready solution to route all kin...

android view url in xml layout

I have a layout that I have set up with the android xml layout. I would like to embed a link in a text view so that if you click on the link, it opens in the android browser. how is that done. There does not seem to be a url view or anything. ...

Error Message: The page contains too many server redirects

I have a website that I want my android visitors to see. It is created in Joomla 1.5. The problem is that sometimes I get the message "The page contains too many server redirects" on my G1. Does anyone know what this means or how I can fix the problem? ...

Trying to draw a button: how to set a stroke color and how to "align" a gradient to the bottom without knowing the height?

Hey. I am creating a button programmatically. It is rounded and has a gradient background, and works fine and looks nice, but I couldn't do two things I wanted: Set a 1 pixel stroke with a given color. I tried getPaint().setStroke(), but couldn't figure how to set the stroke color. How should I do it? Align the gradient to the bottom o...

StartActivity intent fails when certain apps are running

I am running into a critical conflict of sorts. My app is a remote service which essentially starts an activity when the screen goes to sleep. How it does this is very simple via screen off broadcast receiver and then an explicit intent to start the activity as a new task. The activity is basically in charge of responding to key events a...

How to catch call intent from Htc Hero Dialer

Has anyone found a way to catch outgoing calls from the Htc Hero Dialer? I currently use the NEW_OUTGOING_CALL intent in my app and this works for the standard Android dialer but not for the Htc Hero one. The hero dialer seems to not fire that specific intent. Is there any other way to achieve this? ...

Cannot get resource from android application

I am buiding an Android app, and I have a problem to get resource from string.xml. I need to have an URL in String.xml that will be used several times through the app. I tried Resources.getText("my_url"), but this does not work. Eclipse complains when I use this. Do you think this is the best way to do ? ...

Importing org.apache.commons into android applications

Hay, how do i import org.apache.commons packages into android so i can use them in my applications? Thanks ...

android, cannot align icons on the right in listview's row

Hello, I am currently working on my first android app. In a listview, I need to have the following organisation in each row: On the left: one main icon on which takes the whole height of the row On the middle: 2 texts, one below the other On the right: 2 icons, one below the other I end up with a row.xml file like this, but that does...

Test data sources in Android unit testing

I want to test parsing of data returned from server. I thought I might create several test XML files and then feed them to the sax parser which uses my custom data handler (as in the application that I test). But where should I put those test XMLs? I tried with [project_root]/res/xml, but then I get the error: android.content.res.Re...

Android - Any way to test Gestures on the Emulator?

Was wondering if there's any way to test Gestures (eg: Fling) on the Emulator. I saw a project on google code that lets people simulate the accelerometer, but none of Gestures. ...

Developing Android applications on a shared server

Hi! We are trying to use a shared server (Ubuntu 9.10 64-bit) to develop Android applications. The thought is that a number of developers should use the shared server for development. We have overcome some obstacles such as setting the base port for DDMS. So it is possible to run multiple emulators and multiple instances of Eclipse. B...

how to get a value as htmltext on textview in android?

Hi, I have a string that contains some tags(<p>,<img>,etc). Tell how to handle these tags in textview. Thanks in advance. ...

Android - How to display a dialog over a native screen?

I was wondering if anyone can tell if how to pop a dialog screen up over a native Android screen? I currently have an application that traps an outgoing call and stops it, I then want to pop up a dialog that would take over from the dialler screen and alert the user that there attempt to call has been blocked and allow them have some ne...

Alert dialog popping late

/*I have some wierd problem, inside OnMenuItemClickListener, i am calling an alert dialog which i made, but it seems like, when i call the alert dialog, it doesnt show it on right moment, only after onMenuItemClick finish. what am i doing worng? */ class MyListMenuListener implements OnMenuItemClickListener { private St...

Troubles with Unicode string encoding in Android

I get strings in different encodings (ID3 tags). I use e.g. new String( bytes, "UTF-16LE" ) to decode them. On my device (Motorola Milestone) and in the emulator, this works fine. But some users complained they get results like "T i t l e n a m e". I've tried the Sun codepage names instead (e.g. "UnicodeBigUnmarked"), with the same res...

android style is not taken into account

Hello, I have a problem while creating styles in android: When I use android:textAppearance="?android:attr/textAppearanceSmall" in Button for instance, that's working fine, but if I create a styles.xml like: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="smalltext" parent="@style/Text"> <item name="and...

Android read error log from handset

how can i read the error log applications make ???? is there any software which reads error log from handset and display ?? i dno't want to debug the app using eclipse only handset based error log viwer is required ? ...

Can anyone explain the File() parameters used to download file in android ?

In Reference to this android file download problem http://stackoverflow.com/questions/576513/android-download-binary-file-problems Can anyone explain what does this line mean in the code FileOutputStream f = new FileOutputStream(new File(root,"Video.mp4")); And what does it mean by the parameter root within the File(). Do I need to...

Background from PreferenceActivity is not applied to sub-PreferenceScreen

Hi, I am testing my application on a Nexus One and i have some problems. My theme is Light and when an inner sub PreferenceScreen is displayed, the window background becomes black instead of keeping the PreferenceActivity's one. <PreferenceScreen android:title="main preferences"> ... <PreferenceScreen android:title="sub screen...