I would recommend you re-read the earlier post from Marcin.  Let your
web page detect a Mobile browser and display a market:// link to your
app.

If the user follows the link to the Market, it will detect if the app
is already loaded on your phone and will prompt you to either Install
it or Open it....which is the behavior you are asking for.

I also don't understand how the user can try to 'launch your app if it
is not installed' - if it's not installed he won't be able to see it
let alone launch it, so he's not going to get any 'ugly error'.  Of
course, if what you are really trying to do is get your web page to
launch an app on my phone when I visit it then.........please give me
the address of your web page so I know never to go there. :-)


On Jan 14, 2:10 pm, ls02 <agal...@audible.com> wrote:
> The app is launched from the web page to perform certain action. I do
> not want to discuss why I need to do this. I want to know how to
> detect app is installed or not and if it is not possible how to handle
> the error in the web page when user tries to launch my app and it is
> not installed. Right now the browser gives the same ugly error as
> general invalid link error.
>
> On Jan 14, 1:01 pm, TreKing <treking...@gmail.com> wrote:
>
>
>
>
>
>
>
> > On Fri, Jan 14, 2011 at 11:35 AM, ls02 <agal...@audible.com> wrote:
> > > But can I at least handle exception when user clicks on the link to open
> > > the app and the app is not installed?
>
> > What reason do you have for trying to launch your own app from your website?
> > If the user has your app I'm sure they can figure out how to open it.
>
> > --------------------------------------------------------------------------- 
> > ­----------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to