Skip to content

Commit 7034b49

Browse files
committed
updates
1 parent 50758cd commit 7034b49

317 files changed

Lines changed: 8051 additions & 202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MapsDemo/.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry kind="output" path="bin/classes"/>
8+
</classpath>

MapsDemo/.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>MapsDemo</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

MapsDemo/AndroidManifest.xml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<!-- Declare the contents of this Android application. The namespace
18+
attribute brings in the Android platform namespace, and the package
19+
supplies a unique name for the application. When writing your
20+
own application, the package name must be changed from "com.example.*"
21+
to come from a domain that you own or have control over. -->
22+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
23+
package="com.example.android.google.apis">
24+
25+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
26+
<uses-permission android:name="android.permission.INTERNET" />
27+
28+
<application android:label="@string/activity_sample_code"
29+
android:icon="@drawable/app_sample_code" >
30+
31+
<uses-library android:name="com.google.android.maps" />
32+
33+
<activity android:name="com.example.android.apis.MapsDemo" android:label="MapsDemo">
34+
<intent-filter>
35+
<category android:name="android.intent.category.LAUNCHER"></category>
36+
<action android:name="android.intent.action.MAIN"></action>
37+
</intent-filter>
38+
</activity>
39+
40+
<!-- ************************************* -->
41+
<!-- VIEW/WIDGET PACKAGE SAMPLES -->
42+
<!-- ************************************* -->
43+
44+
<activity android:name="com.example.android.apis.view.MapViewDemo" android:label="MapView">
45+
<intent-filter>
46+
<action android:name="android.intent.action.MAIN" />
47+
<category android:name="android.intent.category.SAMPLE_CODE" />
48+
</intent-filter>
49+
</activity>
50+
51+
<activity android:name="com.example.android.apis.view.MapViewCompassDemo" android:label="MapView and Compass">
52+
<intent-filter>
53+
<action android:name="android.intent.action.MAIN" />
54+
<category android:name="android.intent.category.SAMPLE_CODE" />
55+
</intent-filter>
56+
</activity>
57+
</application>
58+
</manifest>

MapsDemo/default.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Project target.
2+
target=Google Inc.:Google APIs:15
3+
apk-configurations=

MapsDemo/project.properties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Project target.
11+
target=Google Inc.:Google APIs:3
12+
apk-configurations=
3.52 KB
Loading
5.08 KB
Loading

MapsDemo/res/layout/mapview.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2007 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<!-- Demonstrates use of the com.google.android.maps.MapView.
18+
See corresponding Java code com.example.android.apis.view.MapViewDemo.java. -->
19+
20+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21+
android:id="@+id/main"
22+
android:layout_width="match_parent"
23+
android:layout_height="match_parent">
24+
<com.google.android.maps.MapView
25+
android:layout_width="match_parent"
26+
android:layout_height="match_parent"
27+
android:enabled="true"
28+
android:clickable="true"
29+
android:apiKey="@string/maps_api_key"
30+
/>
31+
</LinearLayout>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2010 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<!-- NOTE: this file should NOT be checked into version control systems. -->
18+
<resources>
19+
<string name="maps_api_key">ENTER_API_KEY_HERE</string>
20+
</resources>
21+

MapsDemo/res/values/strings.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2007 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
18+
<string name="activity_sample_code">Maps API Demos</string>
19+
</resources>
20+

0 commit comments

Comments
 (0)