预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共27页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

JavaAndroidCodes Activity AndroidManifest.xml <?xmlversion="1.0" encoding="utf-8"?> <manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.wpirl" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> <activityandroid:name=".Home" android:label="@string/app_name"> <intent-filter><action android:name="android.intent.action.MAIN"/> <categoryandroid:name="android.intent.category.LAUNCHER"/> </intent-filter></activity><activity android:name="com.wpirl.activity.MapActivity" android:label="@string/map_activity"> </activity><activity android:name="com.wpirl.activity.RouteActivity"android:label="@string/route_activity"> </activity><activity android:name="com.wpirl.activity.DirectoryActivity"android:label="@string/route_activity"> </activity></application><uses-permissionandroid:name="android.permission.ACCESS_WIFI_STATE"> </uses-permission><uses-permissionandroid:name="android.permission.CHANGE_WIFI_STATE"> </uses-permission><uses-sdkandroid:minSdkVersion="3"/> </manifest> Home.java packagecom.wpirl; importandroid.app.Activity; importandroid.content.Intent; importandroid.os.Bundle; importandroid.view.View; importandroid.view.View.OnClickListener; importandroid.widget.Button; importcom.wpirl.activity.DirectoryActivity; importcom.wpirl.activity.MapActivity; importcom.wpirl.activity.RouteActivity; importcom.wpirl.map.Map; importcom.wpirl.positioning.Positioning; publicclassHomeextendsActivityimplementsOnClickListener{privateButtonbtnMapActivity; privateButtonbtnRouteActivity; privateButtonbtnDirectoryActivity; /**Calledwhentheactivityisfirstcreated.*/@Override publicvoidonCreate(BundlesavedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.home); btnMapActivity=(Button)findViewById(R.id.btnMapActivity); btnMapActivity.setOnClickListener(this); btnRouteActivity=(Button)findViewById(R.id.btnRouteActivity); btnRouteActivity.setOnC