Java in Android Studio: Custom Toast Message

custom toast message in android using java

Today you will learn how to build a custom toast message in Android Studio, using Java language. Starting Project In an empty activity project, I name my project “MyCustomToastMessage” and choose Java for the programming language. For the Minimum API level, I leave it to API 15: Android 4.0.3 (IceCreamSandwich). After waiting for Gradle to … Read more

Loading

Android Studio: Sort Array Lists Using Comparable and Comparator interfaces

sort array lists in android studio

In this video we will see how to make an object comparable and sort array lists using the comparable and comparator interfaces. To make an object comparable, we need to implement either the comparable interface and implement the compareTo method, or use the Comparator interface and implement its compare method. In this video we work … Read more

Loading

Android Studio: Reduce and Compress Image Size in Android

Reduce and Compress Image Size in Android

This tutorial will show you how to reduce and compress image size in Android App, using Android Studio utilities. File size reduction is very important to reduce the overall size of an Android App. With the small size app, it ensures that it is downloaded much quicker and loads faster, while requiring less resources. Decreasing … Read more

Loading

Android Studio: How to Create a Pop Up Menu for Android App

Create a PopUp Menu for Your Android App

In this tutorial I will show you how to create a pop up menu for your Android App. We start by creating a new project in Android Studio. Make sure to choose Java for the programming language. The minimum API level will be API 15: Android 4.0.3 (IceCreamSandwich). Next, we add a button to the … Read more

Loading

Android Studio: Solving Calling startActivity() issue – from outside of an Activity context

Solving Calling startActivity() from outside of an Activity context issue

In the above video you will find – Solving Calling startActivity() from outside of an Activity context issue. While trying to open a browser intent (webpage), when clicking an item in the recycler view of my test app, I faced the following exception: Calling startActivity() from outside of an Activity context … In the video … Read more

Loading

How To Add AdMob Ads in Android App – Banner Ads

How To Add AdMob Ads In Android App - Banner Ads

In this tutorial you will see how to: add banner ads in your Android App add events in the ad’s lifecycle use Smart Banners What are banners ads? Banners ads are rectangular image or text ads that  occupy a spot within an app’s layout. They stay on screen during the time that the users are … Read more

Loading

Using Alert Dialog in Android Studio – Tutorial

Simple-AlertDialog-In-AndroidStudio

Alert Dialog is used very often when building applications. Usually, it is used to warn a user about an action he is about to take. Most of the time, those action are critical and irreversible, before deleting something for example. A simple Alert Dialog in Android Studio would show the title, a warning or explanation … Read more

Loading