Featured
-
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
An Overview of Android Activity - Video Tutorial
As far as Android platform is concerned, the funda
by amit.rai -
How to get IMEI number,serial number and software version of your phone
Hello... Sometimes we need to know the country
by shahbaz.ahmmod -
Search location by using place on google map
Here below is the code for searching places by usi
by shahbaz.ahmmod -
How to know free space in sdcard android
I have written code to know free space in sdcard
by shahbaz.ahmmod
Tags
3 Steps Guide to Customize Alert Dialog with Dynamic Buttons
In this android tutorial blog, we are going to discuss customizing Alert Dialog with Dynamic Buttons. Before we start the tutorial and the coding, it is first immensely important to comprehend what is android dialog. Android dialog is ident...
How to make CustomDialog Fragment in android
In the below example code I have created a CustomDialog Fragment. Here, first I have created custom_dialog.xml layout , On this xml layout I have added EditText and Button. In next step, in activity_main.xml layout I have added a Button and...
How to create dialog with cross button layout in android
In the below example I have created a dialog button layout. Here I have created a main.activity layout, In main.xml layout first I have created Relative layout and added all layout in this Main Relative layout then I have create...
How to make Dialog Animation in android
In the below example I have created Dialog Animation using windowAnimation. Here I have added DialogAnimation item in style.xml folder after that I have created a new dialoglayout.xml and added a image and button then in mainlayout I have added a...
Add items to RecyclerView at runtime
To add data to RecyclerView at runtime follow the steps mentioned below:-
1) Start a new project and add support library dependency <compile 'com.android.support:recyclerview-v7'>.
2) Declare layout for your activity(MainActiv...
New Location Dialog from Android Settings API
Enable a system location dialog ,asking user that app needs to find the current location
This dialog is from Android Settings API
public class LocationData implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedL...
Custom Dialog like spinner in android
If you want to create a dialog which will look like as spinner dialog of single choice in android which will open in button click event than you can create a custom dialog.
Sample code given below :-
You just have to call this method on cli...
Giving Android Dialog a custom layout.
We see situations while developing an app that we need to put certain things inside the Android Dialog box. Here is how we can achieve the same:
First, create the layout that you want to give to the Dialog. Below is a sample layout:
custom_...