Remove the code extends Activity as you have no need to extend your class that you are creating since it does not rely on any activity related functionality Where you call startActivity(intent) replace it with context. StartActivity(intent).
Remove the code extends Activity as you have no need to extend your class that you are creating since it does not rely on any activity related functionality. Where you call startActivity(intent); replace it with context. StartActivity(intent).
Thank you! You solved my problem! – Kou Oct 13 at 14:04.
You should change the class to Extends Dialog and not activity. Also for Try this: Check out this tutorial on how to create a custom dialog. Custom Dialog Also Here Another Tutorial And Here.
Also Try removing the Final from (Final Context context) – coder_For_Life22 Oct 13 at 13:18 Thank you for your advice coder_For_Life22 but it still gives me error... I tried to change the super class from Activity to Dialog but if I do that startActivity won't work... – Kou Oct 13 at 13:27 Check out my edit. Ive posted full tutorials that will fix your issue, and put you on the correct path to creating the dialog you need above. – coder_For_Life22 Oct 13 at 13:32 Thanks for the links!
I'm reading! – Kou Oct 13 at 13:37 Great They are good tutorials and will definitely fix your problem and have you on your way. – coder_For_Life22 Oct 13 at 13:40.
I am developing an Android app, this app has a dozen of Activities, each one is for a corresponding screen. Now I have this common subtitle bar on top of the screens. This subtitle bar has a button to display an alert dialog which shows link list to go to a different screen.
From inside of onCreate. It can display the alertDialog, but whenever I press pageA link, it fails with an unexpected error. What am I doing wrong?
Could someone help me? Or please suggest an alternative way.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.