Benjamin Berkompas has been working in the UX and design field since 2008. Benjamin began as a Graphic Designer Contractor in San Antonio, TX. In 2010, they started their own business, Ben Berkompas Design, as the Owner and Operator. From 2011 to 2018, they worked at The Home Depot QuoteCenter as a Senior UX Designer, E-Content Designer, and UX Designer/Business Analyst. During their time at The Home Depot QuoteCenter, they played a central role in designing 3 versions of their e-commerce platform, which was used by associates in over 2,000 Home Depot stores and processed $5.7 billion in quotes and $1.4 million in sales. In 2018, they joined Covenant Eyes as a UX Supervisor and Product Designer.
package com.example.android.myapplication;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final EditText etName = (EditText) findViewById(R.id.etName);
final EditText etPassword = (EditText) findViewById(R.id.etPassword);
final Button bLogin = (Button) findViewById(R.id.bLogin);
bLogin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final String name = etName.getText().toString();
final String password = etPassword.getText().toString();
if (name.equals("admin") && password.equals("admin")) {
Intent intent = new Intent(MainActivity.this, Main2Activity.class);
startActivity(intent);
} else {
Context context = getApplicationContext();
CharSequence text = "Username or Password incorrect!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();
}
}
});
}
}
Sign up to view 0 direct reports
Get started