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; /*from w w w . ja v a 2 s . co m*/ import android.content.Intent; import android.os.Bundle; import com.novoda.sqliteprovider.demo.domain.Firework; import com.novoda.sqliteprovider.demo.domain.Shop; import com.novoda.sqliteprovider.demo.domain.UseCaseFactory; import com.novoda.sqliteprovider.demo.ui.base.NovodaActivity; import java.util.List; public class FindDistinctFireworksActivity extends NovodaActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); List<Firework> fireworks = getApp().getFireworkReader().getUniqueFireworks(); Shop shop = new Shop("Unique Fireworks", "List below is any distinct firework", fireworks); view(shop); finish(); } private void view(Shop shop) { Intent intent = new Intent(this, ViewShopActivity.class); intent.putExtra(ViewShopActivity.EXTRA_SHOP, shop); intent.putExtra(ViewShopActivity.EXTRA_INFO, UseCaseFactory.UseCase.DISTINCT); startActivity(intent); } }