资源简介
Android bikeroute自行车导航源码
代码片段和文件信息
// Created by plusminus on 00:23:14 - 03.10.2008
package org.osmdroid;
import org.osmdroid.constants.OpenStreetMapConstants;
import org.osmdroid.samples.SampleLoader;
import org.osmdroid.tileprovider.tilesource.ITileSource;
import org.osmdroid.tileprovider.tilesource.TileSourceFactory;
import org.osmdroid.tileprovider.util.CloudmadeUtil;
import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.MapView;
import org.osmdroid.views.overlay.MyLocationOverlay;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.SubMenu;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.Toast;
/**
* Default map view activity.
*
* @author Manuel Stahl
*
*/
public class MapActivity extends Activity implements OpenStreetMapConstants {
// ===========================================================
// Constants
// ===========================================================
private static final int MENU_MY_LOCATION = Menu.FIRST;
private static final int MENU_MAP_MODE = MENU_MY_LOCATION + 1;
private static final int MENU_OFFLINE = MENU_MAP_MODE + 1;
private static final int MENU_SAMPLES = MENU_OFFLINE + 1;
private static final int MENU_ABOUT = MENU_SAMPLES + 1;
private static final int MENU_COMPASS = MENU_ABOUT + 1;
private static final int DIALOG_ABOUT_ID = 1;
// ===========================================================
// Fields
// ===========================================================
private SharedPreferences mPrefs;
private MapView mOsmv;
private MyLocationOverlay mLocationOverlay;
private ResourceProxy mResourceProxy;
// ===========================================================
// Constructors
// ===========================================================
/** Called when the activity is first created. */
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mResourceProxy = new ResourceProxyImpl(getApplicationContext());
mPrefs = getSharedPreferences(PREFS_NAME MODE_PRIVATE);
final RelativeLayout rl = new RelativeLayout(this);
CloudmadeUtil.retrieveCloudmadeKey(getApplicationContext());
this.mOsmv = new MapView(this 256);
this.mOsmv.setResourceProxy(mResourceProxy);
this.mLocationOverlay = new MyLocationOverlay(this.getbaseContext() this.mOsmv
mResourceProxy);
this.mOsmv.setBuiltInZoomControls(true);
this.mOsmv.setMultiTouchControls(true);
this.mOsmv.getOverlays().add(this.mLocationOverlay);
rl.addView(this.mOsmv new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT
LayoutParam
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3122 2011-05-24 16:24 Android bikeroute自行车导航源码\AndroidManifest.xm
文件 1729930 2011-01-24 02:27 Android bikeroute自行车导航源码\bcprov-ext-jdk16-145.jar
文件 380 2010-06-21 17:11 Android bikeroute自行车导航源码\default.properties
文件 5452 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\allclasses-fr
文件 4752 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\allclasses-nofr
文件 9681 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\constant-values.html
文件 5317 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\deprecated-list.html
文件 10024 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\help-doc.html
文件 135355 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\index-all.html
文件 1432 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\index.html
文件 20423 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\AbstractChart.html
文件 28295 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\BarChart.html
文件 13968 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\BarChart.Type.html
文件 21224 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\BubbleChart.html
文件 13208 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\AbstractChart.html
文件 7919 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\BarChart.html
文件 19191 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\BarChart.Type.html
文件 6074 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\BubbleChart.html
文件 6054 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\DialChart.html
文件 6094 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\DoughnutChart.html
文件 7921 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\LineChart.html
文件 6044 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\PieChart.html
文件 11938 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\Pointst
文件 6094 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\RangeBarChart.html
文件 8660 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\ScatterChart.html
文件 6054 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\TimeChart.html
文件 13574 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\class-use\XYChart.html
文件 17033 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\DialChart.html
文件 17183 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\DoughnutChart.html
文件 23761 2011-05-24 16:24 Android bikeroute自行车导航源码\docs\achartengine-0.6.0-javadocs\org\achartengine\chart\LineChart.html
............此处省略1054个文件信息
相关资源
- android studio 调用相机拍照,选择相册
- android修改头像
- TUTK_Android_SDK
- Android人体检测
- android加密
- Android手机银行
- android_m2repository_r07
- Android SO文件保护加固——混淆篇一源
- Android仿大众点评源码
- android 休眠和唤醒
- android 仿日历翻页特效,数字翻转变换
- Android 高德地图入门demo,最新高德地
- Android解决多个Fragment切换时布局重新
- Android解决多个Fragment切换时布局重新
- Android 上下滚动条、轮训滚动、广告条
- Android 图片模糊、高斯模糊、毛玻璃的
- Android完美解决listview中多个edittext显示
- android-beacon-libary的使用
- Android增量更新源码+bzip2+bsdiff+差分包
- 数独游戏android源代码
- Android开发2019(很好很详细)ppt
- android集成腾讯TBS完成office在线浏览
- 基于Android的计步器
- Android 应用完整源码 客户端+服务端
- android各传感器开发,显示返回数据
- Android 录屏Demo
- Android 获取手机摄像头视频数据
- Android小游戏---打地鼠
- Android文件系统全面讲解
- 基于android的智能导游
评论
共有 条评论