谷歌Android云

谷歌Android云

问题描述:

我看到本教程的谷歌云消息here谷歌Android云

所以不要在上面的教程步骤中的所有事情一步>

我上传文件gcm_server_php到我的主机的网站。

但现在我想知道如何获得APY Key和我的项目编号?

这是从教程成才我>

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>我想这意味着我的网站,我上传的文件?

检查:Android GCMAndroid GCM

希望这有助于。

+0

ohh,thank dera .. – user3020391

+0

好的我亲爱的/ .... – user3020391

+0

先生你能帮我吗我有新问题,当我发送应用程序到我的手机,我设置用户名和电子邮件,但错误>无法注册设备上演示服务器5次尝试后。最新错误 – user3020391