com.android.kit 라는 패키지(A)와 com.android.lkw.kit 라는 패키지(B)가 있습니다.
A어플리케이션에서 인텐트로 B어플리케이션(액티비티) 을 호출하려고 하는데요
Intent intent = new Intent();
// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(new ComponentName("com.android.lkw.kit", "com.android.lkw.kit.Service"));
startActivity(intent);
첨에는 에러없이 됬었는데 제가 뭘 잘못만졋는지는 모르겠으나 계속 에러나네요 ㅠㅠ
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): FATAL EXCEPTION: main
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.kit/com.android.kit.Service}; have you declared this activity in your AndroidManifest.xml?
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1541)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1515)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.app.Activity.startActivityForResult(Activity.java:2988)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.app.Activity.startActivity(Activity.java:3094)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at com.android.lkw.kit.Caht$1.onClick(Caht.java:133)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.view.View.performClick(View.java:2532)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.view.View$PerformClick.run(View.java:9308)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.os.Handler.handleCallback(Handler.java:587)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.os.Handler.dispatchMessage(Handler.java:92)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.os.Looper.loop(Looper.java:150)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at android.app.ActivityThread.main(ActivityThread.java:4293)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at java.lang.reflect.Method.invokeNative(Native Method)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at java.lang.reflect.Method.invoke(Method.java:507)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
12-19 12:53:00.205: ERROR/AndroidRuntime(9762): at dalvik.system.NativeStart.main(Native Method)
12-19 12:53:03.508: ERROR/ActivityManager(249): fail to set top app changed!
12-19 12:54:39.982: ERROR/CPUMemInfo(9096): java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq (Permission denied)
12-19 12:59:40.766: ERROR/CPUMemInfo(9096): java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq (Permission denied)
고수님들 도와주세요 ㅠㅠ




호출하시려는 com.android.lkw.kit 패키지 내에 com.android.lkw.kit.Service해당 클래스가
AndroidManifest.xml에 선언되지 않았다는 오류입니다.
com.android.lkw.kit 내에 com.android.lkw.kit.Service 클래스가 존재 하지 않거나, 또는 manifest에 정의되있지 않은 문제로 보이네요