kfealz wrote:
> Thanks, that probably is part of the problem, and I fixed that now,
> but I think the bigger problem is just how I initialize the Intent.
>
> When I do: Intent launchSuccess = new Intent(".Success");
> I get the error: An error has occurred in
> com.straightforwardcode.AndrAIM. No Activity found to handle Intent
> { action=.Success }.
>
> Any ideas?
I'm terribly sorry, I wasn't clear.
You were initializing your Intent properly in your original posting:
Intent launchSuccess = new Intent(AndrAIM.this, Success.class);
This triggers the component-based Intent constructor. This means Android
will search for an activity or other intent receiver with your
fully-qualified class name. If you update your manifest as I described
in the previous message to have your android:name attribute start with a
dot:
<activity android:name=".Success" android:label="Success">
Android should then be able to marry your Intent with your activity
implementation, assuming your manifest has a package attribute with your
application package, and assuming your Success class is in that package.
Push come to shove, simply put the fully-qualified class name in the
activity declaration:
<activity android:name="com.straightforwardcode.some.package.Success"
android:label="Success">
(where you should replace "some.package" with whatever's appropriate for
your code -- I couldn't deduce your actual package name from your messages).
If that doesn't work, write back with the new error message.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---