Delete the resources that were incorporated into P2p4java class.  This style of resource management doesn't work in Android
Moving resources into a static method