I'm trying to write a file to the Android database directory and I keep getting this exception. Here's the chunk of code that's blowing up:
File database = new File(mDbPath);
database.createNewFile();
File backup = new File(sdPath, mRestoreFileName);
if (database.exists()) {
...
I'm developing one of my first Android apps. I come from an ASP.NET world where it's trivial to have separate Web.config files for dev, test, and production. Does anyone have a good, automated way of doing this for Android via Eclipse?
...
How can I upload/share link/picture to MIXI (japanese SNS) using Android SDK? I'm developing an Android application in which i have to upload or share a link or picture. Please help me!! Its emergency!!
...
I can't figure out how to reset the database connection in my app. I am deleting and replacing the SQLite database file, and need my activity to see the changes.
...
I have a ListView that I am populating with LinearLayouts that contain one CheckBox apiece. The LinearLayout's are added dynamically for each object I am returning from a web service I have.
I need for a user to be able to click a done button and for the application to go through the list of CheckBox's and update a database for each che...
For an Android application I want to have TTS functionality, but with a my own custom TTS language, ie, the TTS Language won't necessarily correspond to a pre-existing Locale. (for illustration purposes, lets say my app needs to speak Orcish).
How do you make your own TTS Language for Android? I believe it is possible, as there are seve...
How do I get index of first/last visible group in an ExpandableListView?
getFirstVisiblePosition() and getLastVisiblePosition() are mostly useless for ExpandableListViews, because they return the index of the first/last visible cell in the list. Which makes a difference because expanded groups count as multiple cells.
What I do need is...
How would you fill in a form on a webpage (not under my control) in an Android program?
I want to write a little android program to automate interacting with a website that someone else has written and I can't change. It has no published API. So the process is:
Fetch the web page with a form on it (eg a login page)
Parse it (eg find t...
I want to show multiple lines with different text styles for each item in a list using AlertDialog, but can't fine any example.
Does anyone know how to customize the items of an AlertDialog? Or do I really have to create an Activity with a ListView for this?
...
I developed a android appli.
It's a widget.
and I wanna get information whether the display locked or not.
How can I do?
...
I want to send a recorded audio file from an android phone to a website. No wires are to be used, this has to be done in the phone. How can I achieve this? What APIs should I use?
...
how to programmaticaly lock screen android?
...
I made an application that uses a ListAdapter to display some items. In my getView method I use LinearLayout#setPadding() to define the indention of each view depending of some object specific states.
This worked fine in Android 1.5. Last week I decided to move to 1.6 since it's better suitable for different screen sizes. It all worked ...
Hii,
I want to make a simple live wallpaper using OpenGL in Android that will draw the textures.
I have develop a simple OpenGL Activity that can work exactly for live wallpaper. But some problems are there like IllegleArgumentException.
I am using GLWallpaperService from earth live wallpaper.
Thanks....
...
I need to synchronise two AnimationDrawables (using frame animations setup in xml). The developer article on AnimationDrawable speaks of no such thing, so I would like to know if it's even possible, and if not, how I could get the same effect using a different object perhaps? The two drawable objects are the same size and have the same n...
Hi,
I'm trying to parse ugly HTML with TagSoup to extract value of a given tag.
Here is the tag :
<input type="hidden" name="hash_check" value="ffc39410ed8da309408a9382450ddc85" />
I want to retrieve value of attribute "value" ("ffc39410ed8da309408a9382450ddc85")
And here is my code, in my SAX handler :
public void startElement(Str...
I'm trying to refresh a ListView onReceive of a BroadcastReceiver. Within my main activitiy, which contains the ListView I'm talking about, I'm registering a receiver:
private final BroadcastReceiver smsIntentReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String...
Hi again all,
I'm still trying to implement a search function into my Android app. So far it's going ok, although currently the search can only query one table and display the results for this table (its a ListView using SimpleCursorAdapter).
What I want is to be able to search multiple tables, but I'm not sure how to get this all into...
I have the following code working to populate the UI. I don't know what the button logic would look like since the spinner names are all the same.
// Create a spinner for each category
mDbHelper = new DbHelper(this);
mDbHelper.open();
mCursor = mDbHelper.fetchAllCategories(listId);
startManagingCursor(mCursor);
if (mCursor != null) {...
Hi everybody,
if I write a new text message in the Android standard sms app and fill in a receiver and some body text and press the back button Android will save this as a draft. If the receiver is currently in my address book Android tells me also in the draft overview the name or, if the receiver is not in the address book, the number...