Skip to content Skip to sidebar Skip to footer

Permission For Sockets - Android Manifest

I've made a simple test application for reading RabbitMQ queues using java amqp lib (implementation 'com.rabbitmq:amqp-client:5.7.1'). But im having trouble when connectiong to my

Solution 1:

I was missing

<uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE" />

It should mentioned that connections MUST run in Background Threads, or otherwhise android will block it.

Also:

Uninstall app from emulator as suggested in java.net.SocketException: socket failed: EPERM (Operation not permitted)

Post a Comment for "Permission For Sockets - Android Manifest"