Questions tagged [detach]

303 questions
-2
votes
1 answer

multiplethreads checking reachability if any one thread completed and got reachable status then exit from main by priting the status

multiple threads accessing same function to check reachability if any one thread completed and got reachable status then exit from main by priting the status dont wait for other threads to complete. in the below code i have use while() loop inside…
-2
votes
1 answer

Fragment onDetachFragment() illegal state exception

I used to have onDetach in my Fragment and in it I was just using for releasing resources (Context = null and stuff like that). Since then I got a couple of this Illegal state exceptions. I deleted onDetach and moved the code to other end of life…
Nemanja
  • 211
  • 6
  • 16
-6
votes
3 answers

NullPointerException when calling a method from another Fragment

I'm trying to follow a given example by the user @sunil-sunny, that says You can create static varibales like this static FragmentB f; public static FragmentB newInstance(String title) { FragmentB f = new FragmentB(); Bundle b =…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
1 2 3
20
21