I create a new activity by below code :
<activity
android:name=".Car"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="ir.smspeik.CAR" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
an warning raise :
Exported activity does not require permission
but when i add android:exported="false" to it the warning disapears. what
is it?
also I write this code to show car activity in main activity :
Unfortunately sms(project name) has stopped.
and below error in logcat :
07-26 15:48:49.977: E/Trace(621): error opening trace file: No such file
or directory (2)
07-26 15:48:50.397: D/gralloc_goldfish(621): Emulator without GPU emulation
detected.
07-26 15:49:01.077: D/AndroidRuntime(621): Shutting down VM
07-26 15:49:01.077: W/dalvikvm(621): threadid=1: thread exiting with
uncaught exception (group=0x40a13300)
07-26 15:49:01.097: E/AndroidRuntime(621): FATAL EXCEPTION: main
07-26 15:49:01.097: E/AndroidRuntime(621):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=ir.smspeik.Activity2 }
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1545)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1416)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Activity.startActivityForResult(Activity.java:3351)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Activity.startActivityForResult(Activity.java:3312)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Activity.startActivity(Activity.java:3522)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Activity.startActivity(Activity.java:3490)
07-26 15:49:01.097: E/AndroidRuntime(621): at
ir.smspeik.sms.MainActivity.onKeyDown(MainActivity.java:26)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.view.KeyEvent.dispatch(KeyEvent.java:2609)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.Activity.dispatchKeyEvent(Activity.java:2361)
07-26 15:49:01.097: E/AndroidRuntime(621): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1819)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3575)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.view.ViewRootImpl.handleImeFinishedEvent(ViewRootImpl.java:3545)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2795)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.os.Looper.loop(Looper.java:137)
07-26 15:49:01.097: E/AndroidRuntime(621): at
android.app.ActivityThread.main(ActivityThread.java:4745)
07-26 15:49:01.097: E/AndroidRuntime(621): at
java.lang.reflect.Method.invokeNative(Native Method)
07-26 15:49:01.097: E/AndroidRuntime(621): at
java.lang.reflect.Method.invoke(Method.java:511)
07-26 15:49:01.097: E/AndroidRuntime(621): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-26 15:49:01.097: E/AndroidRuntime(621): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-26 15:49:01.097: E/AndroidRuntime(621): at
dalvik.system.NativeStart.main(Native Method)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en