You are here

Create the NodeDetailActivity

This task describes how to create a node detail activity.
In this task you will create a new activity to display node details.
  1. Right-click on TestApp1 in the Package Explorer and select New > Other.
  2. In the New dialog, open the Android folder and select Android Activity.
  3. Click Next.
  4. In the New Activity dialog select Blank Activity.
  5. Click Next.
  6. In the Activity Name field enter NodeDetailActivity as the activity name.
  7. In the Hierachical Parent field click ....
  8. In the Select an Activity class text box start typing MainActivity.

    The dialog will display matching items found in the workspace.

  9. Select the parent activity com.alfresco.tutorials.testapp1.MainActivity from the Matching items list.

    Several instances of MianActivity will be displayed, ensure you select the correct one.
  10. Click OK.

    The Choose Activity Class dialog will close.

  11. Back in the New Activity dialog, click Next.

    Changes to your project will be previewed.

  12. 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.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.