@Freham
2 / 2 / 0
Регистрация: 14.10.2013
Сообщений: 175
|
28.11.2013, 20:19
[ТС]
|
|
Это Java код
Java | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package com.exaple.yarch;
import com.google.android.gms.maps.MapView;
import android.app.Activity;
import android.os.Bundle;
public class MainMap extends Activity {
private MapView mapView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_map);
setMapView((MapView)findViewById(R.id.map_view));
}
public MapView getMapView() {
return mapView;
}
public void setMapView(MapView mapView) {
this.mapView = mapView;
}
} |
|
XML | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.gms.maps.MapView
android:id="@+id/map_view"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:clickable="true"
android:apiKey="AIzaSyCb0SWrBXb_16DkmiF9z4VmZS4dTtGZGH4"
/>
</LinearLayout> |
|
это xml разметка
Добавлено через 14 минут

Сообщение от Digetix
Это ни о чём не говорит. Нужно лог смотреть
выше мой код
0
|