AlertDialog alertDialog;
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.linkpopup,null);
CheckBox dontdisplay=(CheckBox)layout.findViewById(R.id.dontdisplay);
Button popupok=(Button)layout.findViewById(R.id.linkpopupok);
dontdisplay.setOnCheckedChangeListener(new OnCheckedChangeListener(){
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked)
db.updateDegfaultvalues("dontflag",1);
else
db.updateDegfaultvalues("dontflag",0);
}
});
popupok.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0) {
alertDialog.cancel();
}
});
builder.setView(layout);
alertDialog = builder.create();
alertDialog.show();
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.linkpopup,null);
CheckBox dontdisplay=(CheckBox)layout.findViewById(R.id.dontdisplay);
Button popupok=(Button)layout.findViewById(R.id.linkpopupok);
dontdisplay.setOnCheckedChangeListener(new OnCheckedChangeListener(){
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked)
db.updateDegfaultvalues("dontflag",1);
else
db.updateDegfaultvalues("dontflag",0);
}
});
popupok.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0) {
alertDialog.cancel();
}
});
builder.setView(layout);
alertDialog = builder.create();
alertDialog.show();
6 comments:
Great blog post. I used to be checking continuously this blog and I am impressed! Extremely helpful information specially the closing phase :) I deal with such info a lot. I used to be seeking this particular information for a very lengthy time. Thanks and good luck.
custom training
This blog is given very good information about this topic and the blog very knowledge full and all post are attractive
servidor de nuvem no brasil
Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more Android Training institute in chennai with placement | Best Android Training in velachery
Good information .thank you for sharing Android Online Training
Very Good Informative Content Android Online Training
Best casino bonus codes - DrMCD
Free spins casino bonus 정읍 출장마사지 codes, bonus codes and 화성 출장안마 promotions · 5 star casino bonus · 50 free spins casino bonus 김포 출장안마 · 30 free spins casino bonus · 25 free spins 전라북도 출장안마 casino bonus · 30 free spins 정읍 출장안마 casino bonus.
Post a Comment