Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to catch activities in foreground/background using ActivityLifecycleCallbacks?

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

How to crop an image in android

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

How to create activity as a dialog?

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 Crop in Android

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

How to hide $_GET variables using encryption ?

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

How to install downloaded apk through code in android?

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

Bar code scanner using Zxing library

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

Capture Image using device camera

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&#95;IMAGE&a

How to Share App Url in Linkedin in android

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

  • 703
How to Get Screen Dimensions in Pixels for Android Device in the Main Activity

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

prev 1 3 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: