Extract text from images

This post describes how to extract text from images using MLKIT. In app level build.gradle add the mlkit dependency. In AndroidManifest.xml add metadata for MLKIT. Create your layout in activity_main.xml. In MainActivity.java use following codes. Add a layout file result.xml with an EditText. In ResultActivity.java use following codes. Now run the app.

Crop and Rotate Image

This post describes how to crop and rotate image. Create your layout in activity_main.xml. In MainActivity.java use following codes. Create new java file CropUtils.java. Create layout file crop.xml. In CropActivity.java use following codes. Now run the app

Encrypt and decrypt text

This post is about creating an android app to encrypt and decrypt text. Step 1: Create a new project with name Encryption. Step 2: Open res/layout/xml (or) main.xml and add following code. Here we add an EditText, two Buttons, and two TextViews. Step 3: Open app/src/main/java/package and open MainActivity.java. Add following code in it. Output:Now run the … Read more

Convert PDF file to Android App

To create an android app to read a PDF file, follow the steps given below. Step 1: Create a new project with name ‘PDF Book’ and package name com.mypdfreader.readpdf. Select File -> New -> New Project. Fill the forms and click “Finish” button. Step 2: Create an ‘assets’ folder and put the PDF file in it. Let us … Read more