android

Any wrapping viewgroup?

I am looking for Wrappable ViewGroup just like what TextView do. I need this for layout. This should be something like LinearLayout but wrappable to multiple lines. Or do I need something custom? ...

How can I save an online image in my res folder in android?

Is it possible to save an online image to my res folder in android? Please provide the relevant code. ...

Is it possible to set font for entire Application?

Hi, I need to use certain font for my entire application. I have .ttf file for the same. Is it possible to set this as default font, at application start up and then use it elsewhere in the application? When set, how do i use it in my layout XMLs? Sample code, tutorial that can help me here is appreciated. Thanks. ...

Android listing design problem with cursors

Hi. I have a following situation in my android app. I have an app that fetches messages from inbox, sent items and drafts based on search keywords. I use to accomplish this by fetching cursors for each manually based on selection by user and then populating them in a custom data holder object. Filter those results based on given keywo...

List of images that wraps

I have a LinearLayout with fixed view. I dynamically inject images in it (ImageViews) but I dunno in advance how many of them will be inserted. I'd like to have a layout where images wrap and go to a new line authomatically when they exceed the available width of the father (LinearLayout) how do you recommend I should move? thanks a lo...

EditText, inputType values (xml)

Where can I find the values that inputType can have? I'm aware of http://developer.android.com/reference/android/text/InputType.html, but how should the values look like in layout xml files? ...

Android Image Button Problem

Hi, i have the following imageButton <ImageButton android:id="@+id/header_buttonleft" android:layout_width="40dip" android:layout_height="40dip" android:layout_alignParentLeft="true" android:layout_marginLeft="10dip" android:layout_marginTop="5dip" android:src="@drawable/icon_download" android:clicka...

Soft keyboard does not show when Activity starts

I have added android:windowSoftInputMode="stateAlwaysVisible" to my Activity in AndroidManifest.xml and here's my layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_pa...

Most cost effective way to target multiple mobile platforms

Hi I have been given the tasks of speccing a mobile application, which will need to run on approx. 1000 devices. These devices already exist, and consist of iPhones, BlackBerrys, Androids, Windows Mobile and Netbooks. The application will have simple reporting capability, and a collection of forms. Anyway, the obvious solution would be...

Using default gallery for custom image set

Is it possible to use the default image gallery on Android and populate it with a custom set of images to display? When I use ASTRO filebrowser to go through my folders and open an image, I get the choice to use either the ASTRO image viewer, or the default image viewer. I would like to use the latter with a set of multiple images that ...

Is there any language other than Java that will work as ubiquitous on mobile?

I'm trying to write a rogue-like game for my blackberry and hopefully any other phone that supports some sort of JVM. Because I use Java in my job I'm looking to write the game in another language but I cannot find a language that will work on multiple phones. Am I stuck with Java? ...

Take and save picture on button press

I'm creating an Android application which uses user captured images as part of a larger process. So far my XML layout has a SurfaceView and Button inside a RelativeLayout. I've managed to get the camera preview to show on the SurfaceView but I'm stuck on how to take a picture and save it when a user presses the button. My class file loo...

Best way to get data into an android app?

Hi, Just a little background. I am a proficient asp.net/c#/sql server programmer who has been learning Android for less than 2 days. We have an existing .net website which stores a list of locations in MS SQL server 2008 and I'm trying to create and Android application that gets these locations and displays them on a Google Map. The q...

What it's happen with IDs from MediaStore when some items are deleted?

Hi! Let's suppose that: I delete an item from my sdcard and after I unmount the memory card! What is happen when Android rescan my sdcard for changes? In MediaStore every row have an _ID so after I delete an item what is happen with this _ID: it remain in MediaStore, it is associate with an other item or it is removed permanently? Tha...

Android 2.1 gallery not backward compatible with Cupcake version, now what?

I don't know why, but in Eclair, the default (non-fancy) gallery app changed its begaviour from the Cupcake version, and it broke one of my commercial applications :-( Firstly, when long-pressing a gallery and choosing "Diashow", it does not publish an Intent to be picked up by any application that implements the Intent filter anymore. ...

insert an image in a tablelayout without streching it android

Hi, I'm having some trouble getting pictures inside a tablelayout...actually, each I have 2 columns and when i put a picture in a cell of the table, it's completely streched and disproportionnated...I can't find how to make it stay it's original inside the cell and let the rest of the space filled by white background for instance.... XM...

How to handle Alarm notification in Android?

Hi, I'm developing an media player application for Android, for which I need to handle any Alarm notification, and based on that I'll pause my playback. When the Alarm in snoozed or dismissed, I'll then resume the playback. I googled a lot for the Alarm handling, but what I found was the way to enable Alarm notifications through code,...

Update the android default database table schema.

Dear, May we have rights to update the android database table schema such like People, Organization,Calendar,Events. i want to add triggers on the update,delete and insert of the above mention tables. Thanks. ...

Android: Active project attempting to improve the GUI design process?

I'm not looking for a mock up tool, I'm looking for a reasonable GUI design tool for the final product in the style of Apple's Interface Builder. Droid Draw is buggy, out of date and inaccurate in my experience. Using the Eclipse plug in to do a complex layout makes going to the dentist seem fun. I'd even settle for hand-coding CSS pixel...

TabHost NullPointerException in layout

I been following the Tab example provided by Google. I am trying to use the XML layout provided to setup a tab layout. I use this XML layout @ http://developer.android.com/guide/tutorials/views/hello-tabwidget.html <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id=...