android

Trying to update an Android application , but having no luck because of problems with the keystore.

Hi I recently published an application for Android in the Market. Now, I'd like to publish an update, but I'm having a long argument with my computer and keystore about this option. The version:code and the other thing they want you to set, are set. I don't want to change the numbers , because we'll loose about 30 hours of work tim...

Flushing and SQLite database on android

I have an android application using an SQLite database. I open the database when the application starts, but never close it as it is in constant use. What is the best way to tell the database to flush all its changes to permanent storage? Do I need to just close it and re-open or is there a more efficient way? My problem is that when t...

Managing multiple SharedPreference files.

I'm looking for a good way to manage multiple SharedPreference files. Basically the user should be able to create, edit, and delete the preference files and then select the one they want from a spinner. What I'm trying to figure out is how do I find all of the preference files that the app has? Is there a way to scan the directory and r...

Android -- SQLite + SharedPreferences, 2 Threads Simultaneous Read/Write?

Hello, I have two parts of a program (the actual app and a BroadcastReceiver) that could possibly try to connect to and modify a SQLite database and a SharedPreferences file. 1) I know you can make multiple connections to a single SQLite database. I also read that SQLite can "lock" the database when it attempts to modify or read from a...

Running Instrumentation tests outside the SDK

I've got some instrumentation test cases for my andoid app and running them from eclipse or adb works fine. What I'd really like to do though is load them onto the handset and trigger the tests later, when it's not tethered to the USB cable. Does anyone know how I could do this - or a reason why I couldn't? ...

Android/Java Abstract Class Inheritance Issue

I'm having an issue with inheritance between 2 classes and a single normal class. Here is an example of what I have: Abstract ClassA function get_name(); Abstract ClassB extends ClassA ClassC extends ClassB Now, when I create an object of ClassC, I can't access the get_name() function. I'm not sure what I'm doing wrong here. ...

How to generate Styled text for TextView while assembling string?

I have a TextView that will hold a styled, multiline string. This text is generated line by line as the data is drawn from different sources bit by bit. As I grab each field, I add a Bold header to the TextView on a new line, then I add the data for that field in italics on a new line. Example formatting: Due Date July 22, 2010 ...

No review on Android Market?

Submitted an app to the Android Market. It went to Published right away. Is there really no review/testing/certification process over there? ...

Reusing an existing Java interface inside of an AIDL definition

Is there a way to reuse an existing interface inside of an AIDL definition? My goal is to have my Android service expose a Binder interface that is the same as an existing Java interface I've been using. ...

Android - How to download data in the background at specified times

I'm sorry in advance for not having any code to post up, mainly because I can't for the life of me figure out how I need to do what I need to do. Basically, at specified intervals during the day (ex. 5 P.M), I want my app to download some data from my server and store it on the device. This is to both reduce the load on my server from h...

Dynamic TableLayout with ID's?

I have a working dynamic TableLayout that holds user data. Clicking an "Add Event" button brings up a Dialog that allows the user to enter data. When the Dialog is dismissed, the entered data appears as a new row in the table. Now, however, I am having trouble allowing the user to EDIT a given row in the table. It seems I need dynamic ...

item of listView obtain focus and click events

hello,i have a lisyView,every item(every row ) have a imageView and a textView,when i scroll the listView,the whole item gets the focus,but for every item , frist i want to imageView gets focus,then textViews get focus,so that i can handle the click events of imageView,so my questtion is how to get the focus of imageView . ...

Java crashcourse

Possible Duplicates: Learning Java? Best Java book you have read so far I wanna learn to program in Java so i can program for Android and iPhone. so is there a book or something where i can learn the basic very fast. I have a programming background in PHP, MySQL etc ...

Android: Batch insert contact photo

I want to insert a contact photo with other information in a batch insert. "is" is the input stream using the uri of the photo: is = Data.clientContext.getContentResolver().openInputStream(/data/data/com.project.xxxxxxxxxxxxx/files/photo); op_list.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) ...

Android encode string as bitmap?

Is there a way to encode a string as a bitmap? Or a drawable? Thanks Chris ...

GUI-preview and buttons together

I need to have a video preview(on a Surface) and a TextView and a few buttons(at the bottom of the screen) Currently, my preview's height is large but it's narrow and at the far left at the screen and the TextView is not visible. The buttons are placed at the bottom as I require. How do I make the preview's width large as well and the...

How can we simulate calls and SMS in Android?

Can we simulate calls and SMS in android programmtically? Like in Windows mobile we can simulate calls and SMS. ...

HTML Style Tag in Android

As i have referred some articles and sites, i found that we can also create HTML file and then we can display HTML file using Android WebView.. I have referred at: http://tinyurl.com/yjona4j http://tinyurl.com/3xlnjjf So my question is that - "Is Android provides STYLE/CSS tag to define styles , if yes then there is any way to write...

Android - Set focus to a button widget programmatically onCreate of the activity.

Hi Folks, Is it possible to set a focus to a button widget which lies somewhere down in my layout. onCreate of the activity my control/focus should be on that button programmatically. Regards, Vinayak ...

Faster GPS fix in Android

I have noticed that applications like GPS Status get a fix pretty quickly. When I try to get a fix within my own application it takes more time. Does anybody know why is this happening? Do they use a hidden part of the API to force the GPS to connect faster? Here's what I use LocationManager loc = (LocationManager) context ...