A little on Dialog Fragments A fragment that displays a dialog window, floating on top of its activity’s window. This fragment contains a Dialog object, which it displays as appropriate based on the fragment’s state. Control of the dialog (deciding when to show, hide, dismiss it) should be done through the API here, not with direct calls on… Read More »
Hello all.. Today I will show you two simple ways to remove title in an android alertdialog. Actually you can do this in two methods. Method 1 That takes a custom layot file, inflates it, gives it some basic text and icon, then creates it. Method 2 But it doesn’t work when creating an AlertDialog (or using the… Read More »
Hello everyone… In this post I will show you how to listen to hardware button in an android smartphone. This post especially shows how to listen to the home button in android. But my advice is never override the home button in your app. Home button is to move the currently running process to background. But you can… Read More »
We can create a dialog with custom alert dialog with our xml in android. But for making simple alerts we can make custom alerts through code itself. Here is a simple function for this. Here I am having a Listview and an edittext with two buttons in the alertBox. Please leave your valuable comments on this post.