Click here to Skip to main content
14,933,534 members
Home / Discussions / Android
   

Android

 
GeneralRe: Application Architecture Pin
ericgahn27-Oct-14 7:16
Memberericgahn27-Oct-14 7:16 
GeneralRe: Application Architecture Pin
Dominic Burford27-Oct-14 7:20
professionalDominic Burford27-Oct-14 7:20 
GeneralRe: Application Architecture Pin
ericgahn27-Oct-14 8:15
Memberericgahn27-Oct-14 8:15 
GeneralRe: Application Architecture Pin
dr.samuel.john27-Oct-14 8:04
Memberdr.samuel.john27-Oct-14 8:04 
QuestionSetBackroundDrawable? Pin
András Ferencz18-Oct-14 10:02
MemberAndrás Ferencz18-Oct-14 10:02 
Questionremote desktop sharing Pin
Member 1101928217-Oct-14 20:35
MemberMember 1101928217-Oct-14 20:35 
QuestionService not always being restarted after being stopped Pin
NormR112-Oct-14 5:18
MemberNormR112-Oct-14 5:18 
AnswerRe: Service not always being restarted after being stopped Pin
gupta.avinash16-Oct-14 7:09
professionalgupta.avinash16-Oct-14 7:09 
GeneralRe: Service not always being restarted after being stopped Pin
NormR116-Oct-14 7:17
MemberNormR116-Oct-14 7:17 
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
MemberNormR116-Oct-14 8:35 
Questionweb developer Pin
Member 111167273-Oct-14 0:21
MemberMember 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
MemberDavid Crow7-Oct-14 3:33 
AnswerRe: web developer Pin
jorgesys9-Oct-14 8:57
Memberjorgesys9-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
Membergoldsoft2-Oct-14 5:07 
this is my dialog

//================== 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
Membergoldsoft2-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
Membergoldsoft3-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
Membergoldsoft4-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
MemberDavid Crow2-Oct-14 8:23 

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.