content: package com.ahmadrezagh671.pixabay.SettingsActivities;
  
  import android.content.Intent;
  import android.net.Uri;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.ImageButton;
  import android.widget.TextView;
  import android.widget.Toast;
  
  import androidx.activity.EdgeToEdge;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.core.graphics.Insets;
  import androidx.core.view.ViewCompat;
  import androidx.core.view.WindowInsetsCompat;
  
  import com.ahmadrezagh671.pixabay.R;
  import com.ahmadrezagh671.pixabay.Utilities.AppUtil;
  
  public class ActivityAboutUs extends AppCompatActivity {
  
      ImageButton backButton;
      TextView appVersionTV;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          EdgeToEdge.enable(this);
          setContentView(R.layout.activity_about_us);
          ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
              Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
              v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
              return insets;
          });
  
          appVersionTV = findViewById(R.id.appVersionTV);
          appVersionTV.setText("Version "  + AppUtil.getAppVersionStr(this));
  
          backButton = findViewById(R.id.backButton);
          backButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  finish();
              }
          });
      }
  
      public void openGithub(View view) {
          AppUtil.openLink(getResources().getString(R.string.githubLink),this);
      }
  
      public void contactUs(View view) {
          String email = "ahmadrezagh671@gmail.com";
          String subject = "Pixabay Android App - Support";
          String body = "Hello, I need help with...";
  
          String mailto = "mailto:" + email +
                  "?subject=" + Uri.encode(subject) +
                  "&body=" + Uri.encode(body);
  
          Intent emailIntent = new Intent(Intent.ACTION_VIEW);
          emailIntent.setData(Uri.parse(mailto));
  
          try {
              startActivity(Intent.createChooser(emailIntent, "Send Email"));
          } catch (Exception e) {
              Toast.makeText(this, "No email apps installed.", Toast.LENGTH_SHORT).show();
          }
      }
  
  
  
  
  }