But when you change the resolution, you send the broadcast:
Intent Intent_outputmode_change = new Intent (action_outputmode_change);
Intent_outputmode_change.putextra (Output_mode, outputmode_entries_logic);
Intent_outputmode_change.putextra ("Cvbs_mode", 1/0);
This.getcontext (). Sendbroadcast (Intent_outputmode_change);
Resolution display Outputmode_entries_display and value outputmode_entries_logic:
<!--Display settings. The type of output mode to show. -
<string-array name= "Outputmode_entries_display" >
<item>480P</item>
<item>576P</item>
<item>720p 60hz</item>
<item>1080i 60hz</item>
<item>1080p 60hz</item>
<item>720p 50hz</item>
<item>1080i 50hz</item>
</string-array>
<string-array name= "Outputmode_entries_logic" >
<item>480p</item>
<item>576p</item>
<item>720p</item>
<item>1080i</item>
<item>1080p</item>
<item>720p50hz</item>
<item>1080i50hz</item>
</string-array>
<receiver android:name= "Net.sunniwell.settings.sdzx.content.OutputSettingsBroadcastReceiver" >
<intent-filter>
<action android:name= "Android.intent.action.BOOT_COMPLETED"/>
<action android:name= "Android.intent.action.OUTPUTMODE_CHANGE"/>
<action android:name= "Android.intent.action.OUTPUTMODE_CANCEL"/>
<action android:name= "Android.intent.action.OUTPUTMODE_SAVE"/>
<action android:name= "Android.intent.action.OUTPUTPOSITION_CHANGE"/>
<action android:name= "Android.intent.action.OUTPUTPOSITION_CANCEL"/>
<action android:name= "Android.intent.action.OUTPUTPOSITION_SAVE"/>
<action android:name= "Android.intent.action.OUTPUTPOSITION_DEFAULT_SAVE"/>
<action android:name= "Android.intent.action.DISP_CHANGE"/>
<action android:name= "Android.intent.action.REALVIDEO_ON"/>
<action android:name= "Android.intent.action.REALVIDEO_OFF"/>
<action android:name= "Android.intent.action.VIDEOPOSITION_CHANGE"/>
<action android:name= "Android.intent.action.CVBSMODE_CHANGE"/>
</intent-filter>
</receiver>
If the setting is not handled, you need to do it yourself:
Settings source files:
Outputsettingsbroadcastreceiver.java Change the resolution.
Hdmicheckhandler.java automatically detects the best HDMI resolution.
Android HDMI HD resolution