Is there a way to launch custom application in fullscreen mode on android? -


basically i'm developing sort of restricted launcher. able open example native android date time settings android application in fullscreen mode(so notification bar not visible).

if own activity - no problem - either xml or requestwindowfeature.

but how if i'm launching intent? :

startactivity(new intent(settings.action_date_settings)); 

any way pass in kind of flags?

one way of doing use activitygroup :

localactivitymanager mgr = getlocalactivitymanager(); intent = new intent(settings.action_date_settings); window w = mgr.startactivity("unique_per_activity_string", i); view wd = w != null ? w.getdecorview() : null; setcontentview(wd); 

this works fine, want mess android native settings, must have android.permission.write_secure_settings able save settings. , cannot acquire permission unless app runs system.

any ideas?


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -