I am working on the fragments. but I get struct at the point..please help me to solve this :     I want to pass the listener parameter to the fragment but I am getting the error at  
 i have declared the editTextAge globally 

editTextAge.setOnClickListener(new View.OnClickListener() {
                DlgNumberPickerFragm newFragment = new DlgNumberPickerFragm();
    
                @Override
                public void onClick(View v) {
                    DlgNumberPickerFragm.dlgAgePicker(R.string.app_name, R.drawable.imgdialogbox, "\t\t\tSelect Age", AdptCardUI.this).show(this.newFragment.getFragmentManager(), "first");
                }
            });
    
    
    
    
    at AdptCardUI.this).show(this.newFragment.getFragmentManager(), "first");
                }
            });
    
    i have tried 
    
    
    this).show(this.getFragmentManager();
    
    this).show(this.getChildFragmentManager();
    
    this).show(this.newFragment.getFragmentManager();
    
    AdptCardUI.this).show(this.newFragment.getFragmentManager();
    
    
    
    but i didnt got any answer please help me in this