Skip to content

Instantly share code, notes, and snippets.

@kenny-io
Created October 12, 2017 00:11
Show Gist options
  • Save kenny-io/a614b7112155657b6bc349eb1249b808 to your computer and use it in GitHub Desktop.
Save kenny-io/a614b7112155657b6bc349eb1249b808 to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
private static final String NAME_KEY = "Name";
private static final String EMAIL_KEY = "Email";
private static final String PHONE_KEY = "Phone";
FirebaseFirestore db;
TextView textDisplay;
TextView message;
EditText name, email, phone;
Button save;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
db = FirebaseFirestore.getInstance();
textDisplay = findViewById(R.id.textDisplay);
message = findViewById(R.id.displayMessage);
save = findViewById(R.id.save);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment