Skip to content

Instantly share code, notes, and snippets.

@d-tarasov
d-tarasov / gist:2876503
Created Jun 5, 2012
DB design for Android. Snippet1
View gist:2876503
class Group {
private Long _id;
private String number;
private List<Student> students;
// getters and setters
...
}
class Student {
View gist:3810400
<properties>
<project.version.name.number>1.0.0</project.version.name.number>
<project.version.code>1</project.version.code>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.emulator.name><!-- TODO emulator name --></project.emulator.name>
<project.version.name>${project.version.name.number}-${project.version.name.qualifier</project.version.name>
<project.verbosity>true</project.verbosity>
</properties>
View SherlockMapFragment.java
package com.actionbarsherlock.app;
import android.app.Activity;
import android.support.v4.app.Watson.OnCreateOptionsMenuListener;
import android.support.v4.app.Watson.OnOptionsItemSelectedListener;
import android.support.v4.app.Watson.OnPrepareOptionsMenuListener;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.actionbarsherlock.internal.view.menu.MenuItemWrapper;
import com.actionbarsherlock.internal.view.menu.MenuWrapper;