This task describes how to create a node detail activity.
In this task you will create a new activity to display node details.
- Right-click on TestApp1 in the Package Explorer and select .
- In the New dialog, open the Android folder and select Android Activity.
- Click Next.
- In the New Activity dialog select Blank Activity.
- Click Next.
- In the Activity Name field enter NodeDetailActivity as the activity name.
- In the Hierachical Parent field click ....
-
In the Select an Activity class text box start typing
MainActivity.
The dialog will display matching items found in the workspace.
-
Select the parent activity
com.alfresco.tutorials.testapp1.MainActivity from the
Matching items list.
CAUTION:Several instances of MianActivity will be displayed, ensure you select the correct one.
-
Click OK.
The Choose Activity Class dialog will close.
-
Back in the New Activity dialog, click
Next.
Changes to your project will be previewed.
-
Click Finish.
The NodeDetailActivity class has been created along with the corresponding XML layout file, activity_node_detail.xml. The NodeDetailActivity class contains several stub methods.