android

Upload and display a MS word Document in Android

I need to create an app that takes a MS word document and lets the user of the app interact with the pages meaning viewing each page separately, zooming, going forward and backward. ...

Efficient undo/redo for Photoshop-like mobile app

I'm trying to write a painting app for a mobile device (Android) that will have a bit more functionality than MS Paint (e.g. various brushes and brush settings, selections, layers) but won't be as complex as Photoshop. I need my app to have a decent undo/redo feature. Unlimited undo/redo is probably not possible. I'd be happy with being...

Fast Scroll display problem with ListAdapter and SectionIndexer

I have a list of events which are seperated by month and year (Jun 2010, Jul 2010 etc.). I have enabled fast scrolling because the list is really long. I've also implemented SectionIndexer so that people can see what month and year they are currently viewing when scrolling down the list of events at speed. I don't have any problem with ...

What is an elegant way to create application access URLs for an existing web application?

I've been assigned to create an RESTful Android application for an existing web service which is built using Django. My current design idea is to have the Android application receive a JSON version of the data that would normally be sent to the Django template on each url. So my view would look like: #The site stores and organizes user...

It's possible to put a TextView inside of a RadioGroup. But, is it good practice?

What I'm trying to accomplish: When the user clicks a specific RadioButton, a TextView should appear immediately below the selected RadioButton. My solution so far: Code-wise, put a TextView inside of the RadioGroup and set it's initial visibility to "invisible". Then, when a specific RadioButton is clicked, set the hidden TextView's vi...

is there a default way to make the first letter of the contents appear (eg as a hover) android

I have a listview in alphabetic order and as the user scrolls i want a way to see the first letter.Like a phone catalog. ...

Help preserving data after onDestroy() is called.

Hello, in my application I have a list of installed application. This list also contains the app name, icon, and intent to launch it. How would I go about saving this data so I don't have the need to load it each time. Thanks in advance ...

How to update View in response to LocationListener.onLocationChanged()?

An app I'm working on can't meaningfully launch until it has a Location from somewhere -- coarse, fine, it doesn't matter. It just needs one that isn't null. So, my Activity class is doing something along the lines of the following: onCreate(): instantiate LocationManager create Map so I can keep track of all the LocationListener obj...

How to avoid rounding errors in Android app devlopment?

I'm doing what seems like simple math in an android app, however I keep getting massive rounding errors. For example. Float.toString(0.4*0.4*12.5); I would expect to get 2 as the result of the above equation. However I get 2.0000002 ...

How do you do simple CRUD in Android?

All the examples that I have read have only went over how to create one Activity based apps that allow for listing items and none of them have talked about how to drill down into a selected list item to perform various CRUD operations. So my question is what is the best practice for this? Is it to set an id value in the intent (I haven...

Refreshing an Activity from service when Active

I've an app where I wish to update the Activity (List activity to be precise) only when the activity from Service is in foreground (Active) I can use ListActivity Intent but the problem is this brings up activity even when its in background. I also considered using registerDataSetObserver on ListAdapter but that mandates that cursor s...

Newbie Android - How to use a custom control once it has been extended

I've extended the LinearLayout class into a subclass that inflates the resource xml and holds some custom button logic. According to Building Custom Components I now can use it in place of Linear Layout. Question is: How do I use this class to set my view in my activity? I've tried using in the main.xml but that didn't work. Thanks!...

Record Video to External SD Card on Android

Hello, I am trying to record video to an external SD card. However, everytime I try and acutally record the data -- I always get a java.io.FileNotFound exception. I was wondering if anyone knew of any tutorials or could help correct my code. Here is the class in which tries to record video public class VideoActivity extends Activity...

How to center progress indicator in ProgressDialog easily (when no title/text passed along)

When calling progressDialog = ProgressDialog.show(this, null, null, true); usually the developers wants to only show the progress indication image, and usually would it expect to be centered within the window (at least from regular UI design point of view). But the image is too far left, it seems that some padding/margin on the right han...

Airplane mode setting change at startup

Hi, I have seen a unique problem recently in my development phone. Whenever I boot-up my phone after first flash, the phone changes its settings to Airplane mode if SIM is not inserted. The expectation is that the phone should not go to Airplane mode, whether SIM is inserted or not. How can I control this behaviour? Is there any tweak...

move an object follow a user-defined path on Android

What algorithm or technique should I use to make an object follow the path that the user's drawing on the screen? ...

Why so many inner classes in Android?

I am a new fish in Android development. While reading books and Android source code I found out that there so many inner classes in the Android application. Why does Android need so many inner classes? I am confused by these inner classes. ...

Default Message application +android

Hi how to set receiver for the click event of Default Message application of phone. Basically i want to know intent or Action of Default Message application. so How to know when the user Clicked the default Message application via Boradcast recevier. ...

Android UDID like IPhone?

Does Android have a UDID like IPhone? If yes, is there a way I can get it programatically? Thanks Chris ...

Android development

Hi Everybody! I had a question that does the Android Application Development comes under the J2Me programming or is it Totally/Partially different? Does the Android Application Development has anything to do with the J2ME or not at all. Please do let me know if anybody is having a clear idea. Thank you, john ...