android

Are there Android SDK source code or at least old plain javadocs somewhere?

I'm new in Android development and I often need to look at javadocs on almost every single class or method from Android SDK. I found it very annoying to stop developing, go to the browser, look for the correspondent class and only then read the docs. It would be much more convenient to look at docs just in my IDE (for example, ctrl+cli...

Error : Could not find HelloAndroid.apk

Hi, I am very new to Android development. I followed every steps from developer.com to install ADK. Now my issue is, when I tried to run HelloAndroid application, I get an error as I mentioned in the title. I hav JRE1.6 installed. Is tat enuf? Because I read tat ether jdk or jre is ok. I am clearly blank about the concept of this apk err...

Android default throbber animation (Froyo 2.2)

I'm looking for the location of the Android Froyo (2.2) default throbber animation resource. (In the progress dialog displayed as a animated wheel spinning). What is the type of animation? (gif, png, avi?) And how to get it as a separate file (or images) to be able to adjust. ...

changing layout of options menu

Is it possible to modify layout of the options menu? For example, have Title above the icon or increase space between them? ...

how to bind a remote service that is installed on my android device?

hi there! i have coded this service, that computes stuff and i want other applications to be able to bind this service, i.e. i want to enable other programmers to communicate with this service. problem is, this has to work without these other programmers to get access to the source code. just the (installed) apk with the remote service...

ePub library for java or android

Hello, Is there any ready library to read ePub format ? I found ePublib in http://github.com/psiegman/epublib. I'm still learning how to use it. I wonder if there is ePub jar which ready to use for read ePub format in android. ...

Android - DatePicker widget problem

Hi, I am trying to create activity with few controls and a DatePicker widget. And I am facing one strange problem that I can not explain. If I set activity that has only DatePicker widget shown app works. And if I set activity that has other controls without DatePicker it works too. But when I show them both I get a NullPointer Excep...

Android - Getting the relevant ListView row on CheckBox changed

Hi All, I currently have a ListView in my Android app that has a CheckBox on the side. When the checkbox is changed I want to get some info from the listview row that the button is in and then persist it, however, I can not work out how to get the row data from the onClickChanged listener. My listview is populated using a custom JSONO...

How to launch a dialog box with a button when Game is complete?

Hi Guys, Please help with the following code - I need a dialog box with a button to appear when the game puzzle is completed. Thank you! Here's the code: Sudoku.java package org.example.sudoku; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import a...

Creating a file on the SD-Card in android

I want to create a file on the SD-Card and later save a CSV file in it. From surfing around I noticed that there seem to be two ways about going about it: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal If you're using API Level 8 or greater, use getExternalFilesDir() to open a File that represent...

SAX parser ignoring CDATA - html tags

Hello, I have a simple Android RSS reader app in which I am using SAX parser to fetch the data. All the records are being fetched correctly except for the "desc" element. The XML structure is as below. <item> <title>Boilermaker Jazz Band</title> <link>http://eventur.sis.pitt.edu/event.jsp?e_id=1805&lt;/link&gt; <type>Music Concerts</ty...

How to check if a time (minute/second) is in a given interval?

So I have a physical chart of time intervals (minute:second) which map to point values (for example: 9:59-10:10 = 59.7) and I need to write a program that tries to find out the point value for a given time (such as 10:02 would return 59.7). I would also like to have the interval chart stored in a .properties file, so my other "calculato...

How to create EditText with rounded corners?

Is there any way to create EditText that has rounded corners? ...

Android widget intents

I have a widget class and a service class updating the widget. I have added in the widget class in onUpdate() the following code: RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.countdownwidget); Intent Intent1 = new Intent(Intent.ACTION_MAIN); Intent1.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent ...

System-wide TouchEvent on Android

Hi, I'd like to receive a TouchEvent in my Android application any time the screen is touched. Even if my application is not in focus. Is there an general even listener or intent filter I can write to achieve this? The goal is to write system wide gesture engine. So for example, if the user swiped up and then down, a certain applica...

Andorid Draw route path Draw function

Hi, In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ?? I'm new to android. ` public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) { if (points...

How can I get information from the shell about commands available in Android shell?

Can't find information on how to print out documentation on android shell commands while in the shell. Something along the lines of help ls ...

Add my app to HTC cut & paste sendto menu

Hi, my HTC has a nice cut & paste function that allows me to mark text with two green sliders and then perform either a search on it, push the text to the clipboard or send it to an app. The apps shown in the menu are: Friend Stream, Mail, Nachricht (SMS message), Peep (all HTC) I want to have my app appear here - but don't know how. ...

Internal link to TextView in Android?

I find myself stuck in something I think would be really easy to solve. My app contains a lot of TextViews and ImageViews, and one TextView contains the content listed. I want each element of the displayed content internally linked to the respective TextView. Probably the TextView isn't the right element to use, but I have trouble findin...

How to pass an array of Address objects to an other Acitvity

Hi I'm trying to pass an array of Address objects to another Activity through an Intent object. As the Address class implements the Parcelable interface I try to do the following. I got a List Address object from a Geocoder object, which I convert into a array of Address objects. Then I put this array into the Intent and call the acti...