Well of course there was a coding error in that last experiment.  When
I pass a file with the intent then the HTC viewer is happy to
acknowledge its existence.  So to be reasonably certain of finding all
apps that can handle an intent apparently you have to create the
complete intent.

On Oct 4, 3:07 pm, DanH <[email protected]> wrote:
> Ran another experiment where I made the intent passed to query exactly
> match the one that works to start the activity later.  Still no joy.
>
> On Oct 4, 1:44 pm, DanH <[email protected]> wrote:
>
> > And, if we skip the test and let the code continue on, a PDF is
> > successfully displayed through a simple startActivity with an intent
> > for ACTION_VIEW on a PDF file.
>
> > On Oct 4, 1:23 pm, Mark Murphy <[email protected]> wrote:
>
> > > On Mon, Oct 4, 2010 at 2:17 PM, DanH <[email protected]> wrote:
> > > > Why would this viewer not be found???
>
> > > > (The meaning of MATCH_DEFAULT_ONLY is unclear to me, but it appears to
> > > > imply that only apps that would respond to a vanilla "click" on the
> > > > file in a file list should be selected.  Surely the default PDF viewer
> > > > would respond to this, no?)
>
> > > Have you tried with 0 in place of MATCH_DEFAULT_ONLY? Perhaps that
> > > activity does not have the default category specified in its intent
> > > filter.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to