V/FA: Inactivity, disconnecting from the service

Wahdat Kashmiri picture Wahdat Kashmiri · Sep 6, 2017 · Viewed 50k times · Source

I face this problem in two android projects . In one i was trying to retrieve data from Firebase into Recyclerview and in onother i was trying to login using phone number but in both cases logcat is showing V/FA:

 Inactivity, disconnecting from the service

Answer

Sohaib Aslam picture Sohaib Aslam · Nov 25, 2017

Inactivity, disconnecting from the service

You Need to follow few steps to remove this problem. Reason: You face this problem because in the background there are few-thread and the process is running in the android studio which uses the connection of firebase and your process not get the connection.

Steps:

  1. Uninstall the app from your mobile/emulator.
  2. Then go to the File option in the main menubar in the android studio.
  3. Then click on Invalidatecasha/restart.

It takes few mints and restarts you android studio and that error is gone. Because all the backend thread and process are closed.

Happy Coding.