I’m getting an error when trying to start a service with an intent from another service in an Android 2.3.3 project. The error is: Unable to start service with Intent{ act=(class name) cmp=(class name)/.(android name) }: java.lang.IllegalArgumentException:provider==null
Method Call:
private void startLocationService(){
intent = new Intent("com.example.Android.LocationService");
intent.setClass(MainService.this.getApplicationContext(), LocationService.class);
startService(intent);
}
Manifest:
<service android:name=".LocationService">
<intent-filter>
<action android:name="com.example.Android.LocationService"/>
</intent-filter>
</service>
</application>
Is the problem a provider in LocationService.class ?