Back to project page SurveySDK_android.
The source code is released under:
Apache License
If you think the Android project SurveySDK_android 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.survey.android.services; /*w ww. j av a2 s . c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; /** * A receiver that register device start-up event and start-up our GeoSurveyPollService. * * @author Milos Pesic * */ public class DeviceStartUpReceiver extends BroadcastReceiver { private static final String TAG = "DeviceStartUpReceiver"; @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Received: " + intent.getAction()); Intent serviceIntent = new Intent(context, GeoSurveyPollService.class); context.startService(serviceIntent); } }