Back to project page SensorsWebLogger.
The source code is released under:
GNU General Public License
If you think the Android project SensorsWebLogger 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 org.kost.android.sensorsweblogger; /*from w w w .j ava 2 s .co m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; public class MainService extends Service { HandleSensors MySensors; public MainService() { } @Override public int onStartCommand(Intent intent, int flags, int startId) { MySensors = new HandleSensors(getApplicationContext(),null); MySensors.StartServiceHandlers(getApplicationContext()); return START_STICKY; } @Override public void onDestroy() { MySensors.StopServiceHandlers(getApplicationContext()); } @Override public IBinder onBind(Intent intent) { // TODO: Return the communication channel to the service. throw new UnsupportedOperationException("Not yet implemented"); } }