content: package com.madinaappstudio.deviceanalyzer;
  
  import android.content.Intent;
  import android.os.Bundle;
  
  import androidx.fragment.app.Fragment;
  
  import android.provider.Settings;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.Button;
  
  public class NoConnectionFrag extends Fragment {
  
      public NoConnectionFrag() {
          // Required empty public constructor
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_no_connection, container, false);
          Button btnGoToSettings = view.findViewById(R.id.btnGoToSettings);
          btnGoToSettings.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(Intent.ACTION_PICK)
                          .setAction(Settings.ACTION_NETWORK_OPERATOR_SETTINGS);
                  startActivity(intent);
              }
          });
          return view;
      }
  }