2012-09-23 5 views
0

Google Maps API를 사용하여 만든 앱을 실행 중입니다.Android Emulator v/s 전화

에뮬레이터에서 예상대로 작동하지만 그래픽이 휴대 전화에서 다른 방식으로 렌더링되는 것 같습니다. 장치에 하나 -

참조를 위해 다음과 같은 이미지를 참조하십시오는

on my HTC Explorer , the Bevel effect isn't visible  on my emulator , the Bevel effect is perfectly visible This is the image i'm repeating - its being used in the background of the view

여기 왜 같은 이미지가 다르게 관찰되고 내 activity.xml 파일

<RelativeLayout 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" > 

<TextView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_centerHorizontal="true" 
    android:layout_centerVertical="true" 
    android:padding="@dimen/padding_medium" 
    android:text="@string/hello_world" 
    tools:context=".MainActivity" /> 



    <TextView 
    android:id="@+id/textView1" 
    android:layout_width="fill_parent" 
    android:layout_height="30dp" 
    android:background="@drawable/repeat" 
    android:layout_marginTop="0dp" 
    android:text="" 
    android:textAppearance="?android:attr/textAppearanceLarge" /> 


    <com.google.android.maps.MapView 
     android:id="@+id/mapView" 
     android:layout_marginTop="30dp" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:enabled="true" 
     android:clickable="true" 
     android:apiKey="--private--" /> 

</RelativeLayout> 

입니다 , 에뮬레이터에서 하나?

답변

1

실제 하드웨어에서 테스트하려면 디버그 키와 다른 키를 사용해야합니다. 디버그 키 저장소를 사용하고 있다고 생각합니다.

방문일 :

https://developers.google.com/maps/documentation/android-api/v1/?csw=1#getfingerprint이 구글에서 해당 단락을 읽어보십시오.

응용 프로그램을 Google API (디버그 키가 아닌)와 동일한 키를 사용하여 서명 된 응용 프로그램으로 내보내는 것이 중요합니다.

에 대한 유효한 그 단락을 읽기, 만들기 :

방문일 : http://developer.android.com/guide/publishing/app-signing.html#releasemode

을 다음 구글지도 API 키를 얻기 위해 동일한 키를 사용합니다.

일단 응용 프로그램에 대한 키가 있으면 프로젝트에서 마우스 오른쪽 버튼을 클릭하여 Android 도구를 선택한 다음 서명 된 응용 프로그램 패키지로 내보내기를 선택하고 마법사의 지시에 따라 서명 한 응용 프로그램을 내보낼 수 있습니다. 해당 마법사를 사용하는 새 키).

희망 하시길 바랍니다.

관련 문제