[android-developers] Pub/Sub Protocols

2012-01-21 Thread Jay Bloodworth
Does anyone have an informed opinion about which publish / subscribe protocol might best be used for exchanging state for a turn based multiplayer game? I am looking in particular at Bayeux and XMPP, but open to alternatives. Thanks, Jay -- You received this message because you are subscribed

[android-developers] Autoreload of Webview

2011-09-10 Thread Jay Bloodworth
At my work, I have to access an intranet site several times a day. The site has a short session inactivity logout - shorter than the frequency with which I must access it - so I end up having to relog every time. I'd like to write a small Webview app to just to a reload every ten minutes or so to

[android-developers] BG colored Rectangles on Drawable Action Bar

2011-03-22 Thread Jay Bloodworth
I'm experimenting with using a custom background for an action bar. I've tried both a gradient-colored Shape and a Nine Patch and in both cases I get ugly rectangles in the overall BG color behind all the View-y things on the action bar - icon, title, menu items. Seems to be the same basic issue

[android-developers] StartActivity and InstantiationException

2011-03-20 Thread Jay Bloodworth
I have Activity A starting Activity B with an explicit intent. If Activity B has no constructor, I get an InstantiationException. With an empty nullary constructor, it starts up fine. Activity A (started from the debugger) has no constructor but does not give an error. Can someone explain the

[android-developers] Making Views the Same Width

2011-03-13 Thread Jay Bloodworth
Is there a standard idiom for an Activity to enforce that two of it's child views have the same width in cases where a LinearLayout won't do it (like two horizontally adjacent buttons)? I assume it would involve something like overriding onDraw, but perhaps there is another entry point that is

[android-developers] Joins vs. Content provider

2011-03-10 Thread Jay Bloodworth
Is there a standard or recommended idiom for doing the equivalent of a join of data in a local database versus a content provider? is there anything more efficient than explicitly looping on the result set from the local database query and doing individual queries of the content provider to grab

[android-developers] Best Practices for DB Definition

2011-03-05 Thread Jay Bloodworth
Where is the best place to store the CREATE TABLE... statement strings for an app that uses a SQLite database? Most of the examples I have come across include them directly in the source code. Is there a reason why this is preferable to storing them as resources, say as a string array? Thanks,