Back to project page sqlite-provider.
The source code is released under:
Apache License
If you think the Android project sqlite-provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.novoda.sqliteprovider.demo.ui; /*ww w. j a v a2 s . co m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import com.novoda.sqliteprovider.demo.R; import com.novoda.sqliteprovider.demo.ui.base.NovodaActivity; import com.novoda.sqliteprovider.demo.ui.input.DemoMenu; import com.novoda.sqliteprovider.demo.ui.util.FromXML; public class MainActivity extends NovodaActivity implements DemoMenu { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override @FromXML public void onViewAllFireworksClick(View button) { startActivity(ViewAllFireworksActivity.class); } @Override @FromXML public void onAddFireworkClick(View button) { startActivity(AddFireworkActivity.class); } @Override @FromXML public void onFindFireworkWithPrimaryKeyClick(View button) { startActivity(FindFireworkWithPkActivity.class); } @Override @FromXML public void onFindAllFireworksFromOneShopClick(View button) { startActivity(FindFireworksFromOneShopActivity.class); } @Override @FromXML public void onGroupFireworksByTypeAndHavingColorRedClick(View button) { startActivity(WellStockedShopActivity.class); } @Override @FromXML public void onFindThreeFireworkShopsClick(View button) { startActivity(FindThreeFireworksActivity.class); } @Override @FromXML public void onFindUniqueFireworksClick(View button) { startActivity(FindDistinctFireworksActivity.class); } private void startActivity(Class<? extends Activity> clazz) { Intent intent = new Intent(this, clazz); startActivity(intent); } }