Android get time in milliseconds

If you need to get the time in milliseconds in android then you can use the following code snippet: Now above code snipped will give you time since the system has been rebooted in milliseconds. In some case it would be sufficient to find how may milliseconds has been taken by any operation. Now there … Read more

Android | Find number of displays connected

You why you would need that. I used it to detect if screen mirroring is on or not. If length of displays is greater than 1 then screen mirroring is on else not. It’s not hundred percent upto the mark. May be we can use the MediaRouter API too. I haven’t gone through that much … Read more

Play Asset Delivery React Native

If you want to add PAD to your react native app, then it is the right place. It is the demonstration for the install-time asset delivery and not ‘on demand’ one. First read article: Android Developers Blog: Introducing Google Play Asset Delivery (googleblog.com) Next thing do all the settings as described in: Integrate asset delivery … Read more

Android: Project ‘XXXXX’ not found in root project ‘XXXXXX’

Sync may be required Solution Delete .gradle folder (which is in project’s root folder), and in Android Studio, from File menu click “Sync Project with Gradle Files” option. Reason Once this happened to me after switching Git branches: In branch feature/a I had a Gradle module named a. In branch feature/b there was no module … Read more

Reverse adb command android

Your metro server and app must be installed to make it work. What if you are connected wirelessly to the android device (like TV) through adb. In that case you have to use the port on which you are connected to that device. To get the port, run You will get something like ‘10.0.0.1:5555 device’. … Read more