<div dir="ltr">I don't really understand, because if the process isn't killed Android don't release anything that you have loaded. So normally when the OS put the application back to the active state it should be really fast.<div><br></div><div>With our app we don't have a such issue.</div><div><br></div><div>Maybe you catch the back button in QML or C++ and you call the QApplication quit method or something else that finally make your application exiting.</div><div><br></div><div>Try to launch your app with a debugger, you'll see in the console if the process is killed when pressing the back button.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-14 21:31 GMT+02:00 Лагнер, Сергей <span dir="ltr"><<a href="mailto:developer@lagner.ru" target="_blank">developer@lagner.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you for advice</div><div><br></div><div>We are already doing our best to optimize QML loading time. We use Loaders from QML side </div><div>and lazy loading for models from C++ side. But the application still too heavy. </div><div>It takes 6 sec approximately to launch on Nexus 5. </div><div><br></div><div>Therefore we are looking for other ways to improve our app. </div><div><br></div><div>Now I'm care about warm start. </div><div><br></div><div>Lets consider the following scenario:</div><div>- I launch the app. It takes 6 sec.</div><div>- Press back and see a home screen</div><div>- Launch the app again in a second. And again it takes 6 sec.  </div><div><br></div><div>That is mean that all resources were freed and second start was completely from scratch. </div><div>I wonder if I could speed up the second(warm) start from java side. </div><div>For example, is it possible so save preloaded native libraries until the OS has the real lack of memory?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-06-14 21:56 GMT+06:00 Xavier Bigand <span dir="ltr"><<a href="mailto:flamaros.xavier@gmail.com" target="_blank">flamaros.xavier@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>If you are using QML you may have to use Loaders to avoid loading of GUI parts that are not displayed directly.</div><div>You can also take a look to the QtQuick compiler to improve qml loading.</div><div>There is a profiler on QtCreator for QML which can help you to find your binding that are slow, be sure to not having binding loops.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2016-06-14 16:33 GMT+02:00 Лагнер, Сергей <span dir="ltr"><<a href="mailto:developer@lagner.ru" target="_blank">developer@lagner.ru</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi all.</div><div><br></div><div>I'm trying to optimize start time of my android application. For now I'm interested in warm start time </div><div>when the user presses back and quickly returns to the app. If we consider java application the </div><div>warm start is faster, it seems like android caches something or so.</div><div>But it does not work for Qt applications. My application spends constant time for each start, even if I closed it a second ago. </div><div><br></div><div>Is there any way to optimize warm start of Qt application? </div><div>Any hints are highly appreciated.</div><div><br></div><div>Thanks,</div><div>Sergey</div></div>
<br></div></div>_______________________________________________<br>
Android-development mailing list<br>
<a href="mailto:Android-development@qt-project.org" target="_blank">Android-development@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/android-development" rel="noreferrer" target="_blank">http://lists.qt-project.org/mailman/listinfo/android-development</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Xavier</div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Xavier</div></div>
</div>