Occasional java.io.IOException: Operation not permitted only on Android 7.0 by DatagramSocket.send() - sockets

The following code works fine virtually 100% time on all Android device Android 7.0:
DatagramSocket clientSocket = new DatagramSocket();
clientSocket.setSoTimeout(4000);
clientSocket.setReuseAddress(true);
clientSocket.setBroadcast(true);
...
DatagramPacket dpSend = new DatagramPacket(baSendData, baSendData.length, InetAddress.getByName("239.255.255.250"), 3702);
clientSocket.send(dpSend);
On Android 7.0, only on Android 7.0, clientSocket.send(dpSend) generates the following error occasionally. I want to emphasize "occasionally". It works fine most of the time.
I am wondering if anyone could offer any insight of Android 7.0 to shed some light on why the exception happens only on Android 7.0.

Related

Flutter Wireless Debugging - Debugger won't start

So, I have connected to my phone using the adb connect command and now everything is going fine. Only issue is after a successful connection and the assembleDebug process the flutter run just get stuck. It's like the debugger is not able to start for some reason. Did anyone face an issue like this ?
System Info:
Flutter SDK Version: Flutter 3.0.2
Device Model: Samsung Galaxy M31
CPU Architecture: Android ARM64
Android Version: Android 12
If yes, I would like to know how you made your way around it. Any help is appreciated ! Thanks in advance.

SDK android emulator for flutter

I am installing andoid sdk in Intelli idea the error occuring in installation is :
"java.io.IOException: Connection closed at byte 45350576. Expected 326723360 bytes.
Warning: An error occurred while preparing SDK package Android Emulator: Connection closed at byte 45350576. Expected 326723360 bytes.."
I have downloaded and installed Intelli Idea have also installed flutter and dart PLUGINS now for i need emulator for it which i think is inside android sdk but its giving this error while installing it, I am basically learning dart flutter app development . please guide here how to use emulator using android sdk or anyway other than android sdk,

Scan for unused resources in Android Studio 3.0

Lint - Scan for Unused Resources - does not work on Android Studio 3.0. This is CMD-Alt-Shift I (Unused Resources). It works fine on Android 2.3.3.
In Android Studio 3.0, it just shows "No suspicious code found." message while I know for a fact that there are unused resources on my project.
Does anyone have the same issue?
I had the very same problem in Android Studio 3.0.0 and 3.0.1, however updating to Android Studio 3.1.0 fixed the issue. Now it's working perfectly again.

unity for mac doesnt have GetGraphicsAPIs

I have this error for compiling source on Android or iOS
UnityEditor.PlayerSettings' does not contain a definition forGetGraphicsAPIs'
Howvere I tried the same code on windows8 unity 5, it works properly.
In short
Unity5Mac Android error
Unity5Mac iOS error
Unity5Mac pc,mac,linux standalone OK
Unity5Win Android OK
Unity5Win iOS OK
Unity5Win pc,mac,linux standalone OK
I have googled GetGraphicsAPIs and check the document about unity5.
Could anyone know some information??

BlackBerry Android Runtime ADB failed

I try to Packaging project with Android Runtime For BlackBerry I done every thing
-Simulator, ADT- for eclipse .. when i test the app i got this error :
[2013-04-13 13:16:04 - BlackBerryTest] Packaging project BlackBerryTest
[2013-04-13 13:16:11 - BlackBerryTest] Launching BlackBerry Android Runtime...
[2013-04-13 13:16:20 - BlackBerryTest] Connecting to ADB...
[2013-04-13 13:17:23 - BlackBerryTest] Status ERROR: net.rim.ajde code=4 Connecting 192.168.72.128 to ADB failed! null children=[Status ERROR: net.rim.ajde code=0 Please check if the Android player was fully started when you got this error. If not, you can either increase the Android player launch timeout on the BlackBerry->BlackBerry Android Development Tools preference page or wait until the Android player is fully started and try again. null]
in the Simulator there is splash screen contain blackberry 10 logo start about 2 sec and then close and eclipse still Connecting to ADB... about a minute then I got error to connect.
**
UPDATE :
**
Now I got this message
04-25 12:01:15.539: I/navigatorshell(17789061): no app URI, just launch AP and exit
Any Idea ?
This is usually caused by the Android Runtime taking a very long time to load, and in some cases, never actually loading.
The root cause is that the simulator is running very slowly. If you haven't already, enable virtualisation in your BIOS, this makes a massive difference to simulator performance and solved this issue for me.
There's a video about this here: http://devblog.blackberry.com/2012/08/performance-increase-blackberry-10-simulator/