Linked Questions

2 votes
1 answer
3k views

I want to open dialog box when i click on ImageView in Recyclerview. When i show Toast it's working(Showing) but when i want to show AlertDialog Box it's not working (on image click application ...
Amit Sharma's user avatar
0 votes
1 answer
3k views

My code: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R....
Jhon Smith's user avatar
-3 votes
3 answers
1k views

I am trying to check internet connectivity from broadcast receiver and if there is not internet want to show an alert dialog but here I receives an error ablove mentioned due to AlertDialog.Builder(...
SwagDevelopers's user avatar
1 vote
5 answers
263 views

Just a simple things, the app should shows dialog box when button is clicked. But when it is clicked, it crashed. And I don't understand what are the logCat error trying to said. addImage....
John's user avatar
  • 694
0 votes
3 answers
1k views

I want to create a dialog box when a button is clicked inside the dialog box I need 2 radio buttons which are linked with mobile default music and other is external memory of the mobile. Anyone can ...
Naseer Ahammed's user avatar
3 votes
2 answers
227 views

In the following code I want to open the dialog box when the mIndex is 0. The code is going in the 'if' part. But is not opening the dialog Box instead showing the following exception. Code: ...
Ajinkya jadhav's user avatar
0 votes
0 answers
150 views

I am displaying some data in a recycler listview based on retrofit post back data.It is working,Now I am trying to show a Bottom sheet dialog on Listview ItemClick.For this I have implemented item ...
roy's user avatar
  • 141
0 votes
1 answer
139 views

I am trying to create an alert dialog popup and have tried several different methods, they all result in this error. "android.view.WindowManager$BadTokenException: Unable to add window -- token null ...
baldazan's user avatar
309 votes
16 answers
201k views

I'm trying to open a dialog window, but every time I try to open it it throws this exception: Uncaught handler: thread main exiting due to uncaught exception android.view.WindowManager$...
Dan Monego's user avatar
  • 10.1k
282 votes
7 answers
87k views

I do not fully understand the activity context vs the application context. As I understand it so far, each is an instance of its class, which means that some programmers recommend you to use this....
Norfeldt's user avatar
  • 9,620
136 votes
12 answers
146k views

I get the following Android exception when I try to open a dialog. Can someone please help me understand what is going on and how can I fix this problem? android.view.WindowManager$BadTokenException: ...
michael's user avatar
  • 111k
111 votes
18 answers
142k views

I can't seem to grasp why this is happening. This code: mProgressDialog = ProgressDialog.show(this, "", getString(R.string.loading), true); works just fine. However, this code: mProgressDialog = ...
Felix's user avatar
  • 89.7k
135 votes
11 answers
155k views

From my main activity, I need to call an inner class and in a method within the class, I need to show AlertDialog. After dismissing it, when the OK button is pressed, forward to Google Play for ...
MSIslam's user avatar
  • 4,767
50 votes
11 answers
65k views

I'm using ProgressDialog to prevent the user from interacting while the device is downloading stuff from internet. everything was working fine until my client managed to produce this bug : "07-06 ...
Jason Rogers's user avatar
  • 19.4k
28 votes
10 answers
83k views

Hy. I tried to create an alert dialog but when I run my application, is throw an exception 09-26 12:43:21.949: E/AndroidRuntime(14618): FATAL EXCEPTION: main 09-26 12:43:21.949: E/AndroidRuntime(...
user2576008's user avatar

15 30 50 per page