Android app on Lollipop behaves differently from older versions -


i have developed , published app riddles. have problem lollipop devices, built , ran app on kitkat , jelly bean , works. when comes lollipop background drawable of main activity not set white. furthermore in settings activity customizedthumbs have no more color have set invisible , app crashes when starting slide activity , fragment backcard action.

all points list work great on pre-lollipop versions:

1) background main activity:

relativelayout.setbackgroundresource(arraybackground[backgroundchoice]); 

2) thumbs switch set based on sharedpreferences:

 switchrisolti.setthumbresource(r.color.blue); 

3) start slide activity

intent intent = new intent(impostazioni.this, screenslideactivity.class);             startactivity(intent);` 

4) fragment flipcard:

//load fragment fragmentmanager fragmentmanager = getfragmentmanager(); fragmenttransaction fragmenttransaction = fragmentmanager.begintransaction(); cardfrontfragment fragment = new cardfrontfragment(); fragmenttransaction.add(r.id.fragment_container, fragment); fragmenttransaction.commit(); 

check res holder, have values-v21 folder in specifies style.xml used lollipop , newer versions.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -