emulator getting slow on each launch - performance

I am working on API LEVEL 17 supporting back upto 8. I have some network task to perform that I am doing from seperate AsyncTask class. Now the problem is that whenever I try to launch the application on emulator first time will be fine, but from 2nd onwards my emulator response is slower and gets more slower on successive launch. after 4-5 launch It installs the app but never starts the activity. Then I have to restart the emulator and it also need a startup after 4-5 launch.
I have seen in logcat skipped ### screens!!! UI thread might be doing to much work right from the starting of emulator.
Can anyone tell me what could be going wrong? Thanks in advance!!!
Regards,
Sourabh

Your system configuration is less for android api 17 version your app work properly in api level 8 to 10, so you can set api level 8 to 10.

Surely process of Emulator starting is slow, as lots of threads and process starts-off when emulator starts. Still for better start timing you can download Intel atom emulator from Android SDK Manager, its also available for android api version 17, Also there is option of choosing Snapshot for emulator, which takes less time for start-off.

Related

Android emulator from Android Studio at MacOS changes time continuously

I've noticed the Android emulator from Android Studio at MacOS 12.6 changes time to some random one. For example it's 16:11 now but emulator shows time 15:16. If I set time to correct one manually it's changed back to wrong one after some time without emulator being suspended or rebooted.
I tried to turn off all automatic time and zone detection but it didn't help too. Also I'm not sure why wouldn't emulator synchronise time if automatic sync is on.
It seems to be a long lasting bug in emulator. The issue https://issuetracker.google.com/issues/257097404 is created in Google's bug tracker

PC Lags after some Android Studio Flutter

Here are my PC Specs
Acer Aspire 5
Intel Core i3-8145U 2.1GHz with Turbo Boost up to 3.9GHz
RAM: 4GB DDR4
SSD: Kingston SUV500M8120G
OS: Windows 10
So I watched flutter tutorials...
I tried to do it with Android Studio... I installed it in hdd...
So I didn't care too much about the ram usage and the lag...
Two or three days ago, when the emulator was running, the machine suddenly froze...
After waiting for half an hour, I tried to get the task manager but it didn't, so I turned it off with the power button...
After that, I googled and said that it is difficult to run an emulator with my pc specs...
So I used my phone that day and connected it with a data cable...
Anyway, since the day of that freeze, the lap is slower than before...
The file explorer and also After pressing the windows key, it takes a while to open...
What is the reason for this???
I use Eset Internet Security...
I did a full scan of it and nothing...
I also tried the chkdsk command on all three partitions and there is no problem...
When I used Angular before, I used Webstrom...
It's not that bad as android studio, it wasn't slow...
Should I reset the pc???
There is no big case because only the software are uninstalled.....​​
Or should I install the android studio on the ssd...​
The problem I have is that even after closing the android studio, it lags...
Even after restarting the PC, it is the same
Tell me some solution guys, it's a big help...
It is necessary to have good about of ram, 16 GB is good, less 8 GB might feel laggy.
Android studio consume more than Visual Studio Code. I will suggest you to switch on VS Code, and upgrading your component, increase the ram. Resetting Pc won't help that much. Try to kill every background process, just use vs-code. If you like to build for android use real device.
As for learning, you can try on dart.dev

How can I report on iOS and Android memory and process parameters inside my Xamarin.Forms application?

I have an application and I'm concerned that after running a long time it might be using too much memory. Perhaps there are some memory or background process issues that I need to look into.
Is there a way that I can find out from within both an iOS and Android application some memory and process statistics. If I was to be able to get to these I know how how to do the UI to report on them but I'm just not sure how to get the information.
Bear in my that by default it will be your mac Device selected device. Change it to your phone or Simulator.

How to debug an electron app packaged with squirrel that won't start on some computers

I've built an Electron app using the Squirrel packager/update manager.
I've had no issues in building the bundle, targeting Windows 64bits only.
I installed it on my Macbook pro (on a windows 7 x64 dual boot) without trouble. I tested it also on a 64 bit Surface pro 3 (Win 10), and another Win 7 PC. Everything works fine.
I published the app and got a few hundred downloads :half the people that downloaded it has it working, and for the other half it just won't start. The process spawns, then dies a second after. I tried starting it in admin, the admin dialog box won't even show. I tried running it from command line
myapp.exe > out.txt
But out is empty. How can I debug this ?
I was having trouble getting the logs for a production build as well.
My solution was to use electron-log to let the production app write logs to disk while debugging the problem.
You can then access the logs on windows at:
%USERPROFILE%\AppData\Roaming\<app name>\log.log.
Add some logs in your app that will give you insights in where the app crashes.
Don't forget to remove electron-log when you're done debugging and don't need to write any logs to disk any more.
I solved it for many users by building directly on a windows 10 fresh install.
The builds I used before were built on a windows 7. Not sure if it was that, I also have been cleaning the node modules a little bit, so maybe one of the modules I removed was the issue. Anyways, I still do not know of to debug the built exe in this kind of situation. There must be a way to get a log or something when the process kills itself

Android Emulator not loading when Google API (API Level 17 or in any other API level) is selected on windows

When I choose tagret as Android 4.2.2(API level 17),then emulator takes too long time to load adn starts up.
So I research on it and found solution by using Intel Atom(x86) instead of ARM(armeabi-v7a) as CPU/ABI and Intel Atom(x86) is really fast ,It helps me by increasing speed of execution..
But I need to run google service in my emulator So,I have to switch target from Android 4.2.2 to Google API.but when I select Google API then ARM(armeabi-v7a) is by default is selected and can not able to choose Intel Atom(x86)..
So I continue with ARM , but here problem is that emulator is very slow and it doesn't start since last 1 hour.Any solution ?
Any help will be appreciated.
Google Api's doesn't support Intel HAXM. Try Genymotion and download a VM with gapps e.g.
Nexus 7 Jelly Bean with Google Apps

Resources