WebNMS SNMP API distribution consists of a jar named AdventNetSnmp.jar that contains a set Java class libraries.
All you need is to just include this jar to your android project and start developing your SNMP manager appplication.
7.How do I run the various example applications provided, in the command-line?
The product distribution contains the necessary sources required to develop sample android applications.
Go to the /android-sdk-linux/tools/ directory and execute the command, android update project -s -n <SNMPAPI_EXAMPLE> -t <target_ID> -p <path for the project>, to create a project with existing sample code
Copy AdventNetSnmp.jar to the libs directory of the project.
Check res, src and libs directory for all the files has been included or not. Also check the AndroidManifest.xml file.
Download and install latest Apache Ant package to compile your android project.
Run the application in debug mode using "ant debug" command, which will create a <project>debug.apk file in the <Project-Home>/bin directory. (Each time you change a source file or resource, you must run Ant again in order to package up the latest version of the application)
Install the obtained <project>debug.apk to test the same.
Refer the below pages for more detailed explanations,
9. I am able to execute the example applications but I am not getting results. What should I do?
If you get a timeout error after executing the application, the remote host given by you might not have an SNMP agent running on it. The agent should be running on the system on which you are querying. Therefore, install an SNMP agent in the machine or try on some other host which has the SNMP agent. Your network administrator might know more about this. In general, routers, ethernet switches, and network printers have the SNMP agent. You can try querying these devices.