>有没有类似的URL-Based-Navigation
库,就像iOS' three20's TTNavigator
提供的库一样?
基于URL的导航非常方便,比Android的intent
要好得多(如果你不需要外部调用你的活动的功能)
例如在 iOS 中
[TTNavigator navigator] openURLAction:
[[TTURLAction actionWithURLPath:@"tt://restaurant/Chotchkie's"]
applyAnimated:YES]]
单个语句允许您跳转到任何定义的视图,这是非常易于使用的。
[1] http://three20.info/article/2010-10-06-URL-Based-Navigation
我不确定为什么你发现这比:
Intent myIntent = new Intent(this, MyActivity.class);
startActivity(myIntent);
你能详细说明你想实现什么吗?