I just developed a multiplatform mobile app with Codename One. I styled it using the codename one visual tool. I tested the app on multiple ios and Android devices and everything is fine except on asus android tablet. With these one. The screen displays like no style is loaded. The screens remains mainly dark... any idea ?
Look within your override directory, if you have a file there just delete it.
Related
My site look good on desktop, when window is resized it is responsive, also when i open it on Android Tab, but when I open it with any Android mobile phone it look bad. I think it does not load my Jquery / JS file. Everything is good CSS wise.
The problem was in my main.js file, one of the jquery plugins is not loading on mobile phone so it caused whole program to crash.
This question is referred only to Codename One apps.
Why do keyboards resize the UI on Android native apps and Javascript apps (only when run on Android) and don't have that effect on iOS native apps?
Can this default behavior be changed in our Codename One apps?
It's the native behavior of Android as you can see from the behavior in the browser. There isn't much we can do about it.
The solution is to make the UI scrollable which means everything will be resizable and behave more consistently in iOS/Android.
The black screen is visible for a moment at the start of the app in android devices. I've tested in all of my recent apps and it is there. In some devices, the black screen appears a bit longer especially in oreo.
Have a look at the video here
How can I solve it?
This is triggered because your start method is taking too long to process the Form or the Form's rendering code is too slow. When that happens Android tries to draw your app but it takes too long and so it just shows what it has.
Remove the clutter from start and just show a Form that's a splash screen then transition to the actual app. Optimize your actual app UI by using profilers & the performance monitor tool.
In my opinion, showing a splash screen before the actual app (as suggested by Shai) is a good idea to be sure that all the splash screen images generated for iOS by the Codename One build servers are as you want them: in this way, the app startup look will be very similar on iOS and Android. Some popular app, like Facebook, use a splash screen that show their icon at the middle of the screen.
However, about your question, in my "new" Android 7 device, almost "all" the apps, even the ones preinstalled with Android, show a blank screen for a fraction of second at startup. So I suppose that it's normal. That blank screen is usually white, but is some app the color of the blank startup screen is different (for example, in ES File Manager is gray). Also my Codename One apps show a blank white screen at startup (before the splash screen in the apps in which I implemented it). Maybe the color of the startup blank screen depends on the styling of the app.
I'm new to Xamarin.Forms and was looking for a way to remove the Splash Screen and have my custom animated splash screen, does anyone have the idea about how to do it? Any help at all would be great!
Thanks
There is a blog post here that details how remove the default splash screen and replace this on iOS, Android, and WindowsPhone.
For example on the Android example, they are talking about creating a new Activity, prior to loading the default Activity that will launch the Xamarin.Forms App.
Using that approach will most likely also work in all other platforms. As you can do some platform-specific native animation set, prior to launching your real Xamarin.Forms App in your PCL.
I have an application using XPages Mobile Controls for iOS.
My customer has Blackberry devices (9900/9800/9320) in his environment and I don't know if IBM provides a custom BBerry theme. These devices have a very small screen and the app navigation is too bad.
The Android/BBerry default theme seems the same of iOS using black/gray colors.
Have anyone ran into this situation in a project?