Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9133467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:29:40+00:00 2026-06-17T08:29:40+00:00

I am testing the google map v2 on Android. I followed this Tutorial When

  • 0

I am testing the google map v2 on Android. I followed this Tutorial

When I run the application on my mobile phone, I can not see the map. I don’t no why. I don’t think, that i forgot something. I have configured all the necessary things.

Here is a screenshot: http://s14.directupload.net/file/d/3130/68zcf2um_png.htm:

the logcat massages:

01-09 17:25:21.150: D/dalvikvm(18006): Late-enabling CheckJNI
01-09 17:25:21.455: D/dalvikvm(18006): GC_CONCURRENT freed 198K, 3% free 9458K/9735K, paused  2ms+2ms
01-09 17:25:22.075: D/dalvikvm(18006): GC_CONCURRENT freed 268K, 4% free 9635K/9991K, paused 1ms+2ms
01-09 17:25:22.600: D/dalvikvm(18006): GC_CONCURRENT freed 270K, 4% free 9830K/10183K, paused 2ms+2ms
01-09 17:25:22.765: D/dalvikvm(18006): GC_CONCURRENT freed 207K, 3% free 10154K/10439K, paused 2ms+4ms
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 1
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 2
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 3
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 4
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 5
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 6
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 7
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 8
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 9
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 10
01-09 17:25:22.835: D/SensorManager(18006): ====>>>>>Num Sensor: 0
01-09 17:25:22.840: D/SensorManager(18006): registerListener :: handle = 0  name= K3DH Acceleration Sensor delay= 20000 Listener= maps.i.a@416a4570
01-09 17:25:22.845: E/SensorManager(18006): thread start
01-09 17:25:22.845: E/SensorManager(18006): =======>>> Sensor Thread Running <<<========
01-09 17:25:22.960: D/dalvikvm(18006): GC_CONCURRENT freed 259K, 4% free 10322K/10695K, paused   2ms+2ms
01-09 17:25:23.000: D/libEGL(18006): loaded /system/lib/egl/libEGL_mali.so
01-09 17:25:23.050: D/libEGL(18006): loaded /system/lib/egl/libGLESv1_CM_mali.so
01-09 17:25:23.055: D/libEGL(18006): loaded /system/lib/egl/libGLESv2_mali.so
01-09 17:25:23.060: D/(18006): Device driver API match
01-09 17:25:23.060: D/(18006): Device driver API version: 10
01-09 17:25:23.060: D/(18006): User space API version: 10 
01-09 17:25:23.060: D/(18006): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Fri Oct  5 16:06:50 KST  2012 
01-09 17:25:23.380: D/dalvikvm(18006): GC_FOR_ALLOC freed 202K, 6% free 10336K/10887K, paused 156ms
01-09 17:25:23.405: D/dalvikvm(18006): GC_FOR_ALLOC freed 154K, 6% free 10335K/10887K, paused 19ms
01-09 17:25:23.425: D/dalvikvm(18006): GC_FOR_ALLOC freed 152K, 6% free 10336K/10887K, paused 16ms
01-09 17:25:23.440: D/dalvikvm(18006): GC_FOR_ALLOC freed 152K, 6% free 10336K/10887K, paused 14ms
01-09 17:25:23.460: D/dalvikvm(18006): GC_FOR_ALLOC freed 172K, 6% free 10337K/10887K, paused 14ms
01-09 17:25:23.475: D/dalvikvm(18006): GC_FOR_ALLOC freed 152K, 6% free 10337K/10887K, paused 14ms
01-09 17:25:23.495: D/dalvikvm(18006): GC_FOR_ALLOC freed 152K, 6% free 10338K/10887K, paused 14ms
01-09 17:25:23.510: D/dalvikvm(18006): GC_FOR_ALLOC freed 152K, 6% free 10338K/10887K, paused 14ms
01-09 17:25:23.605: D/CLIPBOARD(18006): Hide Clipboard dialog at Starting input: finished by someone else... !
01-09 17:25:23.725: D/Sensors(18006): Remain listener = Sending .. normal delay 200ms
01-09 17:25:23.725: I/Sensors(18006): sendDelay --- 200000000
01-09 17:25:23.725: D/SensorManager(18006): JNI - sendDelay
01-09 17:25:23.725: I/SensorManager(18006): Set normal delay = true
01-09 17:25:23.725: D/SensorManager(18006): unregisterListener:: disable all sensors for this listener,  name = K3DH Acceleration Sensor listener = maps.i.a@416a4570

Here is the MainActivity:

public class MainActivity extends FragmentActivity implements OnMapClickListener {

 final int RQS_GooglePlayServices = 1;
 GoogleMap myMap;

 TextView tvLocInfo;

 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  tvLocInfo = (TextView)findViewById(R.id.textView);
  initMap();
 }

private void initMap() {

     FragmentManager myFragmentManager = getSupportFragmentManager();
     SupportMapFragment mySupportMapFragment = (SupportMapFragment)myFragmentManager.findFragmentById(R.id.map);
     myMap = mySupportMapFragment.getMap();
     myMap.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker"));
     myMap.setMyLocationEnabled(true);
     myMap.getUiSettings().setZoomControlsEnabled(true);
     myMap.getUiSettings().setCompassEnabled(true);
     myMap.getUiSettings().setMyLocationButtonEnabled(true);

     myMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
     //myMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
     //myMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
     //myMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);

     myMap.setOnMapClickListener(this); 
}

@Override
 public boolean onCreateOptionsMenu(Menu menu) {
  // Inflate the menu; this adds items to the action bar if it is present.
  getMenuInflater().inflate(R.menu.main, menu);
  return true;
 }

 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
  switch (item.getItemId()) {
     case R.id.menu_legalnotices:
      String LicenseInfo = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(
        getApplicationContext());
      AlertDialog.Builder LicenseDialog = new AlertDialog.Builder(MainActivity.this);
      LicenseDialog.setTitle("Legal Notices");
      LicenseDialog.setMessage(LicenseInfo);
      LicenseDialog.show();
         return true;
     }
  return super.onOptionsItemSelected(item);
 }

 @Override
 protected void onResume() {
  // TODO Auto-generated method stub
  super.onResume();

  int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());

  if (resultCode == ConnectionResult.SUCCESS){
   Toast.makeText(getApplicationContext(), 
     "isGooglePlayServicesAvailable SUCCESS", 
     Toast.LENGTH_LONG).show();
  }else{
   GooglePlayServicesUtil.getErrorDialog(resultCode, this, RQS_GooglePlayServices);
  }

 }

 @Override
 public void onMapClick(LatLng point) {
  tvLocInfo.setText(point.toString());
  myMap.animateCamera(CameraUpdateFactory.newLatLng(point));
 }
   }

The main.xml:

    <LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" >

<TextView
    android:id="@+id/textView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Large Text"
    android:textAppearance="?android:attr/textAppearanceLarge" />

<fragment
    android:id="@+id/map"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    class="com.google.android.gms.maps.SupportMapFragment"/>
</LinearLayout>

and the manifest:

 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.googlelocatorv2"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="16" />

<permission 
    android:name="com.example.googlelocatorv2.permission.MAPS_RECEIVE" 
    android:protectionLevel="signature"></permission>

<uses-permission android:name="your_package_name.permission.MAPS_RECEIVE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

<uses-feature 
    android:glEsVersion="0x00020000" 
    android:required="true"/>

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="---myKey---"/>
    <activity
        android:name="com.example.googlelocatorv2.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>         
</application>

Can someone help me with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:29:40+00:00Added an answer on June 17, 2026 at 8:29 am
    <permission 
    android:name="com.example.googlelocatorv2.permission.MAPS_RECEIVE" 
    android:protectionLevel="signature"></permission>
    
    <uses-permission android:name="your_package_name.permission.MAPS_RECEIVE"/>
    

    These need to match, in your case You need to change uses-permission to

    <uses-permission android:name="com.example.googlelocatorv2.permission.MAPS_RECEIVE"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting a problem in my google map application problem. This is my
friends, while testing application on eclipse using emulator google map is being displayed properly.
I was testing out this demo on query-ui-maps: http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-mobile.html#directions_map Everything is the same except
I have an application which now is on google play. Ther developement and testing
Edit: closing anchor fixed. This issue exists when testing on the following browsers: Google
I am attempting to create a MapView application following the tutorial from the Android
I am testing an Android app that uses Google Maps. All went okay. I
I have created a simple app which shows a Google Map. I am testing
I've been testing some stuff with Google maps, and while this code gives me
I recently stumbled across this entry in the google testing blog about guidelines for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.