android

Android ListView Divider

I have this code: <ListView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/cashItemsList" android:cacheColorHint="#00000000" android:divider="@drawable/list_divider"></ListView> where @drawable/list_divide is: <shape xmlns:android="http://schemas.android.com/apk/res...

Android email chooser

I am writing an app that needs to send emails at the end of each transaction. I am doing the following: Intent mail = new Intent(Intent.ACTION_SEND); mail.setType("text/html"); mail.putExtra(Intent.EXTRA_EMAIL, new String[] { emailTo }); mail.putExtra(Intent.EXTRA_SUBJECT, "Send from Android"); mail.putExtra(Intent.EXTRA_TEXT, "Sent fr...

TextView not resizeable

Hello I have a TextView in a ScrollView with a specific background image. My problem is that if the text is longer than one line, the TextView will stretch as much as the screen allows it. I would like the text view's sizes to remain the same (the sizes of the background) <ScrollView android:id="@+id/description" android:layout_wid...

How to make MapView object transparent (alpha)?

All, I have a need to display information on a MapView object. No problems there. The issue is that there are times when the MapView object displays map details that visually compete with my overlay data. So, what I'd like to do is provide a way to "scale back" the MapView object visually by using an alpha channel. bold*Can an alpha...

Can I Make tabs transparent

Hi, I have four tabs in my main screen of my app using tabhost which contains four listviews. Is it possible to make these tabs transparent so I can use a background image for the tabs to sit on top. If so how would I go about it, and canm it be done with the code I have. public class Tabs extends TabActivity { @Override public void...

Set default background behind an activity's layout

I have an activity with its layout set to an XML file. the root layout is a RelativeLayout and i am setting the background to this layout via rootLayout.setBackgroundResource(R.drawable.default_background); this drawable, R.drawable.default_background has some transparency in it. It seems as though the default background of any layout...

Is it possible to use a static analysis tool like FindBugs with Android?

The title says it all. I am relatively new to Android development and a quick google search turned up nothing of interest. Sorry if this is a noob question! ...

In Titanium how do I 'dock' a footer menu to the bottom of the screen?

In Titanium how do I 'dock' a footer menu to the bottom of the screen on Android and iPhone? I want to display 3 icons on the bottom of the screen. ...

Android: How to use Buttons in Preference Screen

I'd like to provide a Button in the PreferenceActivity. The user should be able to set a time (e.g. via TimePicker), but there's no ButtonPreference or something like that. I don't want to use EditTextPreference. So do I have to use a default Button in the PreferenceActivity and save the settings for it manually? Regards, cody ...

Good Resource for rooting an Android Tablet (Archos or Samsung Galaxy Tab)

Not sure if "rooting" is the right term, but I'm looking to take an existing tablet device (such as the Archos), wiping their Android build and apps from it, and putting my own build of the Android kernel on it. (This build would be very minorly modified, but I'd want it to support the hardware of the tablet) Are there any good resourc...

Library speech not found... What should I do??

10-20 18:40:02.097: ERROR/AndroidRuntime(21851): Uncaught handler: thread pool-1- thread-1 exiting due to uncaught exception 10-20 18:40:02.102: ERROR/AndroidRuntime(21851): java.lang.ExceptionInInitializerError 10-20 18:40:02.102: ERROR/AndroidRuntime(21851): at com.google.android.voicesearch.RecognitionActivity.startRecogniti...

Problems changing the style of certain items in a ListView

I have a ListView of TextViews and to highlight one of these, I want to make the TextView bold. This only works if I don't scroll the ListView. After I scroll, the boldness changes to a different position. Does anyone know why, or how I can solve this problem? ...

Android ListView Laggy and Child Views Shrinking

I am programatically building a ListView that does FILL_PARENT for width, and WRAP_CONTENT for height, then centering it in its parent view. The ListView is semi-transparent so the activity behind it is visible, so I use: list.setCacheColorHint(0); list.setBackgroundColor(Color.argb(200, 0, 0, 0)); Other than that, it is a completely ...

Android: How can I detect manufacturer and change program behavior

Hello, I have an app that I have written that works fine on the Samsung Galaxy S series (I have a captivate). However, the app apparently doesn't work on the Droid's as Motorola has laid out the file structure differently. I'm looking for a way to detect the manufacturer so that I can switch out program behavior. Does anyone know an ...

MediaPlayer on Android platform

Hi all, Currently i am working on the online Audio Streaming in android.I need to initially pass the TotalMediaLength in KB as well as in seconds also.. How to do this? Thanks in advance.... ...

Accessing intranet in Android emulator

I'm trying to test an intranet site in the Android emulator, but I can't seem to get the emulator to access our intranet. For example, the site I'm trying to access is at http://compass/messages, but trying that page in the browser gives me a Google search result page instead of the intranet site. I can access the INTERNET with the emu...

Delveloping for Android high res screens, but supporting low res screens.

I've been developing Android games for the lower res screens (320x480) and then letting Android handle the density adjustments so the games work on high res screens. It allows me to keep the size of my APK files small and I don't have to create multiple versions of every image in my games. It actually works fine, the games still look n...

"DeviceMonitor]Sending jdwp tracking request failed!" in Eclipse / Android

I'm a noob learning Eclipse and Android. Whenever I close the emulator I get "DeviceMonitor]Sending jdwp tracking request failed!" in the Console tab. Infact that seems to be the ONLY thing I get in the console tab - I don't get all the emulator loading messages and other things I used to see. Everything else seems to work, I can...

Android Service is process or thread

Android "Service" is a process or a thread according to operating system? ...

Dynamically unregister/remove intent from activity intent filter.

Is it possible to dynamically unregister an intent that was registered with an activity's intent filter in its manifest file? ...