i am new to phonegap i want to know how can i improve performance of my app created using phonegap. Key issue is when the app starts up it is very slow on emulator as well as on device. When the app starts it first shows native android activity UI then the webview is invoked. Why this transition is happening and how i can hide from user.
Sounds like you are talking about splashscreen.
Im going to give you a lot of general answers, hope that some of them can help you.
You can extend the "splashscreen" life time by using the config.xml file, check this:
https://build.phonegap.com/docs/config-xml#android-prefs
Simon made a post about Android Splash Screens:
http://simonmacdonald.blogspot.dk/2012/04/phonegap-android-splashscreen-just-got.html
Or read some here:
Black screen for Android app
Related
I have an app running on AngularJS and Ionic and I have a problem with state transition with Android devices but not on iPhone/iOS.
One page is quite large and when I navigate from the home screen to this page the header gets loaded first and after 2-3 seconds the actual view changes.
I tried adding ng-cloak to the ion-view but this doesn't solve the problem.
What do you mean by that your view is getting changed? Also in which versions of Android are you facing this problem?
Unfortunately it seems a problem very device oriented. You could try to change some elements to enhance perfomance like changing your ng-repeat for collection-repeat.
The best way you could try to improve your performance in Android comes to the cost of weight in your App. You could try using Crosswalk Webview Plugin. This not only provides you the great webview capabilities where your native webview lacks the performance but also it is providing feature constancy across Android 4.0+ Platforms.
See this:
http://blog.ionic.io/crosswalk-comes-to-ionic/
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
i am new at building apps using phonegap and my last one is an app that shows information VIA WS ( basiclly it's a web app ) and been built on phonegap to APK file - and it works good.
i would like as an option to set the App ( wich will run on the Background ) on android LOCKScreen and dont know where to start...
thank you
The only way to put an app on the lock screen, that I know of, is to design it as widget. For example you can have a look at google documentation.
As far as I know at the moment there is no way to put an Android webview inside a widget and that is what you would essentially need to do. You should also see this SO question.
Hope this is a start for you ;-)
I've developed different personal apps for android and now i'm interested in google cardboard project
So, would be possible to create an application for android to implement the same system of this project : http://www.vrdesktop.net ( windows only ). In few words mirroring the android screen inside another app that will split everything ..
actually i don't know if there are some usefull api/ways to accomplish the job.
EDIT1: i've prepared a draw to better show the idea: https://docs.google.com/drawings/d/15AYvjesIhZDTe5mfOmm5TzhRkyxmDA6L0jI9MzdKbB4/edit
After long researches i've found an open source project that is doing exactly what i was looking for:
https://github.com/frma71/sbs
P.S. Thank you for useless downvoting
So I tried to make a splash screen based on the answer codaniel gave on this question. Thing is that I can't make it work proporly. First of all, if I integrate the splash screen in a single page and link it to a multipage, it keeps linking to the single page (even though I changed the link correctly). Secondly the splash screen bugs when it goes to the linked page. Anyone who has a solution for this?
It would be easier for you to use the splashscreen of cordova itself.
Hi I'm working on a phonegap / jquery mobile app. It is an audio (media.play) based app. I have the problem of multiple instances with StatusBarNotification plugin. I've tried to force with android:launchMode="singleTop" and it seems to work fine, but in some strange cases a new instance of the app opens, and the first one is working on background with the audio running.
It is quite annoying becouse I can't stop the audio until I get back to the first one. Is there a piece of code that really forces to only one instance?
I've heard about launchMode="singleInstance", but don't know really the difference.. what will be better?
Thanks.
It strictly depends on the device, where you run your application. Consult this answer to see, that on some devices (here: HTC) using android:launchMode="singleTask" rather than android:launchMode="singleTop" solve the problem.