2013-11-26 4 views
1

나는 약이 자습서를 보았다 Google 클라우드 메시징 here안드로이드 구글은 클라우드

그래서 단계 이상 튜토리얼 단계에서 모든 일을>

내 호스트 웹 사이트에 파일 에게 gcm_server_php을 업로드 한

.

하지만 이제 어떻게 APY Key와 프로젝트 번호를 얻을 수 있는지 알고 싶습니다.

이 튜토리얼가 someting는 내가>

package com.androidhive.pushnotifications; 

import android.content.Context; 
import android.content.Intent; 

public final class CommonUtilities { 

    // give your server registration url here 
    static final String SERVER_URL = "Server_url"; 

    // Google project id 
    static final String SENDER_ID = "Sender_ID"; 

    /** 
    * Tag used on log messages. 
    */ 
    static final String TAG = "AndroidHive GCM"; 

    static final String DISPLAY_MESSAGE_ACTION = 
      "com.androidhive.pushnotifications.DISPLAY_MESSAGE"; 

    static final String EXTRA_MESSAGE = "message"; 

    /** 
    * Notifies UI to display a message. 
    * <p> 
    * This method is defined in the common helper because it's used both by 
    * the UI and the background service. 
    * 
    * @param context application's context. 
    * @param message message to be displayed. 
    */ 
    static void displayMessage(Context context, String message) { 
     Intent intent = new Intent(DISPLAY_MESSAGE_ACTION); 
     intent.putExtra(EXTRA_MESSAGE, message); 
     context.sendBroadcast(intent); 
    } 
} 

내 말은 server_url에> 나는 그것이 내가 파일을 업로드 어디에 내 웹 사이트를 의미 무슨 생각됩니다 이해하지?

답변

0

확인이 :이 도움이 Android GCMAndroid GCM

희망.

+0

오, 감사합니다 .. – user3020391

+0

ok my dear/.... – user3020391

+0

선생님, 내 휴대 전화로 앱을 보내면 사용자 이름과 이메일을 설정했지만 오류가 발생했습니다> 기기를 등록 할 수 없다는 새로운 문제가 있습니다. 5 회 시도 후 데모 서버. 뭐가 잘못 되었습니까 – user3020391

관련 문제