我需要安装冷冻程序冷冻器

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
然后在onCreate函数里写离线地图初始化的代码,具体请参考BMapApiDemoMain例程中的OfflineDemo.java: /** 离线地图初始化
mOffline = new MKOfflineMap();2.
mOffline.init(mBMapMan, new MKOfflineMapListener() {3.
public void onGetOfflineMapState(int type, int state) {4.
switch (type) {5.
case MKOfflineMap.TYPE_DOWNLOAD_UPDATE:6.
MKOLUpdateElement update = mOffline.getUpdateInfo(state);8.
//mText.setText(String.format("%s&:&%d%%", update.cityName, update.ratio));9.
case MKOfflineMap.TYPE_NEW_OFFLINE:12.
Log.d("OfflineDemo", .format("add offlinemap num:%d", state));13.
case MKOfflineMap.TYPE_VER_UPDATE:15.
Log.d("OfflineDemo", .format("new offlinemap ver"));16.
/** 离线地图导入离线包 **/22.
int num = mOffline.scan();导入成功后运行地图,可以看到不联网状态下的地图展示效果
阅读(13667)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'百度地图开发:离线地图怎么使用',
blogAbstract:'到官网下载离线地图包,网址:
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}【境外旅游必备技能】教你如何离线使用新版谷歌地图 小米社区转_小米吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
【境外旅游必备技能】教你如何离线使用新版谷歌地图 小米社区转收藏
一、为何要用谷歌地图
现在大家伙出境旅游、公干的机会越来越多了。但是在国外那些陌生的城市里,你最担心是啥?或许这个问题不同的人有不同的回答,但是害怕迷路一定是大家担心的问题之一吧。
或许有人说——鼻子下面有嘴,我可以问路啊。不过,我相信精通多国外语的天才还是少数。如果去了那些小语种国家,或许问路并不是件轻松的事情。传统的纸质地图很好用,不过有时是否会发生你压根不知道现在在地图上的哪个点,没有参照物,看纸质地图还是很晕的。因此带有GPS定位的电子地图就是很好的帮手了。
或许又有同学说——可以用百度地图啊。不幸的是,度娘在国内很强大。但是国外直接就是睁眼瞎。不信?看下面截图:这是大家都很熟悉的百度地图,其国内的城市基本上都有离线地图包。
楼主。。。。么么哒 花4800买了个德玛,为什么不会转圈啊,按e只会把一个旗子扔出去,到底怎么才可以转啊!!!!!!
但是尝试搜索一下巴黎看呢?呵呵了吧:这主要是由于百度并没有购买境外地图的使用权。这时就要用到谷歌地图了。但是问题又来了。在境内使用电子地图时,走流量虽然有点费,但是还在可以接受范围之内。但是在境外,估计你开着地图,用着2G/3G数据流量,一天逛下来,你家房子或许就归移动、联通或者电信了。因此使用离线地图就非常必要了。
二、如何在新版的谷歌地图上使用离线地图: 谷歌地图(安卓版)的离线地图一直隐藏的很好。在早期版本,大概是V5.0之前吧,在菜单中还是能找到“离线使用地图”的选项。后来这个选项就神秘的失踪了。演变成在地图上长按,然后弹出选项中选择离线使用。再然后,大概是到了V6.0之后,连这个方法都不行了。四处都找不到离线使用方式。那么真的就束手无策了吗?木瓜不知道谷歌到底为何这么做,但是下面用目前最新版本V7.7.0来演示一下目前如何使用离线地图吧:
以瑞典首都,美丽的斯德哥尔摩为例吧:首先地图搜索到斯德哥尔摩这座城市。
然后点击地图上方的“搜索”框:
在跳出来的搜索选项中一路向下滚动,在最底部看到了什么?
然后就简单了,点击这个选项,然后就会开始下载此区域(屏幕上显示范围内的区域)的离线地图(前提条件是你屏幕上显示的区域不可以太大,别把整个斯堪的纳维亚半岛都放进去,Google会拒绝给你下载的)。
七岁那年我抓住了一只蝉,我以为我抓住了整个夏天;十七岁那年吻过她的脸,就以为和她能永远 ,27岁我再见到她,她却对我说八百一晚。
在百度贴吧,推广谷歌地图。你让百度地图怎么看。
如此,你就得到了你想要的离线地图。
刚才是获得离线地图的方法一。还有另一个方法,请看下面:还是斯德哥尔摩,只不过地图范围更大了点:
我们这次再搜索框中输入“ok maps”,然后回车:
你会发现,屏幕区域的地图开始储存了:这种方法的效果和前一种说完全一样的。喜欢用哪一种就看诸位的习惯了。
三、谷歌地图的离线地图的限制:
用上面的两种方法几乎可以下载到所有地区的离线地图,木瓜就用这个方法逛遍了不下十个国外城市。但是有些国家和地区和谷歌之间有协议,禁止用户离线此区域的地图。比如,韩国就是如此。我们来看看首尔:
用第一种方法,点击搜索框,然后下拉搜索选项,神马都没有:
用第二个方法,输入“ok maps”:
直接告诉你,不支持
碰到这个情况,只能用笨办法了:先用查看地图的方法一点点缓冲地图到本地(好囧啊),或者下载专门的对应地区的地图APP软件。这就是在新版的谷歌地图中使用里面的方法,虽然不明白谷歌为何把它弄的越来越不好找,但是他绝对是目前境外“溜达”的最好地图软件,没有之一。
【你们有见过这么整齐的十五个字吗】【他们都说打出十五字才是最标准的】【我也没办法因为我要打十五个字啊】【我说了多少次了不要只打十五个字】【为了经验我没办法只能遇贴就灌水】【灌水也要讲技术保证句句是十五字】【如今发帖有困难整不好就被删贴了】【只能够这样用十五字来混混经验了】【用十五字混经验的有谁比我厉害呢】【有前排就要占没前排也要灌一下水】【有前排不占或者不灌水是会后悔的】【无论是多么无聊的帖子我都会去的】【因为为了一句话万一这贴子火了呢】【句句十五个字有哪个高手能超越呢】            
我是打酱油的,不用理会我,支持一下是可以的
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或1730人阅读
Android百度地图(23)
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&match_parent&
android:layout_height=&match_parent&
android:orientation=&vertical& &
&LinearLayout
xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&50dip&
android:orientation=&horizontal& &
android:id=&@+id/cityid&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:text=&131& /&
&!-- 隐藏输入法用 --&
&LinearLayout
android:layout_width=&0px&
android:layout_height=&0px&
android:focusable=&true&
android:focusableInTouchMode=&true& /&
android:id=&@+id/city&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:text=&北京& /&
android:id=&@+id/search&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&search&
android:text=&搜索& /&
android:id=&@+id/scan&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&importFromSDCard&
android:text=&导入& /&
&/LinearLayout&
&LinearLayout
xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&50dip&
android:orientation=&horizontal& &
android:id=&@+id/state&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:text=&已下载:--& /&
android:id=&@+id/start&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&start&
android:text=&开始& /&
android:id=&@+id/stop&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&stop&
android:text=&停止& /&
android:id=&@+id/del&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&remove&
android:text=&删除& /&
&/LinearLayout&
&LinearLayout
xmlns:android=&/apk/res/android&
android:id=&@+id/city_list&
android:layout_width=&match_parent&
android:layout_height=&50dip&
android:orientation=&horizontal& &
android:id=&@+id/clButton&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&clickCityListButton&
android:text=&城市列表& /&
android:id=&@+id/localButton&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:layout_weight=&1&
android:background=&@drawable/button_style&
android:onClick=&clickLocalMapListButton&
android:text=&下载管理& /&
&/LinearLayout&
&LinearLayout
xmlns:android=&/apk/res/android&
android:id=&@+id/citylist_layout&
android:layout_width=&match_parent&
android:layout_height=&match_parent&
android:orientation=&vertical& &
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:text=&热门城市& /&
android:id=&@+id/hotcitylist&
android:layout_width=&fill_parent&
android:layout_height=&200dip& /&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:text=&全国& /&
android:id=&@+id/allcitylist&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent& /&
&/LinearLayout&
&LinearLayout
xmlns:android=&/apk/res/android&
android:id=&@+id/localmap_layout&
android:layout_width=&match_parent&
android:layout_height=&match_parent&
android:orientation=&vertical& &
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:text=&已下载城市 & /&
android:id=&@+id/localmaplist&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content& /&
&/LinearLayout&
&/LinearLayout&
* 介绍如何下载和使用离线地图
public class OfflineDemo extends Activity implements MKOfflineMapListener {
* 离线地图服务
* 用于管理离线地图.
private MKOfflineMap mOffline =
private TextView cidV
private TextView stateV
private EditText cityNameV
* 已下载的离线地图信息列表
* MKOLUpdateElement:离线地图更新信息
private ArrayList&MKOLUpdateElement& localMapList =
private LocalMapAdapter lAdapter =
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_offline);
mOffline = new MKOfflineMap();
* public boolean init(MKOfflineMapListener listener)
* 返回:成功返回true,否则返回false
* 需要实现MKOfflineMapListener的onGetOfflineMapState(int type, int state)方法
mOffline.init(this);
initView();
private void initView() {
cidView = (TextView) findViewById(R.id.cityid);
//城市名称
cityNameView = (EditText) findViewById(R.id.city);
//下载状态
stateView = (TextView) findViewById(R.id.state);
//热门城市列表
ListView hotCityList = (ListView) findViewById(R.id.hotcitylist);
ArrayList&String& hotCities = new ArrayList&String&();
// 获取热闹城市列表
ArrayList&MKOLSearchRecord& records1 = mOffline.getHotCityList();
if (records1 != null) {
* MKOLSearchRecord:离线地图搜索城市记录结构
* cityID:城市ID
* size:数据包总大小
for (MKOLSearchRecord r : records1) {
hotCities.add(r.cityName + &(& + r.cityID + &)& + &
--&+ this.formatDataSize(r.size));
ListAdapter hAdapter = (ListAdapter) new ArrayAdapter&String&(this,
android.R.layout.simple_list_item_1, hotCities);
hotCityList.setAdapter(hAdapter);
//所有城市列表
ListView allCityList = (ListView) findViewById(R.id.allcitylist);
// 获取所有支持离线地图的城市
ArrayList&String& allCities = new ArrayList&String&();
* public java.util.ArrayList&MKOLSearchRecord& getOfflineCityList()
* 返回支持离线地图城市列表
* 返回:支持离线地图城市列表
ArrayList&MKOLSearchRecord& records2 = mOffline.getOfflineCityList();
if (records1 != null) {
for (MKOLSearchRecord r : records2) {
allCities.add(r.cityName + &(& + r.cityID + &)& + &
--&+ this.formatDataSize(r.size));
ListAdapter aAdapter = (ListAdapter) new ArrayAdapter&String&(this,
android.R.layout.simple_list_item_1, allCities);
allCityList.setAdapter(aAdapter);
LinearLayout cl = (LinearLayout) findViewById(R.id.citylist_layout);
LinearLayout lm = (LinearLayout) findViewById(R.id.localmap_layout);
lm.setVisibility(View.GONE);
cl.setVisibility(View.VISIBLE);
// 获取已下过的离线地图信息
localMapList = mOffline.getAllUpdateInfo();
if (localMapList == null) {
localMapList = new ArrayList&MKOLUpdateElement&();
ListView localMapListView = (ListView) findViewById(R.id.localmaplist);
lAdapter = new LocalMapAdapter();
localMapListView.setAdapter(lAdapter);
* 搜索按钮点击事件
* 搜索离线需市
* @param view
public void search(View view) {
* public java.util.ArrayList&MKOLSearchRecord& searchCity(java.lang.String cityName)
* 根据城市名搜索该城市离线地图记录
* 参数:cityName - 城市名
* 返回: 该城市离线地图记录
//从输入框中获取城市,查询该城市的离线地图搜索城市记录结构
ArrayList&MKOLSearchRecord& records = mOffline.searchCity(cityNameView.getText().toString());
if (records == null || records.size() != 1)
//显示查找出来的城市id
cidView.setText(String.valueOf(records.get(0).cityID));
* 导入按钮点击事件
* 从SD卡导入离线地图安装包
* @param view
public void importFromSDCard(View view) {
* public int importOfflineData()
* 导入离线地图包
int num = mOffline.importOfflineData();
String msg = &&;
if (num == 0) {
msg = &没有导入离线包,这可能是离线包放置位置不正确,或离线包已经导入过&;
msg = String.format(&成功导入 %d 个离线包,可以在下载管理查看&, num);
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
updateView();
* 开始按钮点击事件
* 开始下载
* @param view
public void start(View view) {
int cityid = Integer.parseInt(cidView.getText().toString());
* public boolean start(int cityID)
* 启动下载指定城市ID的离线地图
* 参数:cityID - 指定的城市ID
* 返回:成功返回true,否则返回false
mOffline.start(cityid);
//设置下载管理点击时间按钮响应为空
clickLocalMapListButton(null);
Toast.makeText(this, &开始下载离线地图. cityid: & + cityid, Toast.LENGTH_SHORT).show();
updateView();
* 停止按钮点击事件
* 暂停下载
* @param view
public void stop(View view) {
int cityid = Integer.parseInt(cidView.getText().toString());
* public boolean pause(int cityID)
* 暂停下载指定城市ID的离线地图
* 参数:cityID - 指定的城市ID
* 返回:成功返回true,否则返回false
mOffline.pause(cityid);
Toast.makeText(this, &暂停下载离线地图. cityid: & + cityid, Toast.LENGTH_SHORT).show();
updateView();
* 删除按钮点击事件
* 删除离线地图
* @param view
public void remove(View view) {
int cityid = Integer.parseInt(cidView.getText().toString());
* public boolean remove(int cityID)
* 删除指定城市ID的离线地图
* 参数:cityID - 指定的城市ID
* 返回:成功返回true,否则返回false
mOffline.remove(cityid);
Toast.makeText(this, &删除离线地图. cityid: & + cityid, Toast.LENGTH_SHORT).show();
updateView();
* 城市列表按钮点击事件
* 切换至城市列表
* @param view
public void clickCityListButton(View view) {
//城市列表
LinearLayout cl = (LinearLayout) findViewById(R.id.citylist_layout);
LinearLayout lm = (LinearLayout) findViewById(R.id.localmap_layout);
lm.setVisibility(View.GONE);
cl.setVisibility(View.VISIBLE);
* 下载管理按钮点击事件
* 切换至下载管理列表
* @param view
public void clickLocalMapListButton(View view) {
LinearLayout cl = (LinearLayout) findViewById(R.id.citylist_layout);
//已下载城市
LinearLayout lm = (LinearLayout) findViewById(R.id.localmap_layout);
lm.setVisibility(View.VISIBLE);
cl.setVisibility(View.GONE);
* 更新状态显示
public void updateView() {
* public java.util.ArrayList&MKOLUpdateElement& getAllUpdateInfo()
* 返回各城市离线地图更新信息
* 返回:各城市离线地图更新信息
localMapList = mOffline.getAllUpdateInfo();
if (localMapList == null) {
localMapList = new ArrayList&MKOLUpdateElement&();
lAdapter.notifyDataSetChanged();
protected void onPause() {
int cityid = Integer.parseInt(cidView.getText().toString());
MKOLUpdateElement temp = mOffline.getUpdateInfo(cityid);
* MKOLUpdateElement:离线地图更新信息
* status:下载状态
if (temp != null && temp.status == MKOLUpdateElement.DOWNLOADING) {
mOffline.pause(cityid);
super.onPause();
protected void onResume() {
super.onResume();
public String formatDataSize(int size) {
String ret = &&;
if (size & (1024 * 1024)) {
ret = String.format(&%dK&, size / 1024);
ret = String.format(&%.1fM&, size / (1024 * 1024.0));
protected void onDestroy() {
* 退出时,销毁离线地图模块
mOffline.destroy();
super.onDestroy();
* void onGetOfflineMapState(int type,int state)
* 返回通知事件
* type - 事件类型: MKOfflineMap.TYPE_NEW_OFFLINE,
MKOfflineMap.TYPE_DOWNLOAD_UPDATE,
MKOfflineMap.TYPE_VER_UPDATE.
* state - 事件状态: 当type为TYPE_NEW_OFFLINE时,表示新安装的离线地图数目.
当type为TYPE_DOWNLOAD_UPDATE时,表示更新的城市ID.
public void onGetOfflineMapState(int type, int state) {
switch (type) {
//离线地图下载更新事件类型
case MKOfflineMap.TYPE_DOWNLOAD_UPDATE: {
* public MKOLUpdateElement getUpdateInfo(int cityID)
* 返回指定城市ID离线地图更新信息
* 返回:该城市离线地图更新信息
MKOLUpdateElement update = mOffline.getUpdateInfo(state);
// 处理下载进度更新提示
if (update != null) {
//cityName:城市名称;
//ratio:下载比率,100为下载完成
stateView.setText(String.format(&%s : %d%%&, update.cityName,update.ratio));
updateView();
//新安装离线地图事件类型
case MKOfflineMap.TYPE_NEW_OFFLINE:
// 有新离线地图安装
Log.d(&OfflineDemo&, String.format(&add offlinemap num:%d&, state));
//离线地图数据版本更新事件类型
case MKOfflineMap.TYPE_VER_UPDATE:
// 版本更新提示
// MKOLUpdateElement e = mOffline.getUpdateInfo(state);
* 离线地图管理列表适配器
public class LocalMapAdapter extends BaseAdapter {
public int getCount() {
return localMapList.size();
public Object getItem(int index) {
return localMapList.get(index);
public long getItemId(int index) {
public View getView(int index, View view, ViewGroup arg2) {
MKOLUpdateElement e = (MKOLUpdateElement) getItem(index);
view = View.inflate(OfflineDemo.this,R.layout.offline_localmap_list, null);
initViewItem(view, e);
void initViewItem(View view, final MKOLUpdateElement e) {
Button display = (Button) view.findViewById(R.id.display);
Button remove = (Button) view.findViewById(R.id.remove);
TextView title = (TextView) view.findViewById(R.id.title);
TextView update = (TextView) view.findViewById(R.id.update);
TextView ratio = (TextView) view.findViewById(R.id.ratio);
ratio.setText(e.ratio + &%&);
title.setText(e.cityName);
* MKOLUpdateElement.update:是否为更新
if (e.update) {
update.setText(&可更新&);
update.setText(&最新&);
if (e.ratio != 100) {
display.setEnabled(false);
display.setEnabled(true);
//删除按钮点击事件
remove.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
mOffline.remove(e.cityID);
updateView();
//查看按钮点击事件
display.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent();
* public LatLng geoPt:城市中心点坐标
intent.putExtra(&x&, e.geoPt.longitude);
intent.putExtra(&y&, e.geoPt.latitude);
intent.setClass(OfflineDemo.this, BaseMapDemo.class);
startActivity(intent);
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:429868次
积分:4069
积分:4069
排名:第6151名
原创:26篇
转载:249篇
评论:70条
(13)(81)(29)(40)(1)(14)(10)(91)您的位置:
百度地图离线怎么用?没有网络百度全国地图照样用!
问什么问!有百度地图就够了!问路不求人!但是没网络怎么办?下载离线地图包啊!带着离线地图走四方,百度地图怎么离线用?如何下载离线地图包?全国地图能下吗?
没问题!本篇教程将手把手教你如何下载离线包,如何将离线包一步步导入到您的手机里,供你随时随地使用。
方法一:直接在手机端下载(建议在WiFi网络下进行)
1.打开百度地图App,依次点击【我的】&【离线地图】&【城市列表】,选择你要下载的城市地图,点击右侧的下载按钮。如下图所示:
2.提示:点击【下载管理】可以查看下载进度,还可选择暂停下载等操作。
3.下载完成后,用户可以将网络关闭,然后查看所下载的离线地图。
方法二:电脑下载离线包,使用iTunes导入
1.打开电脑浏览器,进入官网地址
2.选择手机型号,点击下拉按钮,在下拉框中选择您的手机型号。这里以为例。
共3页: 跳转到页
信息也是生产力,精简才是硬道理!情报猎手带你突破信息迷雾,每日独家为您锁定最有价值的IT行业新鲜事。打开微信,扫描关注,赢取每月粉丝奖!

我要回帖

更多关于 程序冷冻器 的文章

 

随机推荐