android

How do I avoid hiding (or dismissing) an AlertDialog when clicking a NeutralButton?

Hi, I'm trying to use a multiple selectable dialog as the code below. And I want to use a neutral button to deselect all the items in the list. But when clicking a button whichever on the dialog, the dialog disappears immediately, I assume it must be a default action. But I want to remain it since a user doesn't expect that action I thi...

Simple way to update an Activity UI in android.

I have a simple main activity with 3 buttons, and a background service that runs when Wifi connection is detected. My main activity polls the database on onCreate and displays the status. What i want is to force an Activity to redraw that textview every few second. I dont want to use binders or connect to service. Just some simple way to...

Where can I find Android Tab Icons

Does anybody know of a website where I can find Android TabHost icons? (free or paid) ...

How to set maxSdkVersion for 1.5 apps

Hi everyone. I do have an app that should only be visible in the market for android 1.5 and 1.6 devices. So i thought i compile for sdk version 3 and set <uses-sdk minSdkVersion="3" maxSdkVersion="4" /> But it seems not to be so easy. I get an error saying error: No resource identifier found for attribute 'maxSdkVersion' in package '...

Will the files be deleted on app update?

I want to create a settings file for my app which I store in the internal memory. I am wondering if this file will be deleted when the user updates the app to a newer version. ...

Added new Activities to a Tabbed Activity

Hi, I have added 4 activities to a tabhost widget. These work fine. The problem is that i have started a new activity from my of my activity that is present in the TabbedHost. This activity is started on a new screen i.e The tabs are no longer visible. How can i start a new activity and it remains within the tabbed host. I hope u unders...

Can an Android app install another android app?

I was wondering if it was possible to have an android app which is already installed go and download another app and install it? I figure there could be security problems with this, but is it possible for the Android OS to do this? ...

Image name in MediaStore in Android

I'm using the MediaStore to share a dynamically generated image using ACTION_SEND. The code is the following: String urlString = MediaStore.Images.Media.insertImage(getContentResolver(), path, name, name); Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.setType("image/jpeg"); intent.putExtra(Intent.EXTRA_STRE...

Detecting when scrollView has scrolled.

I'm trying to detect when a ScrollView has finished scrolling so I can slightly modify its position. Before I was using ACTION_UP to detect when the user lifted their finger, but then I realized this wouldn't allow me to use "flinging" as it would modify the scroll before it was finished. Is there any way to detect when a ScrollView has...

PKCS10CertificationRequest creation on android

Hello: I'm very new to android and java both, so hopefully I'm missing something easy here. All I want to do is create a simple PKCS10 certificate signing request. I have some code that will compile and run on my ubuntu box (java-6-openjdk), but throws a null pointer exception in the android emulator: KeyPair myKeyPair = KeyP...

Which is the better option? Develop software for OVI stores (or) Andorid (or) Apple stores?

Which is the better option? Develop software for OVI stores (or) Andorid (or) Apple stores? Which is the future of mobile application development? Qt for Meego/Symbian and hosting in OVI store? or Developing application for android or Developing application for iPhone? I wish to know the best platform to learn to pursue my career as a i...

Can I test Android apps that I develop on this real hardware device?

Since I don't know (and I don't think anyone does) when the next version of the Android Developer Phone that will support Android 2.x be available, can I use the following unlocked Android phone available on Amazon http://www.amazon.com/Motorola-Milestone-Unlocked-International-Warranty/dp/B0030G6HRQ/ref=sr_1_23?ie=UTF8&amp;s=wireless&a...

Set BroadcastReceiver to be inactive

Hey everyone, I have a BroadcastReceiver set up in my Android application that receives SMS receive events. This works fine, but I want to be able to toggle SMS receiving on and off by toggling the BroadcastReceiver on and off. Because if I have a simple boolean inside the onReceive method, even if the SMS receiving is off, my applicati...

Style EditText content 'on the fly'?

I'm working on a rich text editor in Android. Basically it has bold, italics and link buttons that are tied to an EditText to change the style of the content. I have it working great if you select the text you want to style first, and then select the button using this method: http://developer.android.com/guide/appendix/faq/commontasks....

Testing database on Android: ProviderTestCase2 or RenamingDelegatingContext?

Hi there!! I've implemented access to a database using SQLiteOpenHelper of android.database within some classes (with pattern DAO). I wrote some junit tests for these classes using a AndroidTestCase but this cause the tests to use the same database of the application. I red ProviderTestCase2 or RenamingDelegatingContext can be used to te...

Putting SQLite data into ListActivity

I'm trying to create a list adapter that pulls in and displays data from a database. From what I can tell, it is pulling in the info, but it fails when I try to create the ListAdapter from the new Simple cursor adapter. Not sure what I'm doing wrong here. SQLiteDatabase db = myDbHelper.getReadableDatabase(); String select = "Select Stat...

How do I access the emulator control line in Android?

I'm trying to change the time zone on my Android emulator. I'm using Eclipse on a Windows 7 machine. To do this it says to enter some commands in the command line, but doesn't say how to access the command line! So how do I access the command line in Windows 7 using Eclipse? ...

Why can't I add elements after a GridView?

I've got the following layout XML file: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <GridView android:id="@+id/main_grid_screen" android:layout_width="fill_parent" android:...

Android: How to implement WYSIWYG Editor for user content?

I'm building an Android App where users need to be able to edit their own content, including minimal layout. I just want to store the formatted source in the database and pull it out and display it the way I would with something like TinyMCE in a web app. Any ideas how users can enter and format their own content in an Android GUI? Tha...

Is it possible to access a .Net Web Service using HttpClient/HttpPost?

Dumb question, but I just can't seem to get it to work. I'm passing in parameters and returning string values, but all I receive is: org.apache.http.conn.EofSensorInputStream. Do I need to do something special in my web service to access the parameters being passed? ...