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

Author: apktutor

AlertDialog with custom view

July 30, 2021 apktutor

To create an AlertDialog with a custom view, we first have to create the custom view. Let us create a…

Continue Reading →

Posted in: Dialog

AlertDialog in android

July 28, 2021 apktutor

A dialog is a small window which is displayed above the main UI, in a part of the screen. It…

Continue Reading →

Posted in: Dialog Filed under: AlertDialog, Dialog

Read a json/text file from assets folder

January 27, 2021 apktutor

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

Android canvas detect touch points

September 6, 2020 apktutor

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: Android canvas

Plot numbers as Line graph on canvas

apktutor

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

Continue Reading →

Posted in: Android canvas

Create a View class using Canvas

September 1, 2020 apktutor

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: Android canvas

Get video thumbnail from url of video

August 27, 2020 apktutor

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

Continue Reading →

Posted in: Code snippets

Android code snippets 1

August 19, 2020 apktutor

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

 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

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: Advanced app examples

Post navigation

Page 3 of 7
← Previous 1 2 3 4 … 7 Next →
  • AdapterViews (10)
  • Advanced app examples (8)
  • Android canvas (3)
  • Code snippets (7)
  • Dialog (6)
  • Layouts and widgets (15)
  • Menu (2)
  • Notification (1)
  • Service (4)
  • Simple app examples (13)

Recent posts

  • Read and write files in app private storage
  • Detect faces in an image using ML Kit API.
  • Extract text from images
  • Crop and Rotate Image
  • Get meta data using Uri of a file
  • Android Notification Example
  • Moving between fragments
  • Pick and display a pdf file
  • BottomSheetDialog Example Android
  • Play music using MediaPlayer in Service

Join Our Newsletter

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


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