2012-02-08 3 views
-1

Google지도를로드하려고하는데 '연결 팩토리 클라이언트를 가져올 수 없습니다.지도가로드되므로 키가 정확하다고 가정하고 있지만 할 수있는 모든 작업이 완료되었습니다. . 줌 컨트롤이 전혀로드되지 않습니다, 나는 모든지도를 이동할 수 없습니다.로드 된 연결 팩토리 클라이언트 타일을 가져올 수 없습니다. android

package com.saff.maps; 

import android.content.Context; 
import android.location.Location; 
import android.location.LocationListener; 
import android.location.LocationManager; 
import android.os.Bundle; 

import com.google.android.maps.GeoPoint; 
import com.google.android.maps.MapActivity; 
import com.google.android.maps.MapController; 
import com.google.android.maps.MapView; 


public class gpsActivityTest extends MapActivity{ 
private MapController mMapController; 
private GeoPoint mGeoPoint; 

public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    MapView mMapView = new MapView(this, "033wSZETHVmHYoRTPurperVQKTS8-zCsTzcbcaA"); 
    setContentView(mMapView); 
    mMapView.setBuiltInZoomControls(true); 
    mMapController = mMapView.getController(); 
    LocationManager mLocation= (LocationManager) getSystemService(Context.LOCATION_SERVICE); 
    mLocation.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new updateHandler()); 
} 

@Override 
protected boolean isRouteDisplayed() { 
    return false; 
} 

public class updateHandler implements LocationListener{ 

    public void onLocationChanged(Location location) { 
    int lat = (int) (location.getLatitude() * 1E6); 
    int lng = (int) (location.getLongitude() * 1E6); 
    mGeoPoint = new GeoPoint(lat, lng); 
    mMapController.animateTo(mGeoPoint); 
    mMapController.setCenter(mGeoPoint); 

    } 

    public void onProviderDisabled(String provider) { 
     // TODO Auto-generated method stub 

    } 

    public void onProviderEnabled(String provider) { 
     // TODO Auto-generated method stub 

    } 

    public void onStatusChanged(String provider, int status, Bundle extras) { 
     // TODO Auto-generated method stub 

    } 

} 

} 


<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.saff.maps" android:versionCode="1" android:versionName="1.0"> 

    <uses-sdk android:minSdkVersion="8" /> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 

    <application android:icon="@drawable/ic_launcher" android:label="@string/app_name"> 
     <uses-library android:name="com.google.android.maps" android:required="true" /> 
     <activity android:label="@string/app_name" android:name=".gpsActivityTest"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 

를 내가 얻을 수 있기 때문에 XML 파일 내 API를 코드를 삽입하지 않은 "mapViewStyle을 찾을 could't 테마 ". 내 API 키가 정확하다면 문제가 무엇인지 전혀 모르겠다.

광범위하게 봤지만 다른 오류가 없기 때문에 내 질문에는 대답하지 않는다.

02-10 00:10:26.305: I/Zygote(721): Zygote: pid 721 has INTERNET permission, then set capability for CAP_NET_RAW 
02-10 00:10:27.135: I/ApplicationPackageManager(721): cscCountry is not German : H3G 
02-10 00:10:31.145: I/MapActivity(721): Handling network change notification:CONNECTED 
02-10 00:10:31.145: E/MapActivity(721): Couldn't get connection factory client 
02-10 00:10:31.145: V/InputMethodManager(721): onWindowFocus: null softInputMode=288 first=true flags=#10100 
02-10 00:10:31.145: V/InputMethodManager(721): Has been inactive! Starting fresh 
02-10 00:10:31.145: V/InputMethodManager(721): focusIn: [email protected] 
02-10 00:10:31.145: V/InputMethodManager(721): checkFocus: view=null [email protected]52e0 restart=true 
02-10 00:10:31.145: V/InputMethodManager(721): Starting input: [email protected]52e0 
02-10 00:10:31.145: V/InputMethodManager(721): Starting input: [email protected] ic=null 
02-10 00:10:31.175: V/InputMethodManager(721): START INPUT: [email protected] ic=null [email protected] initial=true 
02-10 00:10:31.495: V/InputMethodManager(721): Starting input: Bind result=InputBindResult{null com.swype.android.inputmethod/.SwypeInputMethod #5} 
02-10 00:10:32.265: V/InputMethodManager(721): Starting input: [email protected]52e0 
02-10 00:10:32.265: V/InputMethodManager(721): Starting input: [email protected] ic=null 
02-10 00:10:32.265: V/InputMethodManager(721): Starting input: finished by someone else ([email protected]52e0 conn=false) 

답변

0

당신이 질문을하기 전에 좀 더 인터넷 검색을하려고하면 .. 당신이 Answer 더이 찾을 것 이외는 여기에 내 로그 캣입니다.

관련 문제