Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Helping_hand-419-423-604
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tharun kumar
Helping_hand-419-423-604
Commits
866991c1
Commit
866991c1
authored
5 years ago
by
Tharun kumar
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
d0f259eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitignore
+144
-0
144 additions, 0 deletions
.gitignore
with
144 additions
and
0 deletions
.gitignore
0 → 100644
+
144
−
0
View file @
866991c1
# Built application files
*.apk
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
.idea/caches
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
# Google Services (e.g. APIs or Firebase)
google-services.json
# Freeline
freeline.py
freeline/
freeline_project_description.json
# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md
package com.example.fund_restart;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class Adminpre extends AppCompatActivity implements View.OnClickListener {
EditText use,pass;
CardView cad;
String nam = "help";
String paas = "please";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adminpre);
use = findViewById(R.id.adminname);
pass = findViewById(R.id.adminpassword);
cad = findViewById(R.id.Adminlogin);
cad.setOnClickListener(this);
}
@Override
public void onClick(View v) {
if(v.getId() == R.id.Adminlogin){
if(use.getText().toString().isEmpty() || pass.getText().toString().isEmpty()){
{
AlertDialog.Builder alertDialog = new AlertDialog.Builder(Adminpre.this);
alertDialog.setTitle("Alert");
alertDialog.setMessage("Fill all the details");
alertDialog.setPositiveButton("ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
});
alertDialog.show();
}}
if (pass.getText().toString().trim().equals("please") && use.getText().toString().trim() .equals("help")) {
Toast.makeText(getApplicationContext(), "Logging in....", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(this,Userlogin.class);
startActivity(intent);
}else {
AlertDialog.Builder alertDialog = new AlertDialog.Builder(Adminpre.this);
alertDialog.setTitle("Alert");
alertDialog.setMessage("invalid credentials");
alertDialog.setPositiveButton("ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
});
alertDialog.show();
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment