The Android runtime is entirely correct.

This code:

public class SubLauncher extends Activity {
    /** Called when the activity is first created. */
           private static final String TAG = "NSubLauncher1";

    public void onCreate(Bundle savedInstanceState) {

*       Intent helloworldIntent = new Intent ("com.needham.helloworld", null);*

... creates the Intent using this constructor:


        publicIntent(String
        <http://developer.android.com/reference/java/lang/String.html>action,Uri
        <http://developer.android.com/reference/android/net/Uri.html>uri)

Since:API Level 1 <http://developer.android.com/guide/appendix/api-levels.html#level1>

Create an intent with a given action and for a given data url. Note that the action/must/be in a namespace because Intents are used globally in the system -- for example the system VIEW action is android.intent.action.VIEW; an application's custom action would be something like com.google.app.myapp.CUSTOM_ACTION.



The hello world manifest does not specify an intent filter with action = "com.needham.helloworld", thus the error.

I believe you probably meant to create your intent with explicit package and class names. To do that, create an empty intent first, then call setClassName(String packageName, String className).

It might find it useful to spend some time reading the docs on Intent and intent matching.

-- Kostya


On 02/27/2012 10:19 PM, Thomas wrote:
I need to have an bootup app call another app and while the bootup app
appears to work, the second app cannot be found?   The NLauncher was
derived from another thread  "start at boot app gives
instantiationException:"  in which it took a lot conversation to
resolve and I thank all concerned.
I added some debug statements to help isolate the problem.
Thanks in advance to all.
Tom B

Error:
  Intent { act=com.needham.helloworld }W/System.err(  191):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.needham.helloworld }W/System.err(  191):

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to