OK then, use PackageManager to check for a match beforehand.
24.02.2011 12:27 пользователь "b_t" <bartata...@gmail.com> написал:
> This is not good for me. I would like to show a list to the user to
> select an action what to do.
>
> So I can't start the activity before to check if it exists or not.
> And it is not elegant that after he clicks on it I say, oops I can't
> do that.
>
> And I would like to set this intent in an appwidget.
>
>
> On Feb 24, 9:49 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
>> You can just call startActivity without any prior checks, and catch
>> ActivityNotFoundException.
>>
>> -- Kostya
>>
>> 24.02.2011 11:45, b_t пишет:
>>
>> > Hi,
>>
>> > ACTION_NETWORK_OPERATOR_SETTINGS says that "In some cases, a matching
>> > Activity may not exist"
>>
>> > How can I check if there is an activity or not before I try to start
>> > the activity?
>>
>> > I wanted to show a feature only if this activity exists.
>>
>> > Thanks, Tamás
>>
>> --
>> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> --
> 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

-- 
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