Click here to Skip to main content
15,898,938 members
Home / Discussions / Android
   

Android

 
AnswerRe: Service not always being restarted after being stopped Pin
gupta.avinash16-Oct-14 8:25
professionalgupta.avinash16-Oct-14 8:25 
GeneralRe: Service not always being restarted after being stopped Pin
NormR116-Oct-14 8:35
NormR116-Oct-14 8:35 
Questionweb developer Pin
Member 111167273-Oct-14 0:21
Member 111167273-Oct-14 0:21 
AnswerRe: web developer Pin
Richard MacCutchan3-Oct-14 2:53
mveRichard MacCutchan3-Oct-14 2:53 
AnswerRe: web developer Pin
David Crow7-Oct-14 3:33
David Crow7-Oct-14 3:33 
AnswerRe: web developer Pin
jorgesys9-Oct-14 8:57
jorgesys9-Oct-14 8:57 
AnswerRe: web developer Pin
Dominic Burford10-Oct-14 4:55
professionalDominic Burford10-Oct-14 4:55 
Questiondetect when the dialog is load in android - And do something in response to Pin
goldsoft2-Oct-14 5:07
goldsoft2-Oct-14 5:07 
this is my dialog

Java
//================== the dialog ================
@Override
protected  Dialog onCreateDialog(int id, Bundle args){
    switch(id){
            case 1:
                return new AlertDialog.Builder(this)
                .setIcon(R.drawable.ic_launcher)
                .setTitle("Pick some")

                .setPositiveButton("OK", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog,int whichButton)
                {
                   //do something
                }
                })

                .setNegativeButton("cancel", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog,int whichButton)
                {
                    //do something
                }
                })

                .setMultiChoiceItems(items, itemsChecked, new DialogInterface.OnMultiChoiceClickListener() {
                public void onClick(DialogInterface dialog, int which,boolean isChecked) {
                    //Toast.makeText(getBaseContext(),items[which] + (isChecked ? " checked!":" unchecked!"),Toast.LENGTH_SHORT).show();
                }
                }
                )
                .create();  


How can I detect when the dialog is load ?

i need to do something when the dialog is up and see it on the screen

* this is a multi-checkbox dialog, and i need to uncheck all.

thanks

modified 4-Oct-14 6:24am.

AnswerRe: detect when the dialog is load in android - And do something in response to Pin
Richard MacCutchan2-Oct-14 5:22
mveRichard MacCutchan2-Oct-14 5:22 
GeneralRe: detect when the dialog is load in android - And do something in response to Pin
goldsoft2-Oct-14 5:46
goldsoft2-Oct-14 5:46 
GeneralRe: detect when the dialog is load in android - And do something in response to Pin
Richard MacCutchan2-Oct-14 6:01
mveRichard MacCutchan2-Oct-14 6:01 
GeneralRe: detect when the dialog is load in android - And do something in response to Pin
goldsoft3-Oct-14 0:34
goldsoft3-Oct-14 0:34 
QuestionRe: detect when the dialog is load in android - And do something in response to Pin
Richard MacCutchan3-Oct-14 2:51
mveRichard MacCutchan3-Oct-14 2:51 
AnswerRe: detect when the dialog is load in android - And do something in response to Pin
goldsoft4-Oct-14 0:25
goldsoft4-Oct-14 0:25 
GeneralRe: detect when the dialog is load in android - And do something in response to Pin
Richard MacCutchan4-Oct-14 0:47
mveRichard MacCutchan4-Oct-14 0:47 
AnswerRe: detect when the dialog is load in android - And do something in response to Pin
David Crow2-Oct-14 8:23
David Crow2-Oct-14 8:23 
GeneralRe: detect when the dialog is load in android - And do something in response to Pin
goldsoft2-Oct-14 9:52
goldsoft2-Oct-14 9:52 
Questionswiping the screen canvas is drawn using bitmap Pin
Member 1110878929-Sep-14 0:46
Member 1110878929-Sep-14 0:46 
QuestionExtracting json and display data in options menu as a menuitems. Pin
Member 1110878926-Sep-14 0:29
Member 1110878926-Sep-14 0:29 
SuggestionRe: Extracting json and display data in options menu as a menuitems. Pin
Richard MacCutchan26-Sep-14 0:40
mveRichard MacCutchan26-Sep-14 0:40 
GeneralRe: Extracting json and display data in options menu as a menuitems. Pin
Member 1110878926-Sep-14 0:52
Member 1110878926-Sep-14 0:52 
GeneralRe: Extracting json and display data in options menu as a menuitems. Pin
Richard MacCutchan26-Sep-14 1:01
mveRichard MacCutchan26-Sep-14 1:01 
QuestionExtracting name and values from JSON object Pin
Member 1110878925-Sep-14 0:01
Member 1110878925-Sep-14 0:01 
AnswerRe: Extracting name and values from JSON object Pin
Richard MacCutchan25-Sep-14 0:49
mveRichard MacCutchan25-Sep-14 0:49 
GeneralRe: Extracting name and values from JSON object Pin
Member 1110878925-Sep-14 1:02
Member 1110878925-Sep-14 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.