I'm working on the famous android app to transfer files using WiFi-Direct technology: https://github.com/Miserlou/Android-SDK-Samples/tree/master/WiFiDirectDemo
I want to implement a key exchange protocol (Diffie-Hellman) but I'm confused about where to put my key source code into this app.