This is why I love the open source community! :D
That worked perfectly. I also had to move the code that initialized
the Intent into onCreate, rather than having it floating in the class
outside any method.
Thanks so much!
One more issue.. if you can help me with this, I should be exactly
where I want to be with this now..
I'm trying to get an animation working. I ripped some of the code out
of Google's shake sample in the API demos, and I want one of the text
fields to "shake" under a certain condition (when invalid username/
password are entered).
So, I added:
Animation shake = AnimationUtils.loadAnimation(this,
R.anim.shake);
findViewById(R.id.password).startAnimation(shake);
Eclipse gives me the error: "R.anim cannot be resolved".
I'm not sure exactly where R.anim are coming from.. I've been looking
around, but can't find anything that would suggest why it wouldn't be
resolved.
I found class information here:
http://code.google.com/android/reference/android/R.anim.html
, but it doesn't seem like I should need to import anything additional
to make it be recognized (aside from android.view.animation.Animation
and android.view.animation.AnimationUtils, which I am already
importing).
Any ideas?
On May 1, 3:41 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---