[android-developers] Posts to this Android Dev group hacked/intercepted/moved !?!

2010-01-01 Thread RoryD
I posted a message to this group several days ago - now when I check my Google Groups profile the message in question is appearing under a completely different Google Group (http://groups.google.com/group/ world_wide_with_god_minstry) - this group is filled with other apparently misdirected message

[android-developers] RenamingDelegatingContext overwrites existing database file - bug?

2009-12-31 Thread RoryD
I'm using a RenamingDelegatingContext (RDC) in an ActivityUnitTestCase to have my application use a database files prefixed by "test." used during testing. My application expects a db called "database.sqlite", so in the setUp() method I create & seed one called "test.database.sqlite". I then wrap

[android-developers] File/Database access from Unit/Functional Test Contexts

2009-12-30 Thread RoryD
Is it possible to read or write files or SQLite databases using an Instrumentation's Context (i.e. the test project Context, not the target Context of the package under test)? For instance, in a ActivityInstrumentationTestCase2 or ActivityUnitTestCase subclass: Context testContext = getInstrument

[android-developers] Re: EMMA Code coverage and JUnit

2009-12-26 Thread RoryD
Hi Brett On Oct 27, 6:18 pm, Brett Chabot wrote: > Hi all: > > In case you missed its mention in the release notes, I just wanted to point > out that version 3 of the Android SDK tools, and the Android 2.0 platform > 5. Run 'ant coverage' I'm trying this with 1.6r1 SDK updated with 2.0.1 platfo

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-12-03 Thread RoryD
On Nov 9, 5:00 pm, Nerdrow wrote: > I don't know the authTokenType to pass as an input parameter. It looks like "ah" does the trick for authTokenType! If you specify true for notifyAuthFail, you'll get a notification posted saying "Permission Requested" that takes you to a screen where Android s

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread RoryD
Eck, spoke too soon - for this to work, you need to have the display values replicated somewhere in non-array form, not pretty. On Oct 2, 9:19 pm, RoryD wrote: > how about: > > SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences > (this); > String value = pref

[android-developers] Re: Getting the key from a ListPreference

2009-10-02 Thread RoryD
how about: SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences (this); String value = pref.getString("key", "default value"); Resources r = getResources(); String localizedValue = r.getString(r.getIdentifier (value,"string",null)); You may have to fiddle with the last 2 param

[android-developers] BitmapFactory.decodeStream sometimes returns null

2009-10-02 Thread RoryD
I have an activity which performs an image search, the results (URLs of thumbnails on the web) are rendered in a GridView. My GridView adapter class delegates creating the actual Bitmaps to an AsyncTask that loops to sequentially fetch the image content from each URL using HTTPClient, and creates

[android-developers] Re: how to change ListView Item Text Color?

2009-09-11 Thread RoryD
> i populate ListView Using ArrayAdapter, You could create your own Adapter (subclassing ArrayAdapter) and override getView(). Call through to the superclasses getView() method & then configure the View you get back however you want. e.g. public class MyArrayAdapter extends ArrayAdapter {

[android-developers] Discussion on localizing-android-apps-draft

2009-09-03 Thread RoryD
What's the best way to refer to Android resource IDs from a SQLite database? For instance if I have a "category" table with cols id, and category_name. Right now I store a default English name in category_name, but I'd also like to be able to localize that when I display it in the UI. The one a