Hi,
I've wanted to make this sample work, but 2 problems have occured.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentAlertDialog.html

I changed line "newFragment.show(getFragmentManager(), "dialog");" to
"newFragment.show(getSupportFragmentManager(), "dialog");" but it
still doesn't work. (The method getSupportFragmentManager is undefined
for the type FragmentAlertDialog .)

Second problem is on lines
"((FragmentAlertDialog)getActivity()).doPositiveClick(); and
((FragmentAlertDialog)getActivity()).doNegativeClick();".
(Cannot cast from FragmentActivity to FragmentAlertDialog.)

I downloaded Android compatibile package. And I added it to my project
by rightclicking on project -> android tools -> add compatibility
package.

Thank you in advance

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