forked from AswinVasudevan21/MobileProjectManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddProject.java
More file actions
55 lines (40 loc) · 1.64 KB
/
AddProject.java
File metadata and controls
55 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.example.aswin.mobileprojectmanagement;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.facebook.login.widget.ProfilePictureView;
/**
* Created by aswin on 28-11-2017.
*/
public class AddProject extends AppCompatActivity {
ProfilePictureView profilePictureView;
private TextView txtName;
private TextView txtEmail;
private Button btnProject;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.addproject_layout);
Intent intent = getIntent();
String name = intent.getExtras().getString("name");
String email = intent.getExtras().getString("email");
String userId = intent.getExtras().getString("userid");
profilePictureView = (ProfilePictureView) findViewById(R.id.friendProfilePicture);
profilePictureView.setProfileId(userId);
txtName = (TextView)findViewById(R.id.textViewName);
txtName.setText(name);
txtEmail = (TextView)findViewById(R.id.textViewEmail);
txtEmail.setText(email);
btnProject = (Button)findViewById(R.id.buttonProject);
btnProject.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent createIntent = new Intent(AddProject.this, CreateProject.class);
startActivity(createIntent);
}
});
}
}