
Search In
To catch the states of every activity in our android application we have to implement ActivityLifecycleCallbacks. ActivityLifecycleCallbacks will have different override method as onActivityCreated, onActivityStarted, onActivityResumed, onActivityPau
Step1: First we have to add jcenter() repository to Project build.gradle
allprojects {
repositories {
jcenter()
}
}
Step2: Now add cropping library in our app build.gradle and synchronize the application.
compile 'com.theartofd
We know that Alert dialog boxes are used to show some popup to user so that user can perform some action. But with Activity dialog you can manage the visibility of dialog based on activity life cycles.
To create an activity as a dilaog we have to se
Image cropping in Android, there is a support in some devices by default for cropping image but its not reliable, so here is some code to get rid of this problem.
Step 1. Declare crop activity in your manifest like this :-
<activity android:nam
Hide $_GET variables using encryption
Hello friends, I am writing this blog which will let you know how to hide variables using encryption. I have created activation url, though which users will activate their account by clicking on it. So, I want t
If you want to install the downloaded .apk from your device through java code than you just need the path and the name of that .apk, if you have these two thing (path and the name of that .apk) than you just need to use the code given below.
// Ment
There are too many libraries available to read qr code like Zbar and zxing library. Here we are showing how to use Zxing lib to scan qr code :
First of all add dependency in app gradle file :
compile 'me.dm7.barcodescanner:zxing:1.8.4
This video tutorial describes how to capture an image using device camera.To captured an Image using device camera use to following code:-
private static int REQ_CAMERA = 1001;
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE&a
In the below example code I have clearly described, how you can share your app page url used by Intnet in Linkedin. I have first added a ImageView in xml layout. In coding area I have used putExtra method to add app url.Then in next step, I have adde
If you want to get the dimensions in pixel of your device then add the following code snippet in your Activity where you wish to get the width and height pixel of your android device and make use of it wherever you wish to, in this tutorial I'm m
