PushAmazonIntentService.java
1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.arellomobile.android.push;
import android.content.Intent;
import android.util.Log;
import com.amazon.device.messaging.ADMMessageHandlerBase;
import com.amazon.device.messaging.ADMMessageReceiver;
import com.google.android.gcm.GCMRegistrar;
public class PushAmazonIntentService
extends ADMMessageHandlerBase
{
public PushAmazonIntentService()
{
super(PushAmazonIntentService.class.getName());
}
public PushAmazonIntentService(String paramString)
{
super(paramString);
}
protected void onMessage(Intent paramIntent)
{
Log.i("AmazonIntentService", "Received message");
PushServiceHelper.generateNotification(getApplicationContext(), paramIntent);
}
protected void onRegistered(String paramString)
{
Log.i("AmazonIntentService", "Device registered: regId = " + paramString);
GCMRegistrar.setRegistrationId(getApplicationContext(), paramString);
DeviceRegistrar.a(getApplicationContext(), paramString);
}
protected void onRegistrationError(String paramString)
{
Log.e("AmazonIntentService", "Messaging registration error: " + paramString);
PushEventsTransmitter.b(getApplicationContext(), paramString);
}
protected void onUnregistered(String paramString)
{
Log.i("AmazonIntentService", "Device unregistered");
GCMRegistrar.clearRegistrationId(getApplicationContext());
DeviceRegistrar.b(getApplicationContext(), paramString);
}
public static class MessageAlertReceiver
extends ADMMessageReceiver
{
public MessageAlertReceiver()
{
super();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/PushAmazonIntentService.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/