Android download and save image through Picasso

1. Make sure you have picasso in your gradle build file’s dependencies tag.

2. To use the Picasso for saving image file, you need to define a Target class. This method creates a target object that you can use with Picasso. Target is an interface defined in Picasso’s library. You can define this method […]

person shubham sharmaaccess_time October 25, 2016launch Read More

Open Intent

WebBrowser

YouTube

 

person shubham sharmaaccess_time October 24, 2016launch Read More

shared preference

============================================= Setting values in Preference:

  Retrieve data from preference:

Android SharedPreferences in Fragment

 

person shubham sharmaaccess_time October 24, 2016launch Read More

Date regex

PHP

 

person shubham sharmaaccess_time October 18, 2016launch Read More

Open YouTube Intent

 

person shubham sharmaaccess_time October 18, 2016launch Read More

How do I change the android actionbar title and icon

This is very simple to accomplish If you want to change it in code, call:

  And set the values to whatever you please. Or, in the Android manifest XML file:

  To enable the back button in your app use:

  The code should all be placed in your onCreate so […]

person shubham sharmaaccess_time October 15, 2016launch Read More

How to set an onClickListener on an included layout?

Replace findViewById(R.id.includeCallEnd0) with findViewById(R.id.includeCallEnd0).findViewById(R.id.phoneEnd) and it should work because you want to set the click listener on the ImageButton and not the whole layout Use the following function to set the OnClickListener once:

  Use applyListener(rootView, yourOnClickListener);

person shubham sharmaaccess_time October 15, 2016launch Read More