yes,i have those lines in manifest file,but i can't import those files
in my application and the coding are


Manifest file:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
    package="com.ramesh.map"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="17" />
       <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission
android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"
/>
    <!--
     The following two permissions are not required to use
     Google Maps Android API v2, but are recommended.
    -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <permission
        android:name="com.ram.googlemapsv2.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="com.ramesh.map.permission.MAPS_RECEIVE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <uses-library android:required="true"
              android:name="com.google.android.maps" />
        <activity
            android:name="com.ramesh.map.Map"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
         <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            
android:value="67:18:01:96:8C:3C:A3:F9:3B:E9:14:96:10:DC:BB:D5:CF:E9:3C:21"
/>

    </application>

</manifest>

and src is:-

package com.ramesh.map;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
public class Map extends Activity {

         GoogleMap map;
         @SuppressLint("NewApi")
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_map);
                
                
                map = ((MapFragment) 
getFragmentManager().findFragmentById(R.id.map))
                                    .getMap();
                                  // map.setMapType(GoogleMap.MAP_TYPE_HYBRID);
                                  // map.setMapType(GoogleMap.MAP_TYPE_NONE);
                                  map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
                                  // 
map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
                                  // map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);
                                 }
                                }

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to