how to use Service
<p>I need a service that run at different process and start at boot .</p>

<p>Also My Application should communicate with that ,</p>

<p>Also I do not want allow other appliaction to use my service .</p>

<p>is there any way ?</p>

<pre><code>private ServiceConnection mConnection = new ServiceConnection() {

    public void onServiceConnected(ComponentName className, IBinder binder) {
        service = ((BoxService.MyBinder) binder).getService();
        Toast.makeText(mainActivity.this, "Connected", Toast.LENGTH_SHORT)
                .show();
    }

    public void onServiceDisconnected(ComponentName className) {
        service = null;
    }
};

void doBindService() {
    bindService(new Intent(this, BoxService.class), mConnection,
            Context.BIND_AUTO_CREATE);
}
</code></pre>

<p>This works well when I use service at my process  , but when I want to use that at diffrent process , I get error in binding , </p>

<p>What can I do ?</p>
