This week is really hard, since the Tuesday my laptop began to "strike", and finally re-install the system ... Just pity my those who have been lattice of software (sad spicy big)! Don't mention the past, life a few times the wind and rain ...
Simply say (this is not an introduction) Android dialog box
1 //android dialog Box2Alertdialog.builder Builder =NewAlertdialog.builder (mainactivity. This);//Create dialog box3Builder.settitle ("warning");//Set Title4Builder.setmessage ("OK to delete" +person.getname () + "?) ");//Set Content5Builder.seticon (Android. R.drawable.ic_btn_speak_now);//Set icon6Builder.setpositivebutton ("Yes",NewDialoginterface.onclicklistener () {7 @Override8 Public voidOnClick (Dialoginterface Dialoginterface,inti) {9List.remove (person);//Remove from collectionTenSqlitedatabase db =helper.getwritabledatabase (); OneDb.delete ("Fruitinfo", "Fname=?",NewString[]{person.getname ()});//removing from the database ANotifydatasetchanged ();//Refresh Interface - } -});//Set button and function implementation theBuilder.setnegativebutton ("No",NULL);//Set Button -Builder.show ();//Show dialog Box
That's it, I'm going to tidy up my "sad thing".
In addition: Trouble has to understand sublime of the Daniel, sublime plug-ins are not available problems, thank you.
android dialog box