iOS_MonkeyTalk(4.2)_Installing the MonkeyTalk Android Agent

来源:互联网 发布:mac ssh 端口号 编辑:程序博客网 时间:2024/06/03 14:51

Installing the MonkeyTalk Android Agent

Open your Android Project in Eclipse and follow these instructions.

  1. Convert your Android project to AspectJ

    Right click, Configure, Convert to AspectJ

  2. MonkeyTalk-agent.jar can be found in the "agents" folder in the MonkeyTalk package you downloaded earlier, and can be downloaded here. The exact name of the jar might vary depending on the version, but it should always start with "MonkeyTalk-agent".
  3. Create a "libs" folder in your Android project, if you don't already have one.
  4. Copy the .jar into the libs folder
  5. Right click on MonkeyTalk-agent.jar > AspectJ Tools > Add to Aspectpath.

  6. Update your AndroidManifest.xml to include the following two permissions:
    1. android.permission.INTERNET
    2. android.permission.GET_TASKS

    Update Android Manifest

  7. Update the project properties (right-click on the project > Properties > Java Build Path), select the Order and Export tab, and check the checkbox next to the AspectJ Runtime Library to export it:

    Export AspectJ

  8. Deploy your application to an Android device or emulator.