I’m currently trying to follow this sample code that Michiel De Mey created on detecting LAN IP’. See link for his code: https://demey.io/network-discovery-using-udp-broadcast/ Anyways, i tried following it and i basically got what he got. It works when i run both server and client on my pc, but when i run the server from my… Read More


I have for example 20 apps: app1 app2 app20 Each of this app have background service. I need to somehow detect from other apps if service in app number x is working and then make action to not run it from other apps. If app number x is going to be uninstalled, then run service… Read More


This question already has an answer here: Iterating through a Collection, avoiding ConcurrentModificationException when removing in loop 15 answers I built a method that returns a specific value, and this value is taken from a arraylist. This value is being printed on my listview, so I’m calling the method on my listview adapter. But sometimes… Read More


I want to make 2 fragment, if I press the question then will replace the fragment question, and if the result of the fragment results. but of these codes are replaced only fp. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tersumbat); strings = getResources().getStringArray(R.array.Tersumbat); hasilstrings = getResources().getStringArray(R.array.HasilTersumbat); FragmentManager fm = getSupportFragmentManager(); Tersumbat.FragmentPertanyaan fp = new Tersumbat.FragmentPertanyaan();… Read More