Skip to content

Instantly share code, notes, and snippets.

@kenny-io
Created October 11, 2017 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenny-io/709f5ea7d9ec414710176402909c4b90 to your computer and use it in GitHub Desktop.
Save kenny-io/709f5ea7d9ec414710176402909c4b90 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;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
db = FirebaseFirestore.getInstance();
textDisplay = findViewById(R.id.textDisplay);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment