1. Web development
  2. Machine Learning
  3. Cryptography
  4. Games
  5. Data Structure
  6. Data Science
  7. Computer Vision
  8. Artificial intelligence
  9. Web Application
  10. Web crawler
  11. Business Application
  12. GUI Based Desktop Application
  13. Mobile Application
  14. Web frameworks

About understanding of Activity Life Cycle in Android Studio

Activity life cycle
Photo by Tolga Ulkan on Unsplash

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create a Blank Activity and click on Finish button.

Step 2 : Open res -> layout ->activity_main.xml and add following code :

< RelativeLayout xmlns…


  1. Google Play also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. Wikipedia

Date launched: October 22, 2008

Initial release: October 22, 2008; 12 years ago (as Android Market); March 6, 2012; 9 years…

package com.saud_khan_dev.speed_test.backend.services;

import android.app.IntentService;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Icon;
import android.net.TrafficStats;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;

import androidx.annotation.RequiresApi;
import androidx.core.app.NotificationCompat;

import com.saud_khan_dev.speed_test.MyApp;
import com.saud_khan_dev.speed_test.PrefHelper.AppSharedPref;
import com.saud_khan_dev.speed_test.R;
import com.saud_khan_dev.speed_test.ui.activities.MainActivity;

import java.util.Locale;

* Author: Muhammad Saud khan

public class
SpeedMonitorService extends IntentService {

private final int mNotificationId = 1…

Internet connectivity broadcast receiver


package com.saud_khan_dev.speed_test.backend.network_utills;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class NetworkUtil {
public static final int TYPE_WIFI = 1;
public static final int TYPE_MOBILE = 2;
public static final int TYPE_NOT_CONNECTED = 0;
public static final int NETWORK_STATUS_NOT_CONNECTED = 0…


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