11. 配置
Remote
http://api.myserver.com/config?
client=myapp&version=1.0&...
cached on local disk
{
ver:”20120701”,
mapList: [
“Baidu”,
“Google”,
“Google(Brut)”,
“Mapbar”,
...
]
}
Thursday, August 2, 12
12. 配置
Remote User
http://api.myserver.com/config?
SharedPreference
client=myapp&version=1.0&...
cached on local disk stored on local disk
{
ver:”20120701”,
mapList: [
{
“Baidu”,
mapList: [
“Google”,
“Baidu”
“Google(Brut)”,
]
“Mapbar”,
}
...
]
}
Thursday, August 2, 12
13. 配置
Default Remote User
MyApp.apk http://api.myserver.com/config?
SharedPreference
|-res client=myapp&version=1.0&...
|-raw
cached on local disk stored on local disk
|-default
{ {
ver: “20120101”, ver:”20120701”,
mapList: [ mapList: [
{
“Google”, “Baidu”,
mapList: [
“Google(Brut)”, “Google”,
“Baidu”
“Baidu”, “Google(Brut)”,
]
“Mapbar”, “Mapbar”,
}
... ...
] ]
} }
Thursday, August 2, 12
20. URL Scheme
• HTML
<a href="dianping://shopinfo?id=123456">查看商户详情</a>
• Intent
Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("dianping://shopinfo?id=123456"));
startActivity(i);
Thursday, August 2, 12
21. Simple is best
• 概念简单,就跟打开网站⼀一样,很容易跟别人解释清
楚。
• 实现简单,几行代码就能实现。
• 跨平台,iOS和Android都可以采用。
• 微信、支付宝等程序间的交互。
Thursday, August 2, 12