Back to project page GestureMechanism.
The source code is released under:
GNU Lesser General Public License
If you think the Android project GestureMechanism listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.in.mobile.common.utilities; /*from w ww.j av a 2 s .c om*/ import android.content.Context; import android.content.Intent; public class Commons { public static final String TAG = "GCMPushNotification"; // public static final String SENDER_ID = "662XXXXXXXXX"; // public static final String SERVER_URL = // "http://192.168.1.78:8080/GCM-mavenized-server"; public static final String SENDER_ID = "431447948280"; public static final String SERVER_URL = "http://192.168.1.243:8080/Back-end_Gesture"; public static final String DISPLAY_MESSAGE_ACTION = "com.in.mobile.gesture.ad.DISPLAY_MESSAGE"; public static final String EXTRA_MESSAGE = "message"; public static void displayMessage(Context context, String message) { Intent intent = new Intent(DISPLAY_MESSAGE_ACTION); intent.putExtra(EXTRA_MESSAGE, message); context.sendBroadcast(intent); } }