Back to project page pebble-accel-analyzer.
The source code is released under:
GNU General Public License
If you think the Android project pebble-accel-analyzer 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.whitneyindustries.acceldump; // w w w .j av a2 s. c om import android.content.Context; import android.content.Intent; import android.os.SystemClock; import android.support.v4.content.WakefulBroadcastReceiver; import android.util.Log; public class DataPostReceiver extends WakefulBroadcastReceiver { private static final String TAG = DataPostReceiver.class.getSimpleName(); @Override public void onReceive(Context context, Intent intent) { Log.i(TAG, "received alarm wakeup " + System.currentTimeMillis()); Intent service = new Intent(context, DataPostService.class); // forward IP string to next intent service.putExtras(intent); startWakefulService(context, service); } }