I have been using android studio device emulator to develop react-native apps and the emulator is taking upwards of 20 minutes to complete fetch requests (or any sort of data retrieval). When I build the same code on my physical phone the requests are completed instantly.
I have checked the device settings to make sure the network speed isn't everything seems ok there.
network speed set to full
The issue is persistent across my home desktop pc and my laptop and I have tried a few different system images.
Any help would be much appreciated!
Related
Is it better to test your application via USB (directly connecting your phone to the Android Studio) or by downloading the APK version of your app. I've been using emulator and it's really time consuming because it keeps lagging on my laptop. I wanna know which is faster and safer?
Connecting your phone via USB is always a more reliable and faster option (even if u don't consider the time it takes to copy and paste your APK file from pc to phone) You can also do a activity restart rather than restarting whole app this way which is less time consuming. You can even specify a certain activity to launch for testing. It also provides lots of Monitoring options like device monitoring, Network Monitoring, Database Inspection, Layout Inspection and so on.
I have written a simple login page using xamarin forms. When I try to deploy it on emulator, the emulator opens but my app is not visible.
1) Does it take time for the app to be deployed? Or would it appear on start up?
2) Should warnings be considered? I have no errors though.
Most Android emulated devices are slow. I have found that some of them simply won't render an app. This is not an indication that the physical device, which you are trying to emulate, won't work however. Try testing what works in an emulator and then creating a copy of what works in the device manager. Then make slight changes that are closer to the target device in the copy. Deploy every time to ensure that it is working. This process takes patience. If you are fortunate enough to have the physical device, debug through the USB connection.
emulator starts but there is no app on it besides it takes a lot of time to load. Is it because of windows?
If u have a device that runs on an Android operation system, you can run your app on that device, and it will be much faster. Andriod Studio and it's emulators require a lot of resources. So if you don't have a decent amount of RAM available for the program, it will slow down. If you still want to use the emulator,try closing applications you are not using. Like internet browsers, games, etc.. modify vitual memory pageing file size.
I'm developing an app where I need to download a 200-300 mb file from the web. Today I noticed a strange behaviour.
I always have my phone plugged to the PC with a cable with Android Monitors running in IntelliJ. Everyhing was running nice, files were downloading even when I was clicking the 'home' button in the middle of the process and I always got a notification to the menu that the downloading has finished - and it was really, complately finished.
Today I unplugged my phone from the pc/cable and opened the app. The downloading process starts but when I click 'home' and the app goes to the background, it won't finish, it won't even continue. It freezes the networking thread or something connected with it.
I read some, and I remember that some popular apps like for example 'Hearthstone' game had the same problem. If you go to the menu, downloading stops.
I figured it out that this is caused by the charger. If the phone is charging when the files are being downloaded, everything is ok.
And my question is.
Is there any Android permission that will allow me to do this?
I heard that it can be changed on the device's settings, but this is a bad solution.
Is there any possibility to download files in background, without a charger and without user's interaction with the settings?
I'll also add that I'm using LibGDX engine but it doesn't matter, I can use all of the Android's features.
I found that there are two aspects that can limit the network:
Restrict background data - an option that you can set on each application in Data Usage settings
Power saving option which automatically makes a limit on the networking and more.
Extra: when device is connected to a charger, power saving is disabled by default - that's why it was working.
Everywhere I look I can only find questions about how slow the emulator is.
I'm running my app on a real android device. The app has several short animations and totals around 63MB storage. I understand that the more space the app uses the longer the installation will take, but it still takes 3 to 4 minutes to install and run every time.
I'm debugging through USB 2.0 and would expect far better transfer speeds.
I also tried copying a video from my android device to my computer (also via USB), which also took up about 60MB of space, and it took over a minute -- I seemed to get about 1MB/s upload speed.
Are these speeds expected, or should they be faster?