Newest Post

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Custom Date Time Picker for Android

| Friday, November 6, 2015
Read more »
Android itself does not provide any date or time picker which can let user choose date and time together.

We can choose dates using DatePickerDialog and times using TimePickerDialog, which requires 2 different dialogs and 2 different actions. Instead of that we can use following code to provide selection of Date and Time in one dialog.

Following is the code of the layout file "date_time_picker.xml" which will be inflated to be displayed in the Date Time Picker Dialog.

 <?xml version="1.0" encoding="utf-8"?>  
     android:layout_height="0dp" />  
     android:layout_height="0dp" />  
     android:layout_height="0dp" />  

Following is the code of Button click in Java file which will open the dialog.

  public void SelectDateTime(View v) {  
     final View dialogView = View.inflate(this, R.layout.date_time_picker, null);  
     final AlertDialog alertDialog = new AlertDialog.Builder(this).create();  
     dialogView.findViewById( View.OnClickListener() {  
       public void onClick(View view) {  
         DatePicker datePicker = (DatePicker) dialogView.findViewById(;  
         TimePicker timePicker = (TimePicker) dialogView.findViewById(;  
         Calendar calendar = new GregorianCalendar(datePicker.getYear(),  
         SimpleDateFormat mSDF = new SimpleDateFormat("HH:mm:ss");  
         String time = mSDF.format(calendar.getTime());  
         int day = datePicker.getDayOfMonth();  
         int month = datePicker.getMonth();  
         int year = datePicker.getYear();  
         SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy");  
         String formatedDate = sdf.format(new Date(year-1900, month, day));  
         editText_datetime.setText(formatedDate + ' ' + time);  

"SelectDateTime" method is called on button click which will fetch the values from Date Time picker into the EditText.

"SimpleDateFormat" class has been used to set the values in desired date and time formats.


String formatedDate = sdf.format(new Date(year-1900, month, day));  

Always +/- 1900 with year formatted using SimpleDateFormat. 

Custom Date Time Picker

Download Photo Editor by Aviary free of cost with tools and supplies worth $200 till Nov 30,2014

| Saturday, November 15, 2014
Read more »
Download Photo Editor by Aviary free of cost with all tools and supplies till Nov 30,2014

Aviary photo editor has collaborated with Adobe and with latest release on iOS and Android stores, this app is worth $200 including all in app purchases comprising of tools and supplies. All this can be downloaded by configuring the AdobeID, which will provide the access to CreativeCloud service by Adobe.

This offer is available for limited time (till Nov 30,14). Links to download the app 

Google Play Store


Hack To Access Google Inbox Without An Invite!! Right Here Right Now

| Friday, November 14, 2014
Read more »

Google Inbox

Google Inbox is a new service offered by Google to redefine our gmail (well may be). But this service is available on invitation basis only. Right now one Inbox user can invite max 3 people by sending emails to them.

Following is the video portraying the features in Google inbox ( In case you never heard of) 

Configuring the Google Inbox using an Invite (very simple)
1. Open your email containing the invite, Click on preferred app i.e Android or iOS (tada!!!)
2. If you have already downloaded the "Inbox" app, then it will directly takes you to the Inbox app else it will take you to Play store/App store to download the app.
3. Enjoy Inbox

Configuring the Google Inbox without an Invite (simple enough)
Here is the perfect hack for same.
1. Download the inbox app on your device
2. Find a friend who is trustworthy and has Google Inbox activated on his/her device
3. In their Google Inbox app -> Go to Manage Accounts
4. Ask your friend to add your email account and password to sign in-> Press Done
5. You will receive the Google Inbox welcome email and your account @GoogleInbox is activated
6. Sign-In on your own device in Google Inbox App
7. Delete your account from your friend's device.
8. Enjoy Inbox

In case if you don’t have access to a friend with device and inbox app, you can email at and request for an invite and get on the waiting list.

Hack To Access Google Inbox Without An Invite!! Right Here Right Now

Posted by : Pooja
Date :Friday, November 14, 2014
With 0comments