tags:

views:

15

answers:

0

Hi,

I need to start a dialogbox automatically when my activity is launched. I could not do that.. need information on that. But when I put the same code on a button's listener it works fine but if i want to start it onResume of an activity How will I do it.

The code is

Intent AppinfoToInputBox = new Intent(AppInfo.this, InputBox.class);
startActivityForResult(AppinfoToInputBox, TRANSFER_ID);

If I place this inside a button's click listener then it works fine, but incase of OnResume() It gives me a blank screen.