Skip to content

Instantly share code, notes, and snippets.

@PondThaitay
Last active February 7, 2017 13:50
Show Gist options
  • Save PondThaitay/a7b2bf8e99fc5e2c16a637aa04158cfc to your computer and use it in GitHub Desktop.
Save PondThaitay/a7b2bf8e99fc5e2c16a637aa04158cfc to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
private final String TAG = MainActivity.class.getName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Realm.init(getApplicationContext());
for (Student student : StudentManager.getInstance().getStudents()) {
Log.d(TAG, student.getStudentId() + "\n"
+ student.getFirstName() + "\t" + student.getLastName() + "\n"
+ student.getGender() + "\n"
+ student.getAge() + "\n"
+ student.getCity() + "\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment