Google Cloud Message(GCM)是Google提供給開發者使用的推播服務平台(Push Notification Service)
其前身稱為Android Cloud to Device Messaging(C2DM),此於Android 2.2(Froyo)開始支援
在2012/6/27更名為Google Cloud Message(在Android 4.1發佈前)
GCM主要功能是透過Google的連結伺服器發佈信息給Android的裝置,藉此達到通知的功能
舉例來說:A在B的FB塗鴉牆上留言,FB將藉由推播系統通知B說"有人在你塗鴉牆留言",這時候B的手機就會跳出通知來了唷。
不過!這個例子其實不太正確,原因是FB並不是使用GCM達到這些功能的,Facebook使用MQTT這項技術自行架設推播服務平台,這樣一來就不會受限於Google了!
若你有安裝Facebook APP的話可以在 設定 -> 應用程式管理 -> 執行中 點擊該應用程式來看即會看到如下畫面:
MqttPushService即是一支背景程式負責接收來自FB的推播訊息
In this part, I will introduce how to git clone repository.
Because Android Studio update frequently, I suggest that you'd better to check update for newest version.
And check your Android SDK update, it's usually involving to your development environment.
Let's start it!
Read on →
Android Studio has git plugin, which can make you have a well version control on your project.
In this part, I will show you
Prepare :
At the first, you should install Git for Windows.
And then, Setting git tools path for Android Studio.
File > Settings > Version Control > Git
You can click Test button to check function. Such as figure below.
Read on →
In Android JNI programming, it can also use Log function like android.util.Log
There are two main steps to reach propose.
Read on →Introduce
This tutorial will show you how to set up an