質問

I just want to know how can i declare the activity or add my activity in the manifest by using the eclipse GUI?..I do this in AndroidMaifest.xml-> application->click add button->create new top level element then select the Acitivity in the list->browse?but i could not see my activity.maybe i am wrong,can you help me on this please.

Thank you in advance.

役に立ちましたか?

解決 2

In <application /> tag

<activity
    android:name="YourActivity" >
</activity>

OR from Application Tab:

Add Activity

NOTE: YOU MUST extends Activity in your Activity class.

他のヒント

Seems to be you set the name value on the application tab. That should work fine and dandy

enter image description here

It should come out looking like this:

enter image description here

If you notice when you add an application node, aka activities, broadcast receivers, and services, you set the name of these as the "path" to the class. That's the same with the Application's name.

Easy. follow the steps.

1. Open your manifest file in Eclipse.

2. In the bottom tab you will find five options. Manifest, Application, Permissions, Instruments, Your_Manifest.xml

3. Click on Application tab and you will see nice GUI which would look something like thisenter image description here

4. Now see the option Application nodes click on the Add button and it will ask you what you would like to add

5. Select Activity and click ok it will provide you new form kind of thing for you to fill in just add your activity name and other attributes/properties etc.

PS: This is just too much work for me I follow keyboard way it feels faster. just press Ctrl+Space and it does the work for you. :P

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top