Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
The key was having both action and category in the intent filter. Either one by itself didn't match the intent. -- Kostya 30.07.2010 21:30, Mark Murphy пишет: Yes, I think I barked up the wrong tree by suggesting to get rid of the DEFAULT category. Glad to know this works! On Fri, Jul 30, 2

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 11:29 AM, Bret Foreman wrote: > Note that there's a choice > called "clear task on launch", a phrase that you can search in vain > for in the manifest documentation. Ah, but if you remove the spaces, clearTaskOnLaunch is in the docs. > It seems like people mostly build pr

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 1:56 PM, Bret Foreman wrote: > Now, how do we get this documented so the capability doesn't disappear > in later releases? Ideally, this would become part of the Android > regression tests. Any ideas? File an issue on b.android.com, or submit a documentation patch and see

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Mark Murphy
Yes, I think I barked up the wrong tree by suggesting to get rid of the DEFAULT category. Glad to know this works! On Fri, Jul 30, 2010 at 12:33 PM, Kostya Vasilyev wrote: > Bret & Mark, > > Sorry for interrupting, but I also got curious about this. It seems like a > neat way to bring up the Abou

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Bret Foreman
It worked! Now, how do we get this documented so the capability doesn't disappear in later releases? Ideally, this would become part of the Android regression tests. Any ideas? Bret -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
Ditto - I was also about to suggest this. Base Preference class is quite complete, it handles drawing the title and summary with proper fonts, and has an onClick() method. Another way - instead of subclassing Preference, add a bit of code with setOnPreferenceClickListener. -- Kostya 30.07.

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Kostya Vasilyev
Bret & Mark, Sorry for interrupting, but I also got curious about this. It seems like a neat way to bring up the About box without making the context menu too large. This works, no problems at all: values/prefs.xml: . . the manifest: android:label="@string/about_activity" andr

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-30 Thread Bret Foreman
Mark, Well, the manifest documentation is pretty sparse so it's not surprising that it doesn't mention this case. A good example is the screen of choices that face you when you look at the Application tab in the manifest editor in Eclipse and click on one of the activities or services. That calls

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 9:15 PM, Bret Foreman wrote: > I removed the intent filter and still got the FC with the > ActivityNotFoundException. Is there a better way to debug this stuff > rather than trial and error? I can't find where what you're doing is documented, so I have no idea what the rig

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Bret Foreman
I removed the intent filter and still got the FC with the ActivityNotFoundException. Is there a better way to debug this stuff rather than trial and error? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your que

Re: [android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Mark Murphy
Try getting rid of the . On Thu, Jul 29, 2010 at 7:45 PM, Bret Foreman wrote: > I changed the manifest to look as below and it still exits with the > same error. > >       >                 >                         android:name="android.intent.category.DEFAULT"/> >                 >            

[android-beginners] Re: Launching an "About" screen from Preferences

2010-07-29 Thread Bret Foreman
I changed the manifest to look as below and it still exits with the same error. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging