android

3D Scene graph toolkits for Android

I was wondering if there is any 3D scene graph toolkit available or at least in development for Android? I could not find anything, assuming that all existing solutions for Java won't run on the Android platform. ...

Android Dev Phone

Possible Duplicate: Best phone for doing Android SW development In iPhone land I just got any iTouch to do testing on. In Android land, what kind of a Google enabled Android phone do I need to test apps. Any phone? ...

How can I specify a dynamic height for an ImageView?

I have an ImageView at the top of my display that looks like the following: ╔══════════════════════════════════════════════╗ ║ ImageView ╔══════════════╗ ║ ║ ║ ║ ║ ║ ║ Actual image ║ ║ ║ ║ ║ ║ ║ ║ ...

how to get series of pictures?

i have problems with this, recently i have also problem with just taking 1 photo... do you know how to solve it? any working code? i'm doing it like that: mCamera = Camera.open(); Log.e(TAG, "onCreate"); mCamera.takePicture(null, mPictureCallback, mPictureCallback); Camera.PictureCallback mPictureCallba...

ListView and images displaced in the getView method

hello I have extended an ArrayAdapter to manage a ListView using a certain tamplate (made of 1 ImageView and 1 TextView contained in a RelativeLayout) as row of the list. Anyway I am now facing some optimization issues. As you guys know, not all the rows are rendered at any 1 time but rather you get the rows progressively rendered when...

External USB devices to Android phones?

I would like to use Android phones as a way to do some processing and visualization of a sensor that would be attached to the USB port on the phone. The sensor would plug into the micro/mini USB, and then I would need to read the incoming data from the USB serial port. Is this possible? I have heard of people using Android to steer rob...

Android Launcher Shortcuts

I have made a simple punch in / punch out time clock application. I want to add the user the option of making a shortcut on the homescreen that will toggle the state of the app(time out / time in) but I don't want this shortcut to open up the app on the screen at all. here is my setupShortcut() private void setupShortcut() { Inten...

Android WebView seems to ignore "viewport" information on web pages

I have a website that is using the viewport META tag to tell mobile browsers how to display content ( ). Viewing the page in the Android browser looks correct (and iPhone, etc). When I load the page into a WebView component in an android Application, the WebView ignores the "VIEWPORT" tag, and renders the page at "full" resolution, wh...

Any way to animate new elements in a GridView being added?

My app polls a server every 15 seconds to see if there are any new items to display, then downloads the new items and disposes of the old items so that there are always exactly 100 items in the GridView. Unfortunately, this process can be confusing to the user if they see a page of images change without knowing where the items went. My ...

Any guidelines for handling the Headset and Bluetooth AVRC transport controls in Android 2.2

I am trying to figure out what is the correct (new) approach for handling the Intent.ACTION_MEDIA_BUTTON in Froyo. In pre 2.2 days we had to register a BroadcastReceiver (either permanently or at run-time) and the Media Button events would arrive, as long as no other application intercepts them and aborts the broadcast. Froyo seems to s...

How can we create iPhone-like spinners in android?

Default spinners on the iPhone look a lot better than on Android. It looks like at least one Android app (UrbanSpoon) has been able to replicate this control, and it's awesome: http://www.urbanspoon.com/android Anyone have any ideas on how to create this? Code would be helpful. Thanks, -g ...

Android image fetching

What is the simplest way to fetch an image from a url in an android program? ...

Android List View Drag and Drop sort

I have a list of records in a listview that I want the user to be able to re-sort using a drag and drop method. I have seen this implemented in other apps, but I have not found a tutorial for it. It must be something that others need as well. Can anyone point me to some code for doing this? ...

Java mobile: Android or Blackberry?

Hi all, Most of the questions on SO has been too generic, comparing iPhone, Android and Blackberry all at once. I want to ask your experience between developing on Android and Blackberry. From your experience as Java programmer: Which platform do you enjoy developing on the most? Which API do you find is well written and fun to code...

Call Contact list on non-standard Android phones

I am creating a widget that you can assign a contact to onClick. I used the method that is described here. This works great on standard Android phones such as the Motorola Droid, HTC Nexus One and HTC G1. The problem is for users who are using devices such as the HTC Incredible or HTC Droid Eris (Both running Sense UI) and I imagine on o...

How to set maxLines and ellipsize of a TextView at the same time.

I want to limit my text view to have maximum of 6 lines, so I did: <TextView android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLines="5"/> But when I try to configure it to add '...' when the text is truncated, I add android:ellipsize="end". I do see the ... but th...

Android interacting with HTML5 tutorial?

I've been looking at using a WebView to display an HTML5 webpage, where the novel features of the mobile device (GPS, compass, accelerometer, camera, etc) can be fed back into the web page. I was wondering if there were any good tutorials showing these functions interacting with the webview. So far I've found ways for the WebView to se...

android - looking for image that goes around a contact in the contacts aplication

Hi In the contacts app, from 2.0+ , in the list you can see a border around each contact image. (look at the image) http://thetech24.com/wp-content/uploads/2009/10/Google-Android-2_0_thetech24.com.jpg I have looked around the source code for the contacts app ( [http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=sum...

How do I find out what android system icons mean?

Ok, so I've got an andoid phone with a bunch of icons up the top, looks like app notifications go on the left, system icons go on the right. Most of the system icons seem reasonably intuitive, service, 3g, wireless etc. I've recently gotten a new one that looks like a phone being tilted / shaken and have absolutely no idea what it mean...

The Date type and the Android database

I understand that SQLite stores dates as long integers. When I read rows using the standard method (i.e. using the query() method that reads data into a cursor), the result is a date string that includes the time: 2010-05-25 19:52:04 If I want a different format, I have to parse the string back into a date - possible, but a bit backwa...