Android Dialog and Intents?

You can display the dialog on any view click event by calling showDialog(0) method Example btn. SetOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub showDialog(0); } }).

You can display the dialog on any view click event by calling showDialog(0); method. Example btn. SetOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub showDialog(0); } }).

– user817129 Jun 28 at 9:47 I did more reading and it seems a call to "showDialog()" will use "onCreateDialog(...)" in the respective Activity to determine which exact dialog is to be shown. So, this means I must use "showDialog()" in the FileDialog Activity for my project, is that right? – user817129 Jun 28 at 10:38.

These Activities are called MeActivity and FileDialog. I have to create an Intent in MeActivity to ultimately get the chosen file from FileDialog. But how do I get the dialog to work with the view listener?

When a view is pressed, I want it to trigger the dialog. I am trying to use AlertDialog. Builder to create the dialog that FileDialog will show to the user.

In MeActivity, do I need to call "onActivityResult(...)" explicity to get the file that the user selected?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions