Determining if an Activity exists on the current device?
Posted
by stormin986
on Stack Overflow
See other posts from Stack Overflow
or by stormin986
Published on 2010-05-20T23:51:33Z
Indexed on
2010/05/21
3:40 UTC
Read the original article
Hit count: 186
Is there a way to check and see if an Activity exists on your device? If I have a youtube video link I want to specify it open in the YouTube PlayerActivity. However, I don't want to crash if for some reason they don't have it.
Is there a way to check and see if the activity exists? I don't think I can catch the runtime exception since startActivity() doesn't throw it.
© Stack Overflow or respective owner