Permalink
Browse files

add sample for send token to server

  • Loading branch information...
1 parent 5463206 commit f745edadab9d1d39adfa4ec93d476085efc36a02 @susemi99 committed Jan 26, 2016
@@ -5,7 +5,6 @@
public class PreferenceManager extends BasePreferenceManager
{
private static PreferenceManager instance;
- private Context context;
public static PreferenceManager instance(Context context)
@@ -27,7 +26,6 @@ public static PreferenceManager instance(Context context)
private PreferenceManager(Context context)
{
super(context);
- this.context = context;
}
private static final String SENT_TOKEN_TO_SERVER = "sent_token_to_server";
@@ -35,9 +35,16 @@ protected void onHandleIntent(Intent intent)
Intent registrationCompleteIntent = new Intent(getString(R.string.action_registration_complete));
LocalBroadcastManager.getInstance(this).sendBroadcast(registrationCompleteIntent);
+
+ sendToServer(token);
} catch (IOException e)
{
e.printStackTrace();
}
}
+
+ private void sendToServer(String token)
+ {
+ Log.i("RegistrationIntentService | sendToServer", "send to server");
+ }
}

0 comments on commit f745eda

Please sign in to comment.