Back to project page RoboBinding-album-sample.
The source code is released under:
Apache License
If you think the Android project RoboBinding-album-sample 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 org.robobinding.albumsample.activity; /* w ww. j a va2 s. com*/ import org.robobinding.albumsample.R; import org.robobinding.albumsample.presentationmodel.ViewAlbumsPresentationModel; import org.robobinding.albumsample.presentationmodel.ViewAlbumsView; import android.content.Intent; import android.os.Bundle; /** * @author Robert Taylor * @version $Revision: 1.0 $ * @since 1.0 */ public class ViewAlbumsActivity extends AbstractActivity implements ViewAlbumsView { protected ViewAlbumsPresentationModel presentationModel; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); presentationModel = new ViewAlbumsPresentationModel(this, getAlbumStore()); initializeContentView(R.layout.activity_view_albums, presentationModel); } @Override protected void onResume() { super.onResume(); presentationModel.refreshAlbums(); } @Override public void createAlbum() { startActivity(new Intent(this, CreateEditAlbumActivity.class)); } @Override public void viewAlbum(long albumId) { Intent intent = new Intent(this, ViewAlbumActivity.class); intent.putExtra(ViewAlbumActivity.ALBUM_ID, albumId); startActivity(intent); } }