This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
OkHttp class for making REST calls. | |
Here the method is POST, you can change it to GET in 'request' below | |
*/ | |
public class ResponseOKhttp | |
{ | |
OkHttpClient client = new OkHttpClient(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This class converts any Layout or View to image and saves in Phone. | |
In one of my projects, I had a requirement of saving whatever is being displayed on the Screen as an image. | |
I created a class for it so that in future it becomes easy to reuse. | |
Usage Example | |
----------------------------------------------------------------------------------------------------------- | |
FrameLayout mLin_FramePreview1 = (FrameLayout)findViewById(R.id.lin_FramePreview1); | |
ViewToImage v = new ViewToImage(mLin_FramePreview1); |
NewerOlder