Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework 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.android_mvc.sample_project.controller; //from ww w .ja v a2 s .c o m import android.content.Intent; import com.android_mvc.sample_project.activities.func_db.DBEditActivity; import com.android_mvc.sample_project.activities.func_db.DBListActivity; import com.android_mvc.sample_project.activities.func_db.SampleTabHostActivity; import com.android_mvc.sample_project.activities.installation.InstallAppActivity; import com.android_mvc.sample_project.activities.installation.InstallCompletedActivity; import com.android_mvc.sample_project.activities.main.TopActivity; import com.android_mvc.framework.controller.BaseController; import com.android_mvc.framework.controller.routing.Router; /** * ?????????????????? * @author id:language_and_engineering * */ public class MainController extends BaseController { // ????????????Activity??????????submit()?????????????? /** * ?????????????????????? */ public static void submit(InstallAppActivity installAppActivity, boolean installExecutedFlag) { // ????????????????????????????? if( installExecutedFlag ) { // ??????????????? Router.go(installAppActivity, InstallCompletedActivity.class); } else { // ?????????? Router.go(installAppActivity, TopActivity.class); } } /** * ???????????????????????? */ public static void submit(InstallCompletedActivity activity) { // ?????????? Router.go(activity, TopActivity.class); } /** * TOP???????????????? */ public static void submit(TopActivity activity, String button_type) { if( "EDIT_DB".equals(button_type) ) { // ????????? Router.goWithData(activity, DBEditActivity.class, new Intent().putExtra("hoge", "Intent????????????").putExtra("fuga", 1) ); } else if( "VIEW_DB".equals(button_type) ) { // ????????? Router.go(activity, DBListActivity.class); } else if( "TAB_SAMPLE".equals(button_type) ) { // ????????? Router.go(activity, SampleTabHostActivity.class); } } }