Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm getting an Exception "Activity Not Found".I've an activity named:

public class ProfileForm extends Activity implements View.OnClickListener.

and in the androidmanifest.xml I have declared this activity:

<activity
            android:name="com.atria.requisitionform.ProfileForm"
            android:label="Profile Form Activity" >
        </activity>

Can someone please help resolve this? Because of this exception I'm getting a message"Unfortunately application has closed" error.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
195 views
Welcome To Ask or Share your Answers For Others

1 Answer

Try

        <activity
            android:name=".ProfileForm"
            android:label="Profile Form Activity" >
        </activity>

Or check twice your package name.

Note: use @string resources on android:label="Profile Form Activity"


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...