AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);
when i wrote this error is shawn that
The constructor AlertDialog.Builder(new Runnable(){}) is undefined
.. so just tell me what i m do…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
are you trying to run a dialog from Runnable? you cannot pass runnable as the context. you should replace “this” by YourActivityClassName.this in order to pass your activity’s context into constructor.
if this construction is within a thread, then i guess it’s kinda wrong, cause you shound’t perform any UI operations from different threads. you should use handlers to pass messages to the main activity.. i may be wrong though, cause i don’t see the whole code