Hi,

I have an alert dialog i show after the user selects a certain menu
item. If the answer is 'yes' to the alert dialog it works fine as the
next menu that is shown is the submenu (looks like a context menu) for
that option.

however, what i want to try to do is if the answer is 'no' to the
alerg dialog, i want to be able to not have the submenu show up. right
now there's nothing i can do to stop this submenu from showing up.

it is specified in the xml menu layout. is that the problem? does it
need to be dynamic? seems like the alertdialog context/scope doesn't
have enough privilege to do any of these:
----------------------------------------------------------------------------------------------------------------------------------
                                                                        // 
dialog.cancel();
                                                                        // 
activity.setContentView(R.layout.viewdocument);
                                                                        // 
activity.closeOptionsMenu();
                                                                        // 
activity.closeContextMenu();
                                                                        // 
closeContextMenu();
----------------------------------------------------------------------------------------------------------------------------------
        <item android:id="@+id/done" android:icon="@drawable/ic_logout"
                android:title="@string/done">
                <!-- "done with document" submenu -->
                <menu>
                        <item android:id="@+id/invite_signer" 
android:title="@string/
invite_signer" />
                        <item android:id="@+id/just_me_signing" 
android:title="@string/
just_me_signing" />
                        <item android:id="@+id/cancel_done" 
android:title="@string/cancel" /
>
                </menu>
        </item>
----------------------------------------------------------------------------------------------------------------------------------
thanks!
--Edmund

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