1

why alertDialog is not working in android application?

view story
linux-howto

http://stackoverflow.com – I need to give some alert text message while some initilizing work is going on. So i have used following code in my main activity in android application. AlertDialog alertDialog; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Log.i("main","=================init==============="); alertDialog = new AlertDialog.Builder(this).create(); alertDialog.setTitle("Title Info"); alertDialog.setMessage("Initilizing so please wait...."); alertDialog.show(); // calling some initilizing function f (HowTos)