Note that there are some explanatory texts on larger screens.

plurals
  1. PODialog not displaying from fragmentActivity in android
    primarykey
    data
    text
    <p>I want to display a dialog inside the class that extends FragmentActivity.I have tried in many ways.Atlast I tried <a href="http://vinaygopinath.wordpress.com/2012/11/10/alertdialog-using-fragment/" rel="nofollow">this link</a>. I have tried the samething but iam getting the following error message.</p> <pre><code> 05-14 10:15:28.821: E/AndroidRuntime(2927): java.lang.IllegalStateException: Activity has been destroyed 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1342) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.support.v4.app.DialogFragment.show(DialogFragment.java:127) 05-14 10:15:28.821: E/AndroidRuntime(2927): at com.sriseshaa.ecgviewer.FragmentTabActivity$1$1.run(FragmentTabActivity.java:70) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.os.Handler.handleCallback(Handler.java:725) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.os.Handler.dispatchMessage(Handler.java:92) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.os.Looper.loop(Looper.java:137) 05-14 10:15:28.821: E/AndroidRuntime(2927): at android.app.ActivityThread.main(ActivityThread.java:5039) 05-14 10:15:28.821: E/AndroidRuntime(2927): at java.lang.reflect.Method.invokeNative(Native Method) 05-14 10:15:28.821: E/AndroidRuntime(2927): at java.lang.reflect.Method.invoke(Method.java:511) 05-14 10:15:28.821: E/AndroidRuntime(2927): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 05-14 10:15:28.821: E/AndroidRuntime(2927): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 05-14 10:15:28.821: E/AndroidRuntime(2927): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>FragmentTabActivity.java:70 is </p> <pre><code> adFragment.show(getSupportFragmentManager(), "dialog"); </code></pre> <p>I have called the dialog by the following code snippet</p> <pre><code> Bundle bundle = new Bundle(); bundle.putString("title", "Message"); bundle.putString("message", StaticHelper.l); bundle.putString("positive", "Ok"); bundle.putString("negative", "Cancel"); // bundle.putInt("id", mIndex++); AlertDialogFragment adFragment = new AlertDialogFragment(); adFragment.setArguments(bundle); adFragment.show(getSupportFragmentManager(), "dialog"); </code></pre> <p>What I have missed? and what is the problem in this? please help me.Thank u!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload