Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/markdown-navigator-enh.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 16 additions & 15 deletions app/src/main/java/com/example/chat/About.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.example.chat;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
Expand All @@ -12,22 +9,27 @@
import android.view.WindowManager;
import android.widget.TextView;

public class About extends AppCompatActivity implements View.OnClickListener{
import androidx.appcompat.app.AppCompatActivity;

import java.util.Objects;

public class About extends AppCompatActivity implements View.OnClickListener {

TextView feed, call, mail;

TextView feed,call,mail;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
getSupportActionBar().hide();
call=findViewById(R.id.textView10);
mail=findViewById(R.id.textView12);
Objects.requireNonNull(getSupportActionBar()).hide();
call = findViewById(R.id.textView10);
mail = findViewById(R.id.textView12);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(0xFF889FEF);
}
feed=findViewById(R.id.feedback);
feed = findViewById(R.id.feedback);
feed.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand All @@ -42,21 +44,20 @@ public void onClick(View v) {
@Override
public void onBackPressed() {
finish();
startActivity(new Intent(getApplicationContext(),ChatBox.class));
startActivity(new Intent(getApplicationContext(), ChatBox.class));
}

@Override
public void onClick(View v) {
if(v==call)
{
if (v == call) {
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:+91 801-357-6138"));
startActivity(intent);
}
if(v==mail){
String to="subhopriyo153@gmail.com";
if (v == mail) {
String to = "subhopriyo153@gmail.com";
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL, new String[]{ to});
email.putExtra(Intent.EXTRA_EMAIL, new String[]{to});
email.putExtra(Intent.EXTRA_SUBJECT, "Chatable Application");
email.putExtra(Intent.EXTRA_TEXT, "");
email.setType("message/rfc822");
Expand Down
Loading