Android Open Source - WeeWoo Geotrigger Receiver






From Project

Back to project page WeeWoo.

License

The source code is released under:

GNU General Public License

If you think the Android project WeeWoo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ggreenwood.weewoo;
/*from  w w  w.j  ava 2 s.c o m*/
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;

import com.esri.android.geotrigger.GeotriggerBroadcastReceiver;

/**
 * Created by garrett on 12/6/14.
 */
public class GeotriggerReceiver extends GeotriggerBroadcastReceiver{
    @Override
    protected void onPushMessage(Context context, Bundle notification) {
        super.onPushMessage(context, notification);

        // The notification Bundle has these keys: 'text', 'url', 'sound', 'icon', 'data'
        String msg = String.format("Push Message Received: %s", notification.get("text"));
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }
}




Java Source Code List

com.ggreenwood.weewoo.ApplicationTest.java
com.ggreenwood.weewoo.GeotriggerHelper.java
com.ggreenwood.weewoo.GeotriggerReceiver.java
com.ggreenwood.weewoo.MainActivity.java