Android Open Source - RoboBinding-album-sample View Albums Activity

From Project

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.

Java Source Code

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;

    protected void onCreate(Bundle savedInstanceState) {

        presentationModel = new ViewAlbumsPresentationModel(this, getAlbumStore());
        initializeContentView(R.layout.activity_view_albums, presentationModel);

    protected void onResume() {

    public void createAlbum() {
        startActivity(new Intent(this, CreateEditAlbumActivity.class));

    public void viewAlbum(long albumId) {
        Intent intent = new Intent(this, ViewAlbumActivity.class);
        intent.putExtra(ViewAlbumActivity.ALBUM_ID, albumId);

Java Source Code List