android

How do I prevent ListView footer from becoming selected?

I have a ListView which can be navigated with the dpad. It has a footer. I want to prevent navigation into the footer with the dpad. I have set focusable and focusableInTouchMode of the footer view itself to false; this makes no difference (so I deduce that it is not actually focus I am seeing, but rather selection). How do I prevent...

Application background image with transparent activities

Hello guys, hope you guys can give me a hand now! this is tricky to me I have run into an requirement of my application that i cant find a way to do this. I need my application to be fullscreen and no title bar (done), and this application will have a background image. However, all the activities/views of my application must be transpa...

How do I perform Visual search using Android API?

I want to use the Camera Image to get the google search results. I could not find a way to do that using Android API. ...

Displaying soft keyboard whenever AlertDialog.Builder object is opened

My code for opening an input dialog reads as follows: final AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Dialog Title"); alert.setMessage("Request information"); LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.edittextautotextlayout, null); final...

how to display a list of checkboxes using dynamic data

In my apps preferences screen, i want to pop up a dialog that shows a list of checkbox items that are dynamically generated. How does one do that and also, how does one get the checked values? I have made custom dialogs in the past, but for some reason my brain wont function today ... Thanks. ...

Nested inner Activity class in android

Is declaring a class that extends Activity inside another Activity class possible? If it is, how would I register that class in the manifest? Also, is that something that can be reasonably done or is it a bad idea? I was thinking of something like class ListClass extends ListActivity{ ... ArrayList items; class ItemClass ...

Remember password popup on Android webview problem

Hello, this is is a pretty straight forward question, I need to detect when the default Remember password popup opens on the Android Webview (So I can make sure I am not covering it with any other component, or at least bring it to the front) Thanks a lot, this community has been very helpful for me. ...

StateListDrawable in ListView strangely off-colored in certain conditions

I have created a ListView with TextViews as items - most of which have a certain color as background, but some have a custom @drawable/shape as background (i.e. the top and bottom items, which have rounded corners). These backgrounds are set as part of state-lists, to provide another background color when the items are tapped. The listSe...

Android Market application Url ??

Hi , Is there right way to get Url to android market app ? I read some answer here but I did not success to get any ? ...

Audio Input on Android Emulator

How can one get audio input on the Android Emulator? I'm using the 2.2 SDK, and emulating on Ubuntu 10.10. I have the hw.audioinput property set to yes on my emulator, but I get the message "Recognizer not present" when I run the Voice Recognition API demo app on the emulator. On my phone, of course, it works fine. I'm trying to use ...

Android, LinearLayout scroll

I have lot of items on the screen, and I need to use Scrollbar so the user can go down, But the scroll is not visible, How is posssible to addd scrollbar to a liniearlayout? ...

How do I make my app look like a standard Android app?

Hi, I notice that most android apps have some sort of standard in that they all look similar. Most of them have some sort of list of Text that are click-able. It's somewhat hard to explain but they look really nice and I was wondering is there some sort of tool or api that allows me to change the look of an app to make it similar? Or ...

what is the bug in this android layout xml chunk

Hi, When I try to debug my app I get a runtimeexception when I include this xml in my layout. I cannot see what is wrong with it, can you? I am using android eclipse plugin, eclipse 3.5.2, with the latest android plugin and the latest java 6...21 on winxppro 32 bit sp3 Thank you. <ImageButton android:id="@+id/map_button" android...

res/ directory tree

I'm going through some book which tries to teach android development. In the book, the author outlines some of the directories found under res/. He mentions res/menu which holds XML based menu specifications. He also makes mention of res/raw which holds "general-purpose files." These folders were not created when I created a new android ...

Google's voice search speech recognition service

Google has speech recognition services available for use from mobile phones (Android has it built in, iPhone users can use the Google application) - http://www.google.com/mobile/. We've found one article where someone tried to reverse engineer the service at http://waxy.org/2008/11/deconstructing_google_mobiles_voice_search_on_the_iphone...

Admob in android. How to make it appear and disappear

I am new to programming in android. I have followed instruction and create a admob banner. How can I make it appear at certain intervals, and make it disappear if I want to? For example the admob banner can goes up and down at the bottom of the screen whenever it wants to. Thanks. Edit: I know that i can call adView.setVisibility( Vie...

How to gain control of trackball in Nexus One Android.

I'm kind of new in android AOSP development, and I'm trying to click to the trackball and launch an app already installed (Camera App). I'm looking at the policy.androdoid, but i just doesn't understand how to gain controls of the hardware buttons and where to start. Any help, source code example or something like that will be really h...

Why won't the onDraw method get called when attaching its View to a ScrollView?

Hi All. I'm trying to create a sample project using the ScrollView. I want to be able to draw a simple graphic, which is taller than the device screen height, in a sub view of the ScrollView such that it will vertically scroll. If I modify my below code slightly, such that I setContentView(cv) instead of setContentView(sv), the onDraw me...

error in javax.xml.bind .messages

When I try to use error in javax.xml.bind .messages in android app it give error...............can't find resource for javax.xml.bind .messages ,bundle key en_us ...

Extending Android's Voice Search app

Is it possible to extend the Voice Search app? I know I can add a button in my own app to launch the voice recognition dialog, but I was wondering if I could extend the voice search app that launches automatically when you long press the physical "search" key. send text to [contact] [message] listen to [artist/song/album] call [busines...