android - Start Google's restore activity, but it shows always in dark theme -


i developing customized setup wizard in android 5.0+. after google login, call google's restore activity following codes, restore activity shows "dark" theme, not "light" other google page. did miss something?

intent intent = new intent(); intent.setaction("com.google.android.setupwizard.restore"); bundle options = new bundle();  options.putboolean("useimmersivemode", true); options.putboolean("setupwizard", true); options.putstring("theme", "material_light"); intent.putextras(options); startactivityforresult(intent, restore_code);  

you can use cyanogenmod's method of adding:

options.putstring("scripturi", "android.resource://com.google.android.setupwizard/xml/wizard_script"); 

it works, activity crashes when going next screen, there's way around it, haven't looked it.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -