android

Android "hover" event in custom layout

I have a custom layout that I have written that basically just displays a bunch of ImageViews. I am handing onTouch events for all the ImageViews in my layout. However, if a user touches one imageView and then drags over another ImageView, I would like to be able to handle that as well. How would I go about capturing this behavior? ...

How to find easily the source of an android class

HI all, I know I can access android source code from http://android.git.kernel.org/, but it's hard to select the right git repo if I only know the package and the name of an android class. Isn't there a way to locate a file in http://android.git.kernel.org/ ? Thanks in advance ...

I-Phone VM for Android

I'm considering opening up a project to create an i-phone virtual machine for android 2.0 (read motorola droid) before i do so i have some questions: Does one already exist that i just missed? Can the the Droid's Arm Cortex A8 down-clocked to 550MHz (thanks wikipedia) handle an I-Phone abstraction layer? Performance wise the best thing...

Android: view/ drawable custom styles possible?

What I'd like to do is change the state (really, the background) of an EditText to reflect validity of its contents. E.g. if the user enters 999 where 999 is contextually invalid, the EditText should have a red border in place of the default orange border, likewise once the text is valid it should have a green border. Methods I've expl...

Is it worth purchasing Google Android Dev phone?

I've been intrigued by all the android world since I first learned about it and would like to get my hands dirty developing for it. The question that comes to mind is if it's worth buying the unlocked phones that Android sells directly or not. Those phones (link) quoting the Android page: Run and debug your Androidâ„¢ applications d...

Move layouts up when soft keyboard is shown?

I have a few elements in a RelativeView with the align bottom attribute set, when the soft keyboard comes up the elements are hidden by the soft keyboard. I would like them to move up so that if there is enough screen space they are shown above the keyboard, or to make the section above the keyboard scrollable so the user can still see ...

Start Android Market from App

I'm developing a lite version for an app on the Android. How can I start an Intent to open the Android Market, preferably with the full version of my app displayed? This is difficult to test on an emulator (which is the closest thing to a device I have), as there seems to be no legal way of installing the Market on it. ...

Android: how to get the intent received by a service?

Hi I'm starting a service with an intent where I put extra information. How can I get the intent in the code of my service? There isn't a function like getIntent().getExtras() in service like in activity. Thanks. ...

Google MapActivity Exception ?

Have you seen this exception : I am trying to make Satellite Map view for my application. But no succeed, when start activity that calls Satellite Map Activity following exception throws : 12-27 12:08:34.895: INFO/ActivityManager(591): Starting activity: Intent { comp={com.mydomain.ca/com.mydomain.ca.SecondActivity} (has extras) } 12...

How can I get an Android TableLayout to fill the parent in landscape mode?

I am using a TableLayout in my application. It contains four TableRows each containing four ImageViews. The behavior I want is to scale the layout to fit the shortest dimension. It works fine in portrait mode but fails miserably in landscape mode. From the documentation it looks like this is because the TableRow layout_height is always...

How to zoom in by giving coordinates ?

Hi guys. How to zoom in by giving 2 coordinates(2 Locations) ? Is there API method for android ? Thanks in advance. ...

MapView navigation movement?

Hi guys I am trying to make mapView can be moved when navigation movement (when user click device arrow key left, right, up, down). How to make it ? Thanks. ...

OAuth instance state in Android

I'm trying to use OAuth in an Android app. I have it working correctly but have sometimes run into a problem during the authentication phase. In Android, I launch the browser for the user to login and authenticate. Then the callback url will redirect back to my application. Here is the problem. My application has a OAuth consumer and pr...

Streaming Audio from A URL in Android using MediaPlayer?

Hi, I've been trying to stream mp3's over http using Android's built in MediaPlayer class. The documentation would suggest to me that this should be as easy as : MediaPlayer mp = new MediaPlayer(); mp.setDataSource(URL_OF_FILE); mp.prepare(); mp.start(); However I am getting the following repeatedly. I have tried different URLs as we...

The basic OpenGL sample always freezes in Android 1.5 when changing orientation

Hi, I have begun learning OpenGL ES under Android 1.5 (I use the emulator and an HTC Magic device). However, even for the simplest of their samples, the one that only renders a blank screen, if you switch the orientation several times (switching like ~5 times between portrait and landscape is usually enough), the app freezes and I need ...

Turn off buttons' backlight

Hi there, I'm developing an Android application that might be used at night. Therefor, I need to turn off the buttons' backlight. How can I do this? On my own phone the backlight turns off after a while, but on the Motorola Droid I don't think this happens. I'm using a wakelock to keep the screen on. Should I use another flag or how ...

Cannot run my APK in archos5IT

I would like to know how to run a HelloWorld application directly on my Archos5IT and not on the emulator. It doesn't work at all !!! I developed an application and I would like to try it on my Archos, but doesn't work, so I went down to the HelloWorld but nothing works... Any ideas? ...

Camera preview UI overlay on Android ?

How do I write code which layouts UI elements (Buttons, etc) over camera preview on Android ? ...

Android emulator alternative

Hi, I'm completely new to Android development, but I just got a HTC Hero and would like to develop a few applications for it. However, I've use a laptop as my dev machine and the emulator is extremely slow. It took around 10-15 mins to boot up and although I could leave it on, it generally slows down the system when using other applic...

android layout question

Hi, Currently I'm working on a dialog which consists of title, description, tags and footer. The title can be long and in this case the text should automatically be displayed in multiple lines. The description is also longer and should fill multiple lines. At the bottom of the dialog has to be the footer (also if the title and descripti...