[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread westmeadboy
ing feature for applications outside of the market > and on any android version device, have a look to this apache licensed > free library:http://acra.googledoc.com > > There's a thread on this group to discuss about > it:http://groups.google.com/group/android-develop

[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread westmeadboy
Does anyone know whether it works for apps not installed via the Market (but which do exists on the Market)? Hmmm, I doubt it since if it did, then all the bugs during testing would appear there... On May 21, 8:35 am, ko5tik wrote: > On 21 Mai, 07:36, yuku wrote: > > > I got 8 bugs in total for

[android-developers] CheckBox image alignment issue

2010-05-12 Thread westmeadboy
Here is a CheckBox (with no text) defined (within a LinearLayout with weightSum=100) as follows: Unfortunately, the button appears to the left (as opposed to the center) of its LinearLayout box. Setting android:gravity doesn't make a difference, nor anything else I could think of. It seems the

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread westmeadboy
That works in most cases but not in a significant number of other cases. Consider users who go on an extended holiday to a non-paid app country. Astro works partly because its free. But then there is also the situation where you go on holiday and are using your phone offline. Then all of a sudden

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread westmeadboy
Anyone any ideas? On May 9, 4:33 pm, westmeadboy wrote: > In the official Twitter app, in the Tweets activity, if you click on > the small down arrow (right side of each tweet entry), a really nice > popup appears just above or below the entry. > > How did they do this (i.e. pos

[android-developers] Misleading & incorrect runtime exception when missing resource

2010-05-10 Thread westmeadboy
This took me several hours to figure out so I thought its worth reporting... Manifest: Resource strategy: res/drawable res/drawable-hdpi-v4 No problems when testing on a Nexus One, but on the HTC Hero got this exception: Uncaught handler: thread main exiting due to uncaught exception ...ski

[android-developers] Twitter app's popup aligned with ListView item - how did they do it?

2010-05-09 Thread westmeadboy
In the official Twitter app, in the Tweets activity, if you click on the small down arrow (right side of each tweet entry), a really nice popup appears just above or below the entry. How did they do this (i.e. position the popup alongside the relevant item)? -- You received this message because

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
Any strong reasons to not take that manifest approach? On May 9, 1:28 pm, Mark Murphy wrote: > westmeadboy wrote: > > I just stick android:configChanges="keyboardHidden|orientation" in my > > manifest. I generally do that by default these days. Haven't come

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
I just stick android:configChanges="keyboardHidden|orientation" in my manifest. I generally do that by default these days. Haven't come across any problems so far! Does that explain why it works? On May 9, 1:13 pm, Mark Murphy wrote: > westmeadboy wrote: > > I remember

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
On May 9, 12:52 pm, Mark Murphy wrote: > Actually, that's one of the minuses, IMHO. > > A static data member survives the rotation. The service, however, will > shut down mid-rotation if there are no other bound connections to it. > Right now, you have to manage the orientation change yourself and

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
local service is the extra layer and extra things that can go wrong. Extra care needed in stopping the local service etc. On May 9, 12:27 pm, Mark Murphy wrote: > westmeadboy wrote: > > I really cannot think of any other way to do it, short of copying the > > contents of the cursor in

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
: > Check your logic, sharing a cursor between 2 activities is really necessary? > > 2010/5/9 westmeadboy > > > > > > > Thanks but isn't that more for across processes rather than across > > activities within a process? > > > On May 9, 7:17 am

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread westmeadboy
> On May 8, 7:21 pm, westmeadboy wrote: > > > > > > > In one activity I build a cursor which is used to populate a ListView. > > > I want a secondary activity to be able to step through the cursor > > entries. What's the best way to do this (bearing in min

[android-developers] Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-08 Thread westmeadboy
In one activity I build a cursor which is used to populate a ListView. I want a secondary activity to be able to step through the cursor entries. What's the best way to do this (bearing in mind cursor lifecycle). I don't care if the the system kills and restarts the secondary activity since in th

[android-developers] Re: Linkify-ed TextView non-linked text disappears on touch

2010-05-06 Thread westmeadboy
). The workaround is to explicitly set the textColor and this works for me. On May 6, 12:32 pm, westmeadboy wrote: > Just tried this using the emulator (SDK 1.6), and the same problem > occurs. > > So it could be some change that has been introduced from 1.6. > > Note: if no li

[android-developers] Re: Linkify-ed TextView non-linked text disappears on touch

2010-05-06 Thread westmeadboy
. Linkify must be changing something about the TextView to make this happen... On May 4, 7:42 pm, westmeadboy wrote: > I notice this happens on the Nexus One but not on the HTC Hero (EU > version). > > Anyone else experience this? > > On May 4, 1:36 am, westmeadboy wrote: >

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-06 Thread westmeadboy
How about users who go from using a paid-app-country sim card to a non- paid-app-country sim card? In such a case, the app is no longer visible on the Market? I guess your answer to this would be its up to the developer to decide how to handle such a license check failure but in reality the user w

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread westmeadboy
On May 5, 4:21 pm, dadical wrote: > That's a cool use case, but I'm curious about how commonly people sell > apps that way.  Are you doing this because of the limitations of where > Android offers paid apps?  Is it because of the costs involved in > doing transactions on Android Market? There are

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread westmeadboy
Non-Android Market solutions would be more interesting to me. I'd like some way to stick an apk on my website and allow users to pay using paypal. Everything else would work seamlessly... On May 4, 11:20 pm, dadical wrote: > I've spent the last few weeks developing a new tool to stop piracy of >

[android-developers] Re: Linkify-ed TextView non-linked text disappears on touch

2010-05-04 Thread westmeadboy
I notice this happens on the Nexus One but not on the HTC Hero (EU version). Anyone else experience this? On May 4, 1:36 am, westmeadboy wrote: > I'm not sure if this is by design but... > > I have a text view (white text on black background) which is > linkified. If at

[android-developers] Linkify-ed TextView non-linked text disappears on touch

2010-05-03 Thread westmeadboy
I'm not sure if this is by design but... I have a text view (white text on black background) which is linkified. If at least one link is created and the user touches on any non-linked part of the text, then the non-linked part disappears (or turns black, I'm not sure). Is there any way to stop th

[android-developers] Re: Which Intent Flags when setting PendingIntents in multiple app widget scenario?

2010-05-03 Thread westmeadboy
suppose the drawback is that the activity will be reinitialised each time. On Apr 30, 4:20 pm, westmeadboy wrote: > Excellent, that works. Thanks Mark. > > On Apr 30, 4:09 pm, Mark Murphy wrote: > > > > > > > westmeadboy wrote: > > > I have one WidgetProvid

[android-developers] Double click on app widget

2010-05-02 Thread westmeadboy
Is it possible to listen for double click events on an app widget? Judging by the api, it appears not, but I think this would be really useful. I suppose a workaround would be to use an onClick pending intent to an activity that checks if its been started twice in quick succession - but this seem

[android-developers] Re: Which Intent Flags when setting PendingIntents in multiple app widget scenario?

2010-04-30 Thread westmeadboy
Excellent, that works. Thanks Mark. On Apr 30, 4:09 pm, Mark Murphy wrote: > westmeadboy wrote: > > I have one WidgetProvider but expect the user to have multiple > > instances of the widget on the home screen. > > > When the user clicks on the widget, an intent is fired

[android-developers] Which Intent Flags when setting PendingIntents in multiple app widget scenario?

2010-04-30 Thread westmeadboy
I have one WidgetProvider but expect the user to have multiple instances of the widget on the home screen. When the user clicks on the widget, an intent is fired to start an activity A passing a String extra (which is specific to that instance of the app widget). Everything works fine unless the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-29 Thread westmeadboy
Can anyone mention if N1 3G works in Germany on their network? On Apr 29, 2:14 pm, Lorents wrote: > Yupp, yupp - will get mine tomorrow :) > > Fedex from Veldhoven NL, to Norway, > > Thank you very much Google! Much appreciated!! > > -- > You received this message because you are subscribed to th

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-29 Thread westmeadboy
Can anyone confirm which type of 3G is supported by the Nexus One received in europe? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, s

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-28 Thread westmeadboy
My strategy is to only show a Toast (and maybe Vibration) (warning the user that the next Back will exit the app) if the user has already very recently (<2 secs ago) hit Back to return to the main activity from a secondary activity. This doesn't help the situation of accidentally hitting the back

[android-developers] URL.openStream() throwing FileNotFoundException for valid url

2010-04-27 Thread westmeadboy
I've noticed this exception for quite a few of my users. Examples of exception msgs: http://m.web2go.com/dsb/upgraderequired/?msisdn=1234567890 https://123.456.7.890/login.pl?action=paint;source=234.567.89.012;destination= What is it and what is a good message to show the user when this happens?

[android-developers] Re: Specifying LinearLayout orientation in resource "values"

2010-04-20 Thread westmeadboy
sible to the user. >  Might be worth a try though. > > Justin > > On Tue, Apr 20, 2010 at 5:41 AM, westmeadboy wrote: > > > > > > > I have a linear layout where the orientation needs to be "horizontal" > > in portrait mode and "vertical"

[android-developers] Re: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread westmeadboy
Not sure if this helps, but use http://developer.android.com/reference/java/lang/System.html#identityHashCode(java.lang.Object) to check whether the Application object is indeed the same in both cases (or whether they are in different DVMs) On Apr 20, 12:04 pm, patbenatar wrote: > Bob- > > Nope,

[android-developers] Specifying LinearLayout orientation in resource "values"

2010-04-20 Thread westmeadboy
I have a linear layout where the orientation needs to be "horizontal" in portrait mode and "vertical" in landscape mode. There are a few ways to do this, the most obvious of which being to specify two layouts: one in "layout" and one in "layout-land". However, this will require a certain amount o

[android-developers] Re: merge tag in ListView item resource layout?

2010-04-17 Thread westmeadboy
Just playing with optimization after watching this video: http://www.youtube.com/watch?v=UApv-ZMJ51g (play at about 44:00) He talks about using merge because nested views/layouts are much more expensive than, say, using wider hierarchies. On Apr 17, 3:58 pm, Mark Murphy wrote: > westmead

[android-developers] Re: merge tag in ListView item resource layout?

2010-04-17 Thread westmeadboy
in my particular situation because that RelativeLayout is exactly the sort of thing I'm trying to eliminate :( On Apr 17, 3:50 pm, Mark Murphy wrote: > westmeadboy wrote: > > Is it possible use the merge tag in the layout XML for a List item? In > > particular, when using a SimpleCur

[android-developers] merge tag in ListView item resource layout?

2010-04-17 Thread westmeadboy
Is it possible use the merge tag in the layout XML for a List item? In particular, when using a SimpleCursorAdapter? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] RecognizerIntent.EXTRA_LANGUAGE is ignored

2010-04-14 Thread westmeadboy
I've seen a few other posts about this, but no real response. The official Android Developers Blog post about the Speech Input API: http://android-developers.blogspot.com/2010/03/speech-input-api-for-android.html says: "Google's servers currently support English, Mandarin Chinese, and Japanese."

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-14 Thread westmeadboy
sending an alarm broadcast to a broadcast receiver. > > On Wed, Apr 14, 2010 at 12:18 AM, westmeadboy wrote: > > > > > > > So I tried this: > > > Start service > > Press Home > > Start some other 3rd party app (so that activity is in the foreground) &g

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-14 Thread westmeadboy
to sleep... Any ideas why? On Apr 13, 2:01 pm, Mark Murphy wrote: > westmeadboy wrote: > > Hmmm, so in that case, why does the device not sleep after the user > > has used the power button to turn off the screen? Or do you mean that > > the activity is still considered i

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
Hmmm, so in that case, why does the device not sleep after the user has used the power button to turn off the screen? Or do you mean that the activity is still considered in the foreground even after that? On Apr 13, 1:50 pm, Mark Murphy wrote: > westmeadboy wrote: > > Oh I see. > &

[android-developers] Re: Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
> > On Apr 13, 9:52 am, westmeadboy wrote: > > > > > I have a service which, when started, does some stuff (like > > downloading files) typically taking about 2-3 minutes. > > > If I start this service and then immediately use the power button to > > swit

[android-developers] Not using a WakeLock so why does the device stay awake?

2010-04-13 Thread westmeadboy
I have a service which, when started, does some stuff (like downloading files) typically taking about 2-3 minutes. If I start this service and then immediately use the power button to switch off the screen, then I would expect the phone, at some point, to fall asleep. But it never seems to fall as

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
pr 9, 10:31 pm, Mark Murphy wrote: > westmeadboy wrote: > > Does it not make more sense for the adapter to post the invalidate (on > > the UI thread) rather than invalidate directly? > > They probably don't do that for efficiency reasons. I suspect that the > vast majority o

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
Does it not make more sense for the adapter to post the invalidate (on the UI thread) rather than invalidate directly? On Apr 9, 10:17 pm, Mark Murphy wrote: > westmeadboy wrote: > > Sure, on closer examination, it makes sense. Still, I think its an > > easy one to m

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
is already being relied on by something else (ListAdapter notifiers). On Apr 9, 9:30 pm, Mark Murphy wrote: > westmeadboy wrote: > > Fixing this should solve the problem but I maintain its still odd (and > > a potential bug many devs would miss) that calling Cursor.close() > &g

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
rectly hadnt set the accessOrder of the pool's LinkedHashMap to true. Fixing this should solve the problem but I maintain its still odd (and a potential bug many devs would miss) that calling Cursor.close() could lead to such an exception. *ducks* On Apr 9, 8:42 pm, Mark Murphy wrote: > westmeadb

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
Caching search results. The searches happen as the user types so when a user hits backspace its nice if the results are shown instantly rather than requerying. On Apr 9, 8:23 pm, Mark Murphy wrote: > westmeadboy wrote: > > Seems a bit weird to me. For example, if you are maintaining

[android-developers] Re: Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
Seems a bit weird to me. For example, if you are maintaining a cursor pool (and so do not know how a given cursor is being used), you need to be careful about which thread you call close() on. On Apr 9, 7:25 pm, Mark Murphy wrote: > westmeadboy wrote: > > I'm using a SimpleCurs

[android-developers] Calling close() on a Cursor that's backing a ListView

2010-04-09 Thread westmeadboy
I'm using a SimpleCursorAdapter with ListView. I just noticed that calling AbstractCursor.close() in a non-UI thread will cause this exception: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.Vie

[android-developers] Programmatically remove permission

2010-03-30 Thread westmeadboy
How to programmatically remove a permission? I don't think its possible but would be useful in the scenario where you want to control behaviour of some 3rd party library. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: Recommended way to wake a sleeping Wi-Fi connection?

2010-03-29 Thread westmeadboy
whether there is a connection before going to the Market app. I know I could just let the Market app worry about it, but I don't really want that. On Mar 29, 9:08 pm, Mark Murphy wrote: > westmeadboy wrote: > > Often my mobile network is turned off and I just use a Wi-Fi hotspot

[android-developers] Recommended way to wake a sleeping Wi-Fi connection?

2010-03-29 Thread westmeadboy
Often my mobile network is turned off and I just use a Wi-Fi hotspot. If the phone is not plugged in, the Wi-Fi connection will go to sleep after some length of inactivity. I could be wrong, but a call to ConnectivityManager.getActiveNetworkInfo().isConnected() does not wake the connection. So,

[android-developers] Re: Reusable Android library packaging: interest?

2010-03-29 Thread westmeadboy
I'm sure this would be very useful to some/many. But, personally, I'm specifically interested in sharing in-house resources-based jars between my own apps. Currently I'm resorting to a prehistoric copy-paste approach! On Mar 29, 4:19 pm, Mark Murphy wrote: > Creating Android JARs is fairly easy

[android-developers] Re: Intent to bring up top-most activity in task?

2010-03-27 Thread westmeadboy
N_MAIN, CATEGORY_LAUNCHER, with the component being the > explicit component corresponding to the icon it has shown. > > You can use "adb shell dumpsys activity" to see details on the intents used > to launch each acitivity and task. > > On Fri, Mar 26, 2010 at 4:30 PM, west

[android-developers] Intent to bring up top-most activity in task?

2010-03-26 Thread westmeadboy
If my app is already running, then either Activity1 or Activity2 might be currently on top. How to construct an Intent so that it will simply show whichever Activity is already on top (in the task)? Just like if you touch an icon in the Recent list (long-press home). At the moment, it looks like

[android-developers] How to get the app package name before the Context is available?

2010-03-26 Thread westmeadboy
Often, I want to set up statics (during class initialization/loading) in some activity based on things like package name, version code, whether the debuggable attribute is set in the Manifest etc. But, of course, the Context is not available at that time. All of these values are there in the mani

[android-developers] Re: In-App Purchasing and the Market Agreement

2010-03-26 Thread westmeadboy
On Mar 26, 11:54 am, String wrote: > If your add-on app doesn't have a LAUNCHER intent, the system won't > give the user the option to open it, from anywhere. I thought using category INFO also allows the user to click Open in the Market app once the downloaded app has installed? -- You receive

[android-developers] Re: In-App Purchasing and the Market Agreement

2010-03-26 Thread westmeadboy
ng, this works pretty smoothly. It does involve the user in > two screens, but the first one is merely educational, so he doesn't > freak when presented with a delete-this-specific app dialog! > > I think if a lot of us follow this path, users will also become more > accustomed to it. >

[android-developers] Re: In-App Purchasing and the Market Agreement

2010-03-25 Thread westmeadboy
7;t really need anything server-side either. > > Do you happen to know which filter does it? > > On Mar 25, 6:51 pm, westmeadboy wrote: > > > > > What is your specific reason for wanting to uninstall the character > > apps? > > > You can make sure that the

[android-developers] Re: In-App Purchasing and the Market Agreement

2010-03-25 Thread westmeadboy
What is your specific reason for wanting to uninstall the character apps? You can make sure that they do not appear in the app drawer by using the relevant intent filter. That would only leave them visible to the user when they do something like Settings -> Applications or look in the Downloads of

[android-developers] Re: The "life cycle of a static"

2010-03-23 Thread westmeadboy
Ok, thanks all. I prefer the singleton approach because it at least minimises memory leaks (by keeping the number of connections to max 1 within the VM). I wonder if its worth using a VM shutdown hook as a last line of defense... On Mar 23, 6:25 pm, Mark Murphy wrote: > westmeadboy wr

[android-developers] Re: The "life cycle of a static"

2010-03-23 Thread westmeadboy
it if that single database connection is not closed? I mean, won't the process get killed anyway...? On Mar 23, 6:01 pm, Mark Murphy wrote: > westmeadboy wrote: > > Do you mean a new connection to the database for each activity? > > > With my model, the database connecti

[android-developers] Re: The "life cycle of a static"

2010-03-23 Thread westmeadboy
ities, but rather to the application/VM itself. On Mar 23, 5:24 pm, Streets Of Boston wrote: > What if you just close the connection to the database in the > onDestroy? > If the total number of connnections reaches 0, doesn't the database > eventually shut-down? > > On

[android-developers] Re: The "life cycle of a static"

2010-03-23 Thread westmeadboy
On Mar 11, 8:38 am, westmeadboy wrote: > In Activity1.onDestroy() I close the database. However, is this a good > approach? Is it not possible that Activity1 is killed but Activity2 > stays alive? If so, then Activity2's db calls will suddenly fail. Would be great if someone knows

[android-developers] Re: Preventing dialog auto-dismiss on button click

2010-03-22 Thread westmeadboy
n Mar 20, 5:42 pm, Mark Murphy wrote: > TreKing wrote: > > On Sat, Mar 20, 2010 at 8:26 AM, westmeadboy > <mailto:westmead...@yahoo.co.uk>> wrote: > > >     The only way I can think of is to use a custom layout but I would > >     rather keep the default di

[android-developers] Re: Easiest way to programmatically check if the Market app is installed?

2010-03-22 Thread westmeadboy
I mentioned it in my last post above. The activity is: com.android.vending.AssetInfoActivity so I guess the package is: com.android.vending However, you cannot be sure that is true for all (future) devices (with the Market app) so, if I were you, I would not rely on it. On Mar 20, 12:06 pm, Ph

[android-developers] Preventing dialog auto-dismiss on button click

2010-03-20 Thread westmeadboy
Is there any way (the best way) to avoid this happening? I am using a ProgressDialog which has one cancel button. On clicking the cancel button I want to disable the cancel button and change the message to "Canceling...". That bit's easy. Only once the cancellation has been fully processed do I w

[android-developers] Re: Sd card file write

2010-03-17 Thread westmeadboy
Having only skimmed your post, I would say you at least need a filecon.flush() (and filecon.close()) at the end. On Mar 17, 6:37 am, sumit asok wrote: > Hi, > > I'm trying to write a file from an Http post reply to a file on the > sdcard. Everything works fine until the byte array of data is > re

[android-developers] Best practice for downloading a file - URLConnection, HttpClient, Intent, ...

2010-03-11 Thread westmeadboy
If an app needs to download some critical data (without the data it cannot function) of several MB, what is the best practice? The app would start, a prompt would be shown to confirm download, download would commence, and the user would be prevented from going further until the download successful

[android-developers] Re: The "life cycle of a static"

2010-03-10 Thread westmeadboy
r, is this a good approach? Is it not possible that Activity1 is killed but Activity2 stays alive? If so, then Activity2's db calls will suddenly fail. On Mar 8, 2:16 pm, Mark Murphy wrote: > westmeadboy wrote: > > Is it true that Activity1 would be automatically recreated? In othe

[android-developers] Re: Activity without ANY screen output possible?

2010-03-10 Thread westmeadboy
If you have an application with no visible activity then how does the supports-screen tag (in the Manifest) affect app visibility (in the Market) etc? In other words... I believe that if minSdk is set to 1.5 and supports-screen is not specified, then the app will not be visible to ldpi devices. I

[android-developers] Re: The "life cycle of a static"

2010-03-08 Thread westmeadboy
code. Initially, my app was just one activity and so I did all the app configuration in that activity's onCreate() method. It felt wrong then, and now I know why :) Any thoughts? On Mar 8, 1:25 pm, Mark Murphy wrote: > westmeadboy wrote: > > But it seems that its important to know

[android-developers] Re: The "life cycle of a static"

2010-03-08 Thread westmeadboy
On Mar 8, 2:02 pm, Mark Murphy wrote: > westmeadboy wrote: > > 1. Quick and dirty workaround: In the example I gave, if > > Activity2.onCreate() is called and the static has not been set, then > > call finish(). I assume this will this just lead to Activity1 being > >

[android-developers] Re: The "life cycle of a static"

2010-03-08 Thread westmeadboy
ain? A new VM process will be created,  a new instance of > MyActivity will be created and resumed! "MyActivity.onCreate()" will > be executed in a completely new VM process this time!! > > NOT TESTED AND VERIFIED! > > On Mar 7, 6:12 pm, westmeadboy wrote: > > &g

[android-developers] Re: Conventions about using SD card

2010-03-07 Thread westmeadboy
I noticed a few apps use the convention: /Android/data/ For example, Google Earth places its cache on my Nexus One at /sdcard/ Android/data/com.google.earth Is this is a good standard to follow? It would be really good if there were at least some guidelines to follow. On a related note, I woul

[android-developers] The "life cycle of a static"

2010-03-07 Thread westmeadboy
When starting a new Activity, I want to pass a complex object and do so by using this approach: MyActivity.COMPLEX_OBJ = myComplexObj; // which is definitely NOT NULL! Intent intent = new Intent(); intent.setClass(this, MyActivity.class); startActivity(intent); and then in MyActivity: @Override

[android-developers] Programmatically check whether Market app shows copy-protected apps

2010-03-06 Thread westmeadboy
Following on from an earlier thread of how to check if the market will show paid apps: http://groups.google.com/group/android-developers/browse_thread/thread/1a095d3e701550cb I'm also interested in how to check whether it will show copy- protected apps. >From what I've read, copy-protected apps

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-04 Thread westmeadboy
On Mar 4, 11:11 pm, Mark Murphy wrote: > Catch and report your exceptions from the field back to you, and you may > not need them to contact support: Ditto that. I've been using a combination of Flurry and default exception handling for months now and its been a life saver. To date, I've only re

[android-developers] Re: Layout problems when setting windowIsFloating to true

2010-03-03 Thread westmeadboy
30 pm, Mark Murphy wrote: > westmeadboy wrote: > > I'm inflating them using: inflate(R.layout.whatever, null) > > > I just tried it your way but I get the same result. > > Phooey. That solves some layout problems with list rows, though usually > with RelativeLayouts as

[android-developers] Re: Layout problems when setting windowIsFloating to true

2010-03-03 Thread westmeadboy
I'm inflating them using: inflate(R.layout.whatever, null) I just tried it your way but I get the same result. BTW, in getView(), I never reuse the convertView. I just inflate a new one each time. Anyway, isn't it odd that windowIsFloating should affect things in this way? On Mar 3, 10:16 pm, M

[android-developers] Re: Layout problems when setting windowIsFloating to true

2010-03-03 Thread westmeadboy
escription with "list item". On Mar 3, 10:08 pm, Mark Murphy wrote: > westmeadboy wrote: > > I've got a ListActivity using the Theme.Dialog theme and windowNoTitle > > set to true. > > > Unfortunately, when I do this, the header rows (just normal rows in >

[android-developers] Layout problems when setting windowIsFloating to true

2010-03-03 Thread westmeadboy
I've got a ListActivity using the Theme.Dialog theme and windowNoTitle set to true. Unfortunately, when I do this, the header rows (just normal rows in the list but they look like sub headers) refuse to fill_parent width (instead, they wrap_content - the header text). I noticed this was not a pro

[android-developers] Re: Activity design advice

2010-03-03 Thread westmeadboy
Yup, you just need to set the android:theme attribute in your activity tag in your manifest. On Mar 3, 6:16 pm, Ne0 wrote: > I have a service running that grabs the users attention with a > notification. What i would like to happen when the user clicks on the > notification is for it to launch a

[android-developers] Re: How to automatically show a sub menu at startup?

2010-03-03 Thread westmeadboy
Just seems excessive. The only preference is a radio button with two options. On Mar 3, 6:29 pm, TreKing wrote: > On Wed, Mar 3, 2010 at 11:24 AM, westmeadboy wrote: > > > No, I have a menu called "Preferences" (visible when you press the > > Menu button). When you pr

[android-developers] Re: How to automatically show a sub menu at startup?

2010-03-03 Thread westmeadboy
as a dialog box instead of sub menus... On Mar 3, 6:19 pm, TreKing wrote: > On Wed, Mar 3, 2010 at 8:31 AM, westmeadboy wrote: > > I've noticed that some users have not found my app's preferences sub > > menu, so I want to show that sub menu when the user first-time-ever

[android-developers] How to automatically show a sub menu at startup?

2010-03-03 Thread westmeadboy
I've noticed that some users have not found my app's preferences sub menu, so I want to show that sub menu when the user first-time-ever starts the app. Since onCreateOptionsMenu() would not have been called yet, how can I programmatically show such a sub menu? BTW: openOptionsMenu() is not what

[android-developers] Re: Developing android apps that auto-update/install

2010-03-02 Thread westmeadboy
Out of interest, what is the simplest way to set up that kind of online checking? I'm asking as someone who doesn't maintain any websites (but does own some domains)... One way I thought of was to use Dropbox and stick a small text file on that which can then be read from the app. However, I find

[android-developers] Re: Why is HTC Hero using drawable-ldpi?

2010-03-01 Thread westmeadboy
cular fields of that structure it knows > about.) > > On Fri, Jan 29, 2010 at 1:45 AM, westmeadboy wrote: > > > > > > > You mean, it ignores the "ldpi" component of the folder name and so > > treats the "drawable-ldpi" folder the same as a "

[android-developers] Re: Using relative paths with "attach database" in SQLite?

2010-03-01 Thread westmeadboy
Hmmm - it seems its relative to root which means context.getDatabasePath("user.db").getPath() does the trick: db.execSQL("attach database ? as userdb", new String[] {context.getDatabasePath("user.db").getPath()}); On Mar 1, 4:46 pm, westmeadboy wrote: > I ev

[android-developers] Using relative paths with "attach database" in SQLite?

2010-03-01 Thread westmeadboy
I eventually got "attach database" to work by using this syntax: db.execSQL("attach database ? as userdb", new String[]{"/data/data/ com.mycompany.myapp/databases/user.db"}); However, I cannot seem to get this working using relative paths. What is the path relative to? -- You received this mes

[android-developers] Re: Programmatically check whether Market shows paid apps

2010-03-01 Thread westmeadboy
themes (menu > settings > get add-ons): The first one > to Market, and the second one to our developer homepage. We hope > people figure that they should try the second link if the first one > does not show sensible results. > > Peliwww.openintents.org > > On Mar 1, 10:27 a

[android-developers] Programmatically check whether Market shows paid apps

2010-03-01 Thread westmeadboy
I am about to release a "Pro" version of my app and so would like to provide "Get the Pro" links. However, it makes no sense to do this if the user is taken to the Market and then can't see the Pro app (i.e. they are in a non-paid app country). Maybe, such users would be sent to a 3rd party Market

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-02-28 Thread westmeadboy
On Feb 27, 8:30 pm, Streets Of Boston wrote: > And only a fraction of the 30% cut goes to Google for payment > processing and running the martket infrastructure. The lion's share > goes to the various carriers. I use the Market almost always over Wi-Fi. Where does the carrier fit into that pictur

[android-developers] Re: Which View/Layout does the Market app (1.6) details activity use?

2010-02-26 Thread westmeadboy
hour :) On Feb 26, 2:44 pm, Mark Murphy wrote: > westmeadboy wrote: > > ok, ListView it is! > > > I think the thing that bothers me, is I would like to define the whole > > layout in XML (as if I were using a LinearLayout). I wonder if its > > still possible (or recommen

[android-developers] Re: Which View/Layout does the Market app (1.6) details activity use?

2010-02-26 Thread westmeadboy
, Mark Murphy wrote: > westmeadboy wrote: > > I see that the description section is not selectable and assume it is > > pretty trivial to define whether something like that (and headings) is > > selectable or not... > > > In my case, some rows are selectable and others h

[android-developers] Re: Which View/Layout does the Market app (1.6) details activity use?

2010-02-26 Thread westmeadboy
individual words are clickable). Given this, and if I understand you correctly, then the MergeAdapter is the best way to go? On Feb 26, 2:07 pm, Mark Murphy wrote: > westmeadboy wrote: > > In the Market activity, only the "Comments" section can really be > > described

[android-developers] Re: Which View/Layout does the Market app (1.6) details activity use?

2010-02-26 Thread westmeadboy
6, 1:46 pm, Mark Murphy wrote: > westmeadboy wrote: > > I want to do something very similar (in terms of appearance) to the > > app details activity of the Market app. > > > It looks like a cross between linear layout (not all rows the same), > > list (scrolling nature), p

[android-developers] Which View/Layout does the Market app (1.6) details activity use?

2010-02-26 Thread westmeadboy
I want to do something very similar (in terms of appearance) to the app details activity of the Market app. It looks like a cross between linear layout (not all rows the same), list (scrolling nature), preferences (headings). My guess is its a linear layout in a scroll view (ignoring activity hea

[android-developers] SQLiteDiskIOException when performing CREATE INDEX

2010-02-17 Thread westmeadboy
I have an SQLite database table with about 200,000 rows. I perform a CREATE INDEX in this way: db.beginTransaction(); try { db.execSQL("CREATE INDEX idx1 ON mytable (_id ASC)") db.setTransactionSuccessful(); } finally { db.endTransaction(); } Note: The code isn't exactly t

[android-developers] Layout supporting "word wrap" for Views?

2010-02-13 Thread westmeadboy
I found this question asked over a year ago but no solution was found: http://groups.google.com/group/android-developers/browse_thread/thread/15d8e7e8bc46d279/4e11259e78e6d654 Essentially, I want to use a LinearLayout with horizontal orientation, but when the child views' total width is greater t

[android-developers] Re: Easiest way to programmatically check if the Market app is installed?

2010-02-09 Thread westmeadboy
Super duper :) I tried queryIntentActivities() and that gave me one activity: com.android.vending.AssetInfoActivity So, yes, I can just check that result for an empty list. Any ideas how Archos 5 Internet Tablet handles this URI? On Feb 9, 5:18 pm, "Mark Murphy" wrote: > > Thanks Mark. Here is

  1   2   >