For deisgn reason, I have to implement Android sensor specific code into the class with `extends Service`. For example,

```
public class SmokeService extends Service implements ISmokeDetector {

    SensorManager mySensorManager;
    Sensor myProximitySensor;
    private double currentLightReading;
    private Context myContext;

    @Override
    public IBinder onBind(Intent intent) {
        // TODO Auto-generated method stub
        return null;
    }   

    @Override
    public void onCreate() {
        super.onCreate();

    mySensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
myProximitySensor = mySensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
mySensorManager.registerListener(proximitySensorEventListener, myProximitySensor, SensorManager.SENSOR_DELAY_NORMAL);

    }

    SensorEventListener proximitySensorEventListener = new SensorEventListener() {
        @Override
    public void onAccuracyChanged(Sensor sensor, int accuracy) {
        // TODO Auto-generated method stub
    }

    @Override
    public void onSensorChanged(SensorEvent event) {

    }
    };

    @Override
    public SmokePresenceStruct getsmokePresence() {

              return new SmokePresenceStruct(true, timestamp);

        }

    @Override
    public void getsmokePresence(ListenersmokePresence handler) {
          handler.onNewsmokePresence(this.getsmokePresence());
    }

    @Override
    public boolean isEventDriven() {

    }
}

```

My question is that "**Is there any way to start the above service through non Android Java class?** " Let's say I have a java class, who has Context and it want to start this service. For example :

```
public class AndroidSmokeDetector {

    Context myContext;

    public AndroidSmokeDetector(Context context, Object obj) {
        //super(context);
        this.myContext = context;

    }
}

```

Could please suggest me the way of interacting with the service through the `AndroidSmokeDetector` class. Assuming that I will get context from `MainActivity` ?"