All About activity, fragment, Intent, Broadcast Intent, Broadcast Receivers, and Android services

Photo by Joyce McCown on Unsplash

This article will provide an understanding of the high-level concepts at the back of the architecture of Android applications. We will see in detail at the two different components that can be used to create an application and the mechanisms that work together to create a unified application.

1. Activities in Android

Those who know Object-oriented languages can understand the concept of encapsulating the elements of application functionalities and then used as objects to creating and manipulating the application. Since Android applications developed in Java and Kotlin. So Android architecture also has the concept of reusable components to the higher level.

Android application is…


How to Make Screen Recorder in Android Studio

How to Make Screen Recorder in Android Studio
How to Make Screen Recorder in Android Studio
Make Screen Recorder in Android

In this article, I will tell you about making the feature for recording the screen in the Android App. Actually, I’m developing the internet speed test app for a software company in which I’m doing a full-time job for three months. The app has a feature like when the user starts the internet speed test the screen recorder feature should start recording the screen in the background. So I have successfully implemented this screen recording feature in the app.

Now I am excited to share this feature with you guys. …


How to make translator App in Android Studio

In this article, I will teach you how to use Google translate API free unlimited request in any android app. This way is totally free to develop a translation app.

Here is the final output of this example.

final output of making language translator app in android.
final output of making language translator app in android.
Final output

In this article, I have shown you the basic working of the translator app. You can check out my translator app at play store. Click here for checking.

I have created some steps to create a Language Translator App. Here you can see these steps in the following.

  1. Create a new project in the android studio go to File>New project
  2. Go to…


How to make Note App using SQLite Database in Android Studio Part 2

First of all, if you didn’t read the previous part then this article may not mean. So go to the following link then come back to this article.

Now In this part, I’m going to make features in which the user can see notes, edit and delete. Here are the screenshots of the features.

Display Notes with edit and deletes option

How to make Note App in Android Studio

Photo by NeONBRAND on Unsplash

Here is the demo video for this article. So that you can check the final result of this tutorial if you follow from start to end.

Now I am going to design an Activity that can store notes. The design will look like this.


Perfect way to run service even Android device restarted

Photo by Start Digital on Unsplash

Today I’m going to teach you about restartable foreground service even phone will turn off and turn on again or even rebooted the device. It is the perfect way to restart the foreground service and run it continuously. So first discuss the basic concept of foreground service

What is the foreground service?

Now let me tell you a little bit about foreground service. I didn’t take much time to explain it. Basically, foreground service is a background process that remains in a running state even app closed and removed from the recent list.

Let’s start developing an auto-start foreground service.


Android remove the app from the recent list programmatically

Photo by Igor Starkov on Unsplash

There are two methods for removing the app from the recent list of app.

1. Using Manifest file

2. Programmatically

1) Manifest File

As we know Manifest file is used to declare all activities using the activity tag in XML. So if you want to remove the app from the recent list in Android then you are at the right place. We will discuss both methods in this article. In your activity tag, you have to mention three attributes which are listed below.

1. android:excludeFromRecents=”true”

2. android:taskAffinity=””

3. android:launchMode=”singleInstance”

2) Removing the app from the recent list programmatically in android


Build your own spinner from scratch in Android

Photo by Christophe Hautier on Unsplash

Create a new project using an Android studio then go to the resource folder I mean res folder in your android studio project after it expands the values folder and double click on the strings.xml file and make a string array in it with your own values which you want to display in your custom spinner. As I make a String array in the following image.

CodingwithSaud

I’m a good husband, father and Senior Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store