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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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