IBM Worklight Android splash screen issue - android

In my app I'm trying to hide the Splash Screen as per my needs, say after 3 secs. Which I could do easily in Phonegap. But in IBM Worklight its preventing that.
I have already posted a question on this, please refer this
When I dived more into the worklight library codes I have found a strange thing has been done,
in wlclient.js(file is read only and auto created on deploy.) following lines are written,
switch (getEnv()) {
case WL.Env.ANDROID:
// An injected interface from WLDroidGap.bindBrowser, used to dismiss the splash screen
WLCordovaSplashScreenDialog.removeSplashScreen();
WL.OptionsMenu.init();
break;
If comment this line
WLCordovaSplashScreenDialog.removeSplashScreen();
my splash is running is like it should. But when app gets an update from server wlclient.js is recreated.
So is there other way out to hide my splash screen as per my wish not auto handled internally by IBM WL.

The answer is the same as in your previous question. The current splash image implementation in Worklight does not provide the developer with the ability to choose when to hide the splash image.
We aim to change this, but obviously cannot commit to "when".

in IBM MobileFirst you can manage splash screen , please refer to the documentation link here that say (
In JavaScript code, you can use the WL.App.showSplashScreen()and WL.App.hideSplashScreen() methods to show and hide the splash screen.
You can choose to disable the automatic hiding of the splash screen by setting the option autoHideSplash to false in the initOptions.js file )

Related

How to change default Nativescript opening page in Angular+Nativescript application?

I am working on the Nativescript+Angular application and I am done with my assignment but now I want to change the default opening page image of NativeScript app.
I have tried but unable to find that. Please let me know if anyone knows.
Please see the image. I want to change this image.
NativeScript Sidekick makes changing assets like this for iOS and Android a breeze.It will help you by generating assets like the splash screen or app icon from a single image for all the different required resolutions.
https://www.nativescript.org/nativescript-sidekick
What you see upon launch is called Launch Screen or Splash Screen.
The default configuration allows you to showcase a static image upon launch, you may update the images for iOS at App_Resources/iOS/Assets.xcassets Or Android at App_Resources/Android/src/main/res/drawable-***/background.png
On iOS, you may design your own customised launch screen if you are familiar with Storyboard, the default story board file may be located atApp_Resources/iOS/Assets.xcassets/LaunchScreen.storyboard.
If you like some sort of animation upon launch screen, checkout nativescript-splashscreen plugin.

Splash screen is really Useful? Can we use any other Innovative Concept ? Is it really best practice?

For some unfathomable reason Google decided to add Splash Screens (Launch Screen) to their design guidelines, I know that,
1. Splash screen is better than staring at an empty screen.
................ [ Inflating the main layout and showing a UI without any dynamic data should be very fast. If that's not the case in your app you should fix it by making it fast to load instead of adding a splash screen that will then guarantee that your app is always launching slow.]
2. Splash screen is better than not having any information if the app is launching other than the launcher button getting pressed.
3.app's data takes a long time to load. A splash screen is better than a loading indicator. This especially with slow internet speeds.
All these problems , But splash Screen Is not only Single solution I think, It also have some Cons Like:
If you show your app's UI to the user first and then load the data into it you allow user to orient to the UI and they're immediately ready to go when the data comes in.
Users don't always want to interact with the data on the app's landing screen. Let the user get on with their task without forcing them to load the first screen's data. This is very important especially on a slow internet connection. Let user interact with your app while the data is loading. In many cases they might not care about the data you're loading by default.
********** Friends,I am using **UBER App & even only I want to see my "Promo code" To share with friend I need to Open app & Its take lots of time to open and for that much time I stuck on Splash screen & If there is no internet connection then app Stuck on startup I can't even read my "Promo Code"
So, My question is that , can we avoid splash screen there is another alternative? Its really needed & useful? Why cant we think about any other innovative Concept?
Sanket, splash screens also allow for the app itself to load. some apps like facebook are not actually apps but the normal website for mobile phones... made into its own special browser for only that website. thus, the app itself must load even its menus, which have icons and all on them. splash screens definitely would be great for those apps, though, other apps such as a non-website app..IE, something that loads locally then connects to the internet to update and cache data would totally be usable without a splash screen. you could straight up display or open the app to a menu and show a loading wheel on the menu options that aren't fully loaded yet. instead of a splash screen, you could also show terms and conditions of your app so users can go ahead and agree to them if they are required (such as apps that require use of an online service.)
Just display a dialog about you app updates or If ur app contains login functionality just use login using dialog.I think it may be an best alternative for splash.

Transparent activity that really clear other Activities

I have a small android machine that has android and other native process at same time.
Because the graphic of native is below, android app should be transparent.
I read many sources, made transparent activity and it works.
But it is special app for my machine, thus it should act like Launcher.
The thing is... if I back to my app after launch another app, the screen still shows another app's image.
Ex: My app(Home) - Other non-transparent app - (back/home) - My app shows previous other app's image, because my app is transparent.
So I want to make my app to clear all screens and be transparent to show native's graphic. I don't mean finish others. I want to clear or turn off visibility of other apps only.
FYI, I can't wrap the native to android app with JNI. The native process is old and big legacy. :(
Thanks in advance.
Have a look at FLAG_SHOW_WALLPAPER. Setting that to your activity will make it seem like all other apps were closed/hidden:
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WALLPAPER

Splash screen in Jquery Mobile

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.

Improving performance of PhoneGap application on Android?

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

Categories

Resources