Different versions of android, different display


#1

There is a very simple application. Calendar. Made using the slide-box, every month is a separate slide.
Tested on emulators and all was as I had planned.

But some users send screenshots quite a broken layout.

No top line with the name of the month.

Here absolutely everything is broken

Really, different versions of android differently display the same information? And how to solve the problem?


#2

What version of android were you testing on?


#3

The first screenshot where everything works 4.4.2, 4.2.1 on the second, and the third on 2.3.4. On the tablet with 3.2 startup error occurs:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aspire89.WorkCalendar/com.aspire89.WorkCalendar.StarterApp}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020001
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
at android.app.ActivityThread.access$500(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020001
at android.content.res.Resources.getValue(Resources.java:1010)
at android.content.res.Resources.getDrawable(Resources.java:654)
at android.view.View.setBackgroundResource(View.java:9970)
at org.apache.cordova.CordovaActivity$5.run(CordovaActivity.java:1070)
at android.app.Activity.runOnUiThread(Activity.java:4103)
at org.apache.cordova.CordovaActivity.showSplashScreen(CordovaActivity.java:1093)
at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:370)
at com.aspire89.WorkCalendar.StarterApp.onCreate(StarterApp.java:33)
at android.app.Activity.performCreate(Activity.java:4397)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779)
... 11 more

#4

hmm, I’ve never used 3.2 before but this looks like a build issue on android’s part in my opinion.

As far as 2.3.4, I know that there are some support issue because it is and older version of android.


#5

HI @mhartington how do I make sure the image I set as background appears fine in all android screens? The images seems to get chopped in some or appears only half in the other :frowning:


#6

You should check out CanIUse. Older versions of android need some prefix love.

http://caniuse.com/#feat=background-img-opts

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}