APISonar


com.google.android.gcm.demo.service.LoggingService.Logger.log

> com > google > android > gcm > demo > service > LoggingService > Logger > log
com APIs google APIs android APIs gcm APIs demo APIs service APIs LoggingService APIs Logger APIs log APIs

Example 1
private LoggingService.Logger mLogger;

    private void unsubscribe(View v) {
        String senderId = (String) v.getTag(R.id.tag_senderid);
        String topic = (String) v.getTag(R.id.tag_topic);
        Sender sender = mSenders.getSender(senderId);
        Token gcmToken = (sender != null) ? sender.getGcmDemoAppToken() : null;
        if (gcmToken == null) {
            mLogger.log(Log.ERROR, "gcmToken missing while un-subscribing from topic.");
            return;
        }
        Toast.makeText(getActivity(),
                getString(R.string.topics_unsubscribing, topic),
                Toast.LENGTH_SHORT)
                .show();
        mPubSubHelper.unsubscribeTopic(senderId, gcmToken.token, topic);
    }