Mit app Inventor WiFi Extension code not working but not showing error

This is not only to add permissions in the manifest, you also have to ask for the permissions

Create a test project and use logcat to see what is going on

Taifun