如何路由用户到正确的活动? [英] How to route the user to the correct activity?

查看:116
本文介绍了如何路由用户到正确的活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我的(第一个)的应用程序需要给用户选择,他是(美国,欧洲,亚洲)等,这些区域的选择
我想,我确定与它的菜单中的一面,但我不知道如何让应用自动路由用户到正确的活动,这取决于他的选择。

Hey, My (first) app needs to give the user the option to choose which region he is in (US,Europe,Asia) etc. I think I'm ok with the menu side of it, but I'm not sure how to get the app to automatically route the user to the correct activity, depending on his choice.

所以现在的问题是,我用一个活动或应用程序读取存储pviously地区$ P $和他们相应的路线?
没有人有任何样本code,我可以看看?
谢谢

So the question is, do I use an activity or an application to read the previously stored region and route them accordingly? Does anyone have any sample code that I can look at? Thanks

推荐答案

也许你可以把它提交到一个共享preference值。我认为它或多或少地做最彻底的方法。

Maybe you could commit it to a sharedpreference value. I think its more or less the cleanest way to do it.

看看的http://开发商.android.com /引导/主题/数据/数据​​storage.html#preF 如果您需要更多的帮助刚刚发表回复K +好运与乌尔codeS:)

take a look at http://developer.android.com/guide/topics/data/data-storage.html#pref If you need more help just post a reply k? good luck with ur codes :)

这篇关于如何路由用户到正确的活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆