Created
November 14, 2012 02:44
-
-
Save cmendesce/4069973 to your computer and use it in GitHub Desktop.
Gerenciadores de activities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.pingucostore.ui.activities; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import br.com.pingucostore.domain.entities.Cardapio; | |
| public class ActivityDispatcher { | |
| private Context context; | |
| public ActivityDispatcher(Context context) { | |
| this.context=context; | |
| } | |
| public void cardapio(long idClube) { | |
| Intent intent = new Intent(context, Cardapio.class); | |
| intent.putExtra("Clube", idClube); | |
| context.startActivity(intent); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.pingucostore.ui.activities; | |
| public class ActivityMap { | |
| public Class<?> home() { | |
| return HomeActivity.class; | |
| } | |
| public Class<?> cardapio() { | |
| return CardapioActivity.class; | |
| } | |
| public Class<?> clube() { | |
| return ClubeActivity.class; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment