Skip to content
ApkTutor
Android tutorials for beginners. Learn through our numerous examples.
  • Home
  • Contact Us
  • About Us

Author: apktutor

Read a json/text file from assets folder

January 27, 2021 apktutor Leave a comment

We can add any file to be incorporated in android project in assets folder, located at ‘/app/src/main/assets/’ and then open…

Continue Reading →

Posted in: Code Snippets, Simple App Examples

Android canvas detect touch points

September 6, 2020 apktutor Leave a comment

To detect the touch events on the canvas of a View class we can use the boolean method onTouchEvent(MotionEvent). In…

Continue Reading →

Posted in: Uncategorized

Plot numbers as Line graph on canvas

apktutor Leave a comment

The following code plots an array of integers as a line graph on canvas of a View class. This View…

Continue Reading →

Posted in: Uncategorized

Create a View class using Canvas

September 1, 2020 apktutor Leave a comment

In android we can use the canvas while creating a View by calling the onDraw(Canvas) method. Canvas is a class…

Continue Reading →

Posted in: Uncategorized

Get video thumbnail from url of video

August 27, 2020 apktutor Leave a comment

In android, we can use the MediaMetadataRetriever to retrieve a thumbnail image of an online video from its url. MediaMetadataRetriever…

Continue Reading →

Posted in: Uncategorized

Android code snippets 1

August 19, 2020 apktutor Leave a comment

Disable screenshot getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); Hide suggestions from the soft keyboard on EditText view EditText.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD); Hide soft keyboard on Button Click…

Continue Reading →

Posted in: Code Snippets Filed under: disable screenshot, get Screen Height, Get Screen Width in android, Hide keyboard

Copy file from assets folder to external cache

July 8, 2020 apktutor Leave a comment

 Suppose you have a file IsolationWardGuidelines.pdf in assets folder of your project and you want to copy it to external…

Continue Reading →

Posted in: Code Snippets

Using Google Sign In with Firebase Auth in AIDE

June 10, 2020 apktutor Leave a comment

This tutorial shows a sample project using Google Sign in in AIDE. Step 1: Create a new project in AIDE with…

Continue Reading →

Posted in: Uncategorized

Encrypt and decrypt text

April 10, 2020 apktutor Leave a comment

This post is about creating an android app to encrypt and decrypt text. Step 1: Create a new project with name…

Continue Reading →

Posted in: Advanced Android App Examples

GridView with Image and Text

January 20, 2019 apktutor Leave a comment

This tutorial shows how to display a Map List containing texts and images in a Custom GridView. Step 1: Create a…

Continue Reading →

Posted in: Adapter View, Layouts and Widgets, Simple App Examples Filed under: Android GridView, GridView, GridView with image and text, GridView with images and texts

Post navigation

Page 1 of 5
1 2 … 5 Next →

Categories

  • Adapter View (9)
  • Advanced Android App Examples (2)
  • Code Snippets (8)
  • Layouts and Widgets (22)
  • Simple App Examples (21)
  • Uncategorized (11)
  • User Interface Components (2)

Recent posts

  • Read a json/text file from assets folder
  • Android canvas detect touch points
  • Plot numbers as Line graph on canvas
  • Create a View class using Canvas
  • Get video thumbnail from url of video
  • Android code snippets 1
  • Copy file from assets folder to external cache
  • Using Google Sign In with Firebase Auth in AIDE
  • Encrypt and decrypt text
  • GridView with Image and Text

Join Our Newsletter

Sign up to receive timely, useful information in your inbox.


Privacy Policy
Copyright © 2021 ApkTutor — Primer WordPress theme by GoDaddy