Android 2.3.3プロジェクトの別のサービスからインテントを含むサービスを開始しようとするとエラーが発生します。エラーです:{行為=(クラス名)、CMP =(クラス名)/(アンドロイド名)}を意図してサービスを開始できません:java.lang.IllegalArgumentExceptionが:プロバイダが== NULL別のサービスのインテントからサービスを開始するときに実行時エラーが発生する
メソッドコール:
private void startLocationService(){
intent = new Intent("com.example.Android.LocationService");
intent.setClass(MainService.this.getApplicationContext(), LocationService.class);
startService(intent);
}
マニフェスト:
<service android:name=".LocationService">
<intent-filter>
<action android:name="com.example.Android.LocationService"/>
</intent-filter>
</service>
</application>
助けてくれてありがとう、私は実際に私のLocationServiceのプロバイダがnullになっているアクセス許可を忘れてしまった。 – Krmiller92