Android custom keyboard writes wrong characters - Android Q&A, Help & Troubleshooting

Hi,
I've made a custom keyboard for my Samsung S8 (Android 8.0.0,). The keyboard xml file looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Keyboard n1:keyWidth="13.999998%p" n1:keyHeight="40.0dip" n1:horizontalGap="2.6000023%p" n1:verticalGap="10.0dip"
xmlns:n1="[ . . . ]">
<Row n1:keyHeight="0.100000024px" n1:rowEdgeFlags="top" />
<Row>
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="49" n1:keyEdgeFlags="left" n1:keyLabel="1" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="50" n1:keyLabel="2" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="51" n1:keyLabel="3" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="52" n1:keyLabel="4" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="53" n1:keyLabel="5" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="54" n1:keyLabel="6" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="55" n1:keyLabel="7" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="56" n1:keyLabel="8" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="57" n1:keyLabel="9" />
<Key n1:keyWidth="8.7%p" n1:horizontalGap="1.05%p" n1:codes="48" n1:keyLabel="0" />
</Row>
</Keyboard>
(I omitted the other rows, only the first one is included in the code).
When I tap on the keyboard numbers, instead of writing "1", "2", and so on, I get the ASCII circled numbers, such as "❶", "❷" and so on. How could that happen? The ASCII codes are correct (48, 49, and so on).
How can I fix this issue?

Related

GOlocker

Hi everybody, I have a problem with GOLocker...
I want implement it into my ROM then i copy com.jiubang.goscreenlock-1 in data/app but when i flash the ROM and I boot the phone I have the original lockscreen, why?
EDIT: Solved but now I have another problem, I want change the default settings infact the default setting is that the GoLocker isn't enable then I go to C:\ROMCooking\APKManager\projects\com.jiubang.goscreenlock-1.apk\res\xml and i found lock_setting.xml
Original
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="false" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="true" />
</PreferenceScreen>
Click to expand...
Click to collapse
Edited by me
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="true" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="false" />
</PreferenceScreen>
Click to expand...
Click to collapse
Infact if we see the app the first option is that if we want enable GOLocker than I edited the first line changing false to true and the other 2 options but it's not important...
When I install the app the settings aren't changed, it's possible?
Another question: where is Zombie Art By Jack Larson string?
It's in strings.xml?
Upupupupupupupupupupupupupupupupupupup

[Q] Modding Keyboard Help

I really like the stock keybord and was thinking when the smiley key was pressed it displayed emojis, and this it what it could look like (made in photoshop)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let me know what you think and if it is possible ​
It probably is possible, I would start by decompiling the keyboard app and trying to find out where the emojis are located
Sent from my Nexus 4 using xda premium
demkantor said:
It probably is possible, I would start by decompiling the keyboard app and trying to find out where the emojis are located
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
i have located the smiles and the hangout out emojis, just struggling to put it all together. like making the emoji list scrolable and making the emojis appear when pressed
There should be an xml file in there describing what to do on each key press, did you find this yet or just the icons?
Sent from my Nexus 4 using xda premium
demkantor said:
There should be an xml file in there describing what to do on each key press, did you find this yet or just the icons?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
cant seem to find it anywhere :? but i have found the icons
Maybe upload the apk here then I or someone else could dig a bit for you
Sent from my Nexus 4 using xda premium
demkantor said:
Maybe upload the apk here then I or someone else could dig a bit for you
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
here are the files : https://drive.google.com/folderview?id=0B2nAQ8zrl1mtUFc0QTNwV1BGWFE&usp=sharing
but..
i just found this:
<public type="drawable" name="emo_im_angel" id="0x7f02000c" />
<public type="drawable" name="emo_im_cool" id="0x7f02000d" />
<public type="drawable" name="emo_im_crying" id="0x7f02000e" />
<public type="drawable" name="emo_im_embarrassed" id="0x7f02000f" />
<public type="drawable" name="emo_im_foot_in_mouth" id="0x7f020010" />
<public type="drawable" name="emo_im_happy" id="0x7f020011" />
<public type="drawable" name="emo_im_heart" id="0x7f020012" />
<public type="drawable" name="emo_im_kissing" id="0x7f020013" />
<public type="drawable" name="emo_im_laughing" id="0x7f020014" />
<public type="drawable" name="emo_im_lips_are_sealed" id="0x7f020015" />
<public type="drawable" name="emo_im_mad" id="0x7f020016" />
<public type="drawable" name="emo_im_money_mouth" id="0x7f020017" />
<public type="drawable" name="emo_im_pokerface" id="0x7f020018" />
<public type="drawable" name="emo_im_sad" id="0x7f020019" />
<public type="drawable" name="emo_im_smirk" id="0x7f02001a" />
<public type="drawable" name="emo_im_surprised" id="0x7f02001b" />
<public type="drawable" name="emo_im_tongue_sticking_out" id="0x7f02001c" />
<public type="drawable" name="emo_im_undecided" id="0x7f02001d" />
<public type="drawable" name="emo_im_winking" id="0x7f02001e" />
<public type="drawable" name="emo_im_wtf" id="0x7f02001f" />
<public type="drawable" name="emo_im_yelling" id="0x7f020020" />
<public type="drawable" name="emoji_e001" id="0x7f020021" />
<public type="drawable" name="emoji_e002" id="0x7f020022" />
<public type="drawable" name="emoji_e003" id="0x7f020023" />
<public type="drawable" name="emoji_e004" id="0x7f020024" />
<public type="drawable" name="emoji_e005" id="0x7f020025" />
<public type="drawable" name="emoji_e006" id="0x7f020026" />
<public type="drawable" name="emoji_e007" id="0x7f020027" />
<public type="drawable" name="emoji_e008" id="0x7f020028" />
<public type="drawable" name="emoji_e009" id="0x7f020029" />
<public type="drawable" name="emoji_e00a" id="0x7f02002a" />
<public type="drawable" name="emoji_e00b" id="0x7f02002b" />
<public type="drawable" name="emoji_e00c" id="0x7f02002c" />
<public type="drawable" name="emoji_e00d" id="0x7f02002d" />
<public type="drawable" name="emoji_e00e" id="0x7f02002e" />
<public type="drawable" name="emoji_e00f" id="0x7f02002f" />
<public type="drawable" name="emoji_e010" id="0x7f020030" />
<public type="drawable" name="emoji_e011" id="0x7f020031" />
<public type="drawable" name="emoji_e012" id="0x7f020032" />
<public type="drawable" name="emoji_e013" id="0x7f020033" />
<public type="drawable" name="emoji_e014" id="0x7f020034" />
<public type="drawable" name="emoji_e015" id="0x7f020035" />
<public type="drawable" name="emoji_e016" id="0x7f020036" />
<public type="drawable" name="emoji_e017" id="0x7f020037" />
<public type="drawable" name="emoji_e018" id="0x7f020038" />
<public type="drawable" name="emoji_e019" id="0x7f020039" />
<public type="drawable" name="emoji_e01a" id="0x7f02003a" />
<public type="drawable" name="emoji_e01b" id="0x7f02003b" />
<public type="drawable" name="emoji_e01c" id="0x7f02003c" />
<public type="drawable" name="emoji_e01d" id="0x7f02003d" />
<public type="drawable" name="emoji_e01e" id="0x7f02003e" />
<public type="drawable" name="emoji_e01f" id="0x7f02003f" />
<public type="drawable" name="emoji_e020" id="0x7f020040" />
<public type="drawable" name="emoji_e021" id="0x7f020041" />
<public type="drawable" name="emoji_e022" id="0x7f020042" />
<public type="drawable" name="emoji_e023" id="0x7f020043" />
<public type="drawable" name="emoji_e024" id="0x7f020044" />
<public type="drawable" name="emoji_e025" id="0x7f020045" />
<public type="drawable" name="emoji_e026" id="0x7f020046" />
<public type="drawable" name="emoji_e027" id="0x7f020047" />
<public type="drawable" name="emoji_e028" id="0x7f020048" />
<public type="drawable" name="emoji_e029" id="0x7f020049" />
<public type="drawable" name="emoji_e02a" id="0x7f02004a" />
<public type="drawable" name="emoji_e02b" id="0x7f02004b" />
<public type="drawable" name="emoji_e02c" id="0x7f02004c" />
<public type="drawable" name="emoji_e02d" id="0x7f02004d" />
<public type="drawable" name="emoji_e02e" id="0x7f02004e" />
<public type="drawable" name="emoji_e02f" id="0x7f02004f" />
<public type="drawable" name="emoji_e030" id="0x7f020050" />
<public type="drawable" name="emoji_e031" id="0x7f020051" />
<public type="drawable" name="emoji_e032" id="0x7f020052" />
<public type="drawable" name="emoji_e033" id="0x7f020053" />
<public type="drawable" name="emoji_e034" id="0x7f020054" />
<public type="drawable" name="emoji_e035" id="0x7f020055" />
<public type="drawable" name="emoji_e036" id="0x7f020056" />
<public type="drawable" name="emoji_e037" id="0x7f020057" />
<public type="drawable" name="emoji_e038" id="0x7f020058" />
<public type="drawable" name="emoji_e039" id="0x7f020059" />
<public type="drawable" name="emoji_e03a" id="0x7f02005a" />
<public type="drawable" name="emoji_e03b" id="0x7f02005b" />
<public type="drawable" name="emoji_e03c" id="0x7f02005c" />
<public type="drawable" name="emoji_e03d" id="0x7f02005d" />
<public type="drawable" name="emoji_e03e" id="0x7f02005e" />
<public type="drawable" name="emoji_e03f" id="0x7f02005f" />
<public type="drawable" name="emoji_e040" id="0x7f020060" />
<public type="drawable" name="emoji_e041" id="0x7f020061" />
<public type="drawable" name="emoji_e042" id="0x7f020062" />
<public type="drawable" name="emoji_e043" id="0x7f020063" />
<public type="drawable" name="emoji_e044" id="0x7f020064" />
<public type="drawable" name="emoji_e045" id="0x7f020065" />
<public type="drawable" name="emoji_e046" id="0x7f020066" />
<public type="drawable" name="emoji_e047" id="0x7f020067" />
<public type="drawable" name="emoji_e048" id="0x7f020068" />
<public type="drawable" name="emoji_e049" id="0x7f020069" />
<public type="drawable" name="emoji_e04a" id="0x7f02006a" />
<public type="drawable" name="emoji_e04b" id="0x7f02006b" />
<public type="drawable" name="emoji_e04c" id="0x7f02006c" />
<public type="drawable" name="emoji_e04d" id="0x7f02006d" />
<public type="drawable" name="emoji_e04e" id="0x7f02006e" />
<public type="drawable" name="emoji_e04f" id="0x7f02006f" />
<public type="drawable" name="emoji_e050" id="0x7f020070" />
<public type="drawable" name="emoji_e051" id="0x7f020071" />
<public type="drawable" name="emoji_e052" id="0x7f020072" />
<public type="drawable" name="emoji_e053" id="0x7f020073" />
<public type="drawable" name="emoji_e054" id="0x7f020074" />
<public type="drawable" name="emoji_e055" id="0x7f020075" />
<public type="drawable" name="emoji_e056" id="0x7f020076" />
<public type="drawable" name="emoji_e057" id="0x7f020077" />
<public type="drawable" name="emoji_e058" id="0x7f020078" />
<public type="drawable" name="emoji_e059" id="0x7f020079" />
<public type="drawable" name="emoji_e05a" id="0x7f02007a" />
<public type="drawable" name="emoji_e101" id="0x7f02007b" />
<public type="drawable" name="emoji_e102" id="0x7f02007c" />
<public type="drawable" name="emoji_e103" id="0x7f02007d" />
<public type="drawable" name="emoji_e104" id="0x7f02007e" />
<public type="drawable" name="emoji_e105" id="0x7f02007f" />
<public type="drawable" name="emoji_e106" id="0x7f020080" />
<public type="drawable" name="emoji_e107" id="0x7f020081" />
<public type="drawable" name="emoji_e108" id="0x7f020082" />
<public type="drawable" name="emoji_e109" id="0x7f020083" />
<public type="drawable" name="emoji_e10a" id="0x7f020084" />
<public type="drawable" name="emoji_e10b" id="0x7f020085" />
<public type="drawable" name="emoji_e10c" id="0x7f020086" />
<public type="drawable" name="emoji_e10d" id="0x7f020087" />
<public type="drawable" name="emoji_e10e" id="0x7f020088" />
<public type="drawable" name="emoji_e10f" id="0x7f020089" />
<public type="drawable" name="emoji_e110" id="0x7f02008a" />
<public type="drawable" name="emoji_e111" id="0x7f02008b" />
<public type="drawable" name="emoji_e112" id="0x7f02008c" />
<public type="drawable" name="emoji_e113" id="0x7f02008d" />
<public type="drawable" name="emoji_e114" id="0x7f02008e" />
<public type="drawable" name="emoji_e115" id="0x7f02008f" />
<public type="drawable" name="emoji_e116" id="0x7f020090" />
<public type="drawable" name="emoji_e117" id="0x7f020091" />
<public type="drawable" name="emoji_e118" id="0x7f020092" />
<public type="drawable" name="emoji_e119" id="0x7f020093" />
<public type="drawable" name="emoji_e11a" id="0x7f020094" />
<public type="drawable" name="emoji_e11b" id="0x7f020095" />
<public type="drawable" name="emoji_e11c" id="0x7f020096" />
<public type="drawable" name="emoji_e11d" id="0x7f020097" />
<public type="drawable" name="emoji_e11e" id="0x7f020098" />
<public type="drawable" name="emoji_e11f" id="0x7f020099" />
But how do i put that into this :
<?xml version="1.0" encoding="utf-8"?>
<Keyboard
xmlns:semc="http://schemas.android.com/apk/res/com.sonyericsson.textinput.uxp">
<Row semc:layoutId="@string/row_5keys">
<Key semc:iconId="@drawable/text_input_smiley_wtf">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_foot_in_mouth">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_secret">
<Candidate semc:candidate=":-#" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_drunk">
<Candidate semc:candidate=":*)" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_mohawk">
<Candidate semc:candidate="-" />
</Key>
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:iconId="@drawable/text_input_smiley_yelling">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_indifferent">
<Candidate semc:candidate=":|" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_nerd">
<Candidate semc:candidate=":-B" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_love">
<Candidate semc:candidate="<3" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_rose">
<Candidate semc:candidate="\@-}--" />
</Key>
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:iconId="@drawable/text_input_smiley_crying_face">
<Candidate semc:candidate=":'(" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_kiss">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_devious">
<Candidate semc:candidate=">" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_innocent">
<Candidate semc:candidate="0" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_skeptical">
<Candidate semc:candidate=":-/" />
</Key>
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:iconId="@drawable/text_input_smiley_tongue_out">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_angry">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_squiggle_mouth">
<Candidate semc:candidate=":-S" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_embarassed">
<Candidate semc:candidate=":$" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_sunglasses">
<Candidate semc:candidate="" />
</Key>
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:iconId="@drawable/text_input_smiley_happy">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_wink">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_sad">
<Candidate semc:candidate="" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_surprise">
<Candidate semc:candidate=":-o" />
</Key>
<Key semc:iconId="@drawable/text_input_smiley_very_happy">
<Candidate semc:candidate="" />
</Key>
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="।" />
<Key semc:candidates="," />
<Key semc:candidates="-" />
<Key semc:candidates="\?" />
<Key semc:candidates="!" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="\@" />
<Key semc:candidates="_" />
<Key semc:candidates="/" />
<Key semc:candidates="(" />
<Key semc:candidates=")" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="." />
<Key semc:candidates="&" />
<Key semc:candidates=":" />
<Key semc:candidates=";" />
<Key semc:candidates=""" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="+" />
<Key semc:candidates="%" />
<Key semc:candidates="=" />
<Key semc:candidates="\#" />
<Key semc:candidates="*" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="₹" />
<Key semc:candidates="£" />
<Key semc:candidates="$" />
<Key semc:candidates="¥" />
<Key semc:candidates="€" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="'" />
<Key semc:candidates="`" />
<Key semc:candidates="§" />
<Key semc:candidates="<" />
<Key semc:candidates=">" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="^" />
<Key semc:candidates="[" />
<Key semc:candidates="]" />
<Key semc:candidates="{" />
<Key semc:candidates="}" />
</Row>
<Row semc:layoutId="@string/row_5keys">
<Key semc:candidates="\\" />
<Key semc:candidates="~" />
<Key semc:candidates="¿" />
<Key semc:candidates="¡" />
<Key semc:candidates="¤" />
</Row>
<Row semc:layoutId="@string/row_1keys">
<Key semc:candidates="|" />
</Row>
</Keyboard>
Anyone think they can help me ??
if you can add my skype- MRL3GS
Can't say for sure as I have never done this specifically.
There should be another file that directs each key press to each symbol, this file should be edited to direct it to the new .png you made and then from within that list new key press have to be entered again.
At this point I would suggest trying a few things out and seeing what works (maybe start with some easier things like swapping some random letters
Sent from my Nexus 4 using xda premium

MIUI v5 ::::::4.2.2 :::::BUG ::::::echo :::::::::

When any one call me he heard his sound again like echo
can any one tell me what can i do or any fix ​
http://bbs.xda.cn/thread-12184557-1-1.html
which file can i edit to enable Noise Suppression
i found settings.apk
so i make an modification
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/volume_category_title" />
<Preference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume">
<intent android:targetPackage="com.android.settings" android:targetClass="com.android.settings.sound.RingerVolumeActivity" />
</Preference>
<CheckBoxPreference android:persistent="false" android:title="@string/silent_mode_title" android:key="miui_silent_or_vibrate" />
<PreferenceCategory android:title="@string/vibrate_category_title" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_in_silent_title" android:key="miui_vibrate_in_silent_key" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_when_ringing_title" android:key="miui_vibrate_in_normal_key" />
<Preference android:title="@string/musicfx_title" android:key="musicfx">
<intent android:targetPackage="com.android.musicfx" android:targetClass="com.android.musicfx.ControlPanelPicker" />
</Preference>
<PreferenceCategory android:title="@string/sound_category_call_ringtone_vibrate_title" android:key="category_calls_and_notification" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/ringtone_title" android:key="ringtone" android:dialogTitle="@string/ringtone_title" android:ringtoneType="ringtone" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/notification_sound_title" android:key="notification_sound" android:dialogTitle="@string/notification_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_received_sound_title" android:key="sms_received_sound" android:dialogTitle="@string/sms_received_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_delivered_sound_title" android:key="sms_delivered_sound" android:dialogTitle="@string/sms_delivered_sound_dialog_title" android:ringtoneType="notification" />
<PreferenceCategory android:title="@string/sound_category_system_title" />
<CheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/haptic_feedback_enable_title" android:key="haptic_feedback" android:defaultValue="true" />
<ListPreference android:entries="@array/haptic_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="haptic_feedback_level" android:dependency="haptic_feedback" android:entryValues="@array/haptic_feedback_level_values" />
<CheckBoxPreference android:persistent="false" android:title="@string/media_feedback_enable_title" android:key="media_feedback" />
<ListPreference android:persistent="false" android:entries="@array/media_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="media_feedback_level" android:dependency="media_feedback" android:entryValues="@array/media_feedback_level_values" />
<ListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:entryValues="@array/emergency_tone_values" />
<Preference android:title="@string/title_dolby_control" android:key="dolby_control" android:summary="@string/dolby_mode_off" android:fragment="com.android.settings.dolby.DolbySettings" />
<Preference android:title="@string/dirac_control" android:key="dirac_control" android:summary="@string/dirac_mode_off">
<intent android:targetPackage="com.miui.player" android:action="com.miui.player.DIRAC_SETTINGS" android:targetClass="com.miui.player.effect.dirac.DiracSettings" />
</Preference>
<PreferenceCategory android:title="@string/dock_settings" android:key="dock_category" />
<PreferenceScreen android:title="@string/dock_audio_settings_title" android:key="dock_audio">
<CheckBoxPreference android:enabled="true" android:title="@string/bluetooth_dock_settings_a2dp" android:key="dock_audio_media_enabled" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/dock_sounds_enable_title" android:key="dock_sounds" android:defaultValue="false" />
<PreferenceCategory android:title="@string/noise_suppression" android:key="noise_suppression" android:defaultValue="true"/>
<ListPreference android:persistent="true" android:entries="@array/phone_call_noise_suppression_title" android:title="@string/phone_call_noise_suppression" android:key="phone_call_noise_suppression" android:entryValues="@array/phone_call_noise_suppression_values" />
</PreferenceScreen>
the original is
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/volume_category_title" />
<Preference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume">
<intent android:targetPackage="com.android.settings" android:targetClass="com.android.settings.sound.RingerVolumeActivity" />
</Preference>
<CheckBoxPreference android:persistent="false" android:title="@string/silent_mode_title" android:key="miui_silent_or_vibrate" />
<PreferenceCategory android:title="@string/vibrate_category_title" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_in_silent_title" android:key="miui_vibrate_in_silent_key" />
<CheckBoxPreference android:persistent="false" android:title="@string/vibrate_when_ringing_title" android:key="miui_vibrate_in_normal_key" />
<Preference android:title="@string/musicfx_title" android:key="musicfx">
<intent android:targetPackage="com.android.musicfx" android:targetClass="com.android.musicfx.ControlPanelPicker" />
</Preference>
<PreferenceCategory android:title="@string/sound_category_call_ringtone_vibrate_title" android:key="category_calls_and_notification" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/ringtone_title" android:key="ringtone" android:dialogTitle="@string/ringtone_title" android:ringtoneType="ringtone" />
<com.android.settings.DefaultRingtonePreference android:persistent="false" android:title="@string/notification_sound_title" android:key="notification_sound" android:dialogTitle="@string/notification_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_received_sound_title" android:key="sms_received_sound" android:dialogTitle="@string/sms_received_sound_dialog_title" android:ringtoneType="notification" />
<com.android.settings.SmsRingtonePreference android:title="@string/sms_delivered_sound_title" android:key="sms_delivered_sound" android:dialogTitle="@string/sms_delivered_sound_dialog_title" android:ringtoneType="notification" />
<PreferenceCategory android:title="@string/sound_category_system_title" />
<CheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/haptic_feedback_enable_title" android:key="haptic_feedback" android:defaultValue="true" />
<ListPreference android:entries="@array/haptic_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="haptic_feedback_level" android:dependency="haptic_feedback" android:entryValues="@array/haptic_feedback_level_values" />
<CheckBoxPreference android:persistent="false" android:title="@string/media_feedback_enable_title" android:key="media_feedback" />
<ListPreference android:persistent="false" android:entries="@array/media_feedback_level_entries" android:title="@string/haptic_feedback_level" android:key="media_feedback_level" android:dependency="media_feedback" android:entryValues="@array/media_feedback_level_values" />
<ListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:entryValues="@array/emergency_tone_values" />
<Preference android:title="@string/title_dolby_control" android:key="dolby_control" android:summary="@string/dolby_mode_off" android:fragment="com.android.settings.dolby.DolbySettings" />
<Preference android:title="@string/dirac_control" android:key="dirac_control" android:summary="@string/dirac_mode_off">
<intent android:targetPackage="com.miui.player" android:action="com.miui.player.DIRAC_SETTINGS" android:targetClass="com.miui.player.effect.dirac.DiracSettings" />
</Preference>
<PreferenceCategory android:title="@string/dock_settings" android:key="dock_category" />
<PreferenceScreen android:title="@string/dock_audio_settings_title" android:key="dock_audio">
<CheckBoxPreference android:enabled="true" android:title="@string/bluetooth_dock_settings_a2dp" android:key="dock_audio_media_enabled" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/dock_sounds_enable_title" android:key="dock_sounds" android:defaultValue="false" />
<PreferenceCategory android:title="@string/noise_suppression" [B]android:key="noise_suppression"[/B] />
<ListPreference android:persistent="[B]false[/B]" android:entries="@array/phone_call_noise_suppression_title" android:title="@string/phone_call_noise_suppression" android:key="phone_call_noise_suppression" android:entryValues="@array/phone_call_noise_suppression_values" />
</PreferenceScreen>

angular cordova application html5 video tag does not play on android

I have an angular cordova application which has got the html video tag that plays on IOS but not on Android. Play button does not show on android.
html tag is as below:
<video width="320" height="240" controls="controls">
<source src="samplevideolink" type="video/mp4" />
</video>
config.xml of Cordova is as below:
<content src="index.cordova.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*...." />
<allow-intent href="...." />
<allow-intent href="..." />
<platform name="android">
<allow-intent href="market:*" />
<icon src="assets/android/ldpi.png" density="ldpi" />
<icon src="assets/android/mdpi.png" density="mdpi" />
<icon src="assets/android/hdpi.png" density="hdpi" />
<icon src="assets/android/xhdpi.png" density="xhdpi" />
<icon src="assets/android/xxhdpi.png" density="xxhdpi" />
<icon src="assets/android/xxxhdpi.png" density="xxxhdpi" />
</platform>
<platform name="ios">
....
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="23" />
<preference name="BackupWebStorage" value="none" />
Not sure if there is a problem withany configuration specific to Android in Cordova. Is there any plugin specific to Android Cordova need to be installed
Really appreciate your help.

Help Modify settings.apk MIUI 8 6.9.29

help, I want to disable or hide the button light switch option. is it possible to do that in modifying settings.apk on miui 8. Thanks
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/key_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/screen_key_press" android:key="screen_key_press">
<ListPreference android:entries="@arRay/screen_key_press_action" android:title="@string/app_switch_key" android:key="menu_press" android:dialogTitle="@string/screen_key_press_action" android:entryValues="@arRay/screen_key_press_action_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/screen_key_long_press" android:key="screen_key_long_press">
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/app_switch_key" android:key="menu_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/home_key" android:key="home_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/back_key" android:key="back_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_timeout" android:title="@string/screen_key_long_press_timeout" android:key="screen_key_long_press_timeout" android:dialogTitle="@string/screen_key_long_press_timeout" android:entryValues="@arRay/screen_key_long_press_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/under_keyguard" android:key="under_keyguard">
<CheckBoxPreference android:title="@string/disable_power_key_long_press_under_keyguard" android:key="disable_power_long_press" />
<CheckBoxPreference android:title="@string/pref_volume_wake_title" android:key="pref_volume_wake" android:summary="@string/pref_volume_wake_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/convenience_key_category_title" android:key="convenience_key">
<CheckBoxPreference android:title="@string/fp_nav_center_back_to_home_title" android:key="pref_fingerprint_nav_center_to_home" />
</PreferenceCategory>
<CheckBoxPreference android:title="@string/pref_button_light" android:key="pref_button_light" android:summary="@string/pref_button_light_summary" />
<ListPreference androidersistent="false" android:entries="@arRay/button_light_timeout_entries" android:title="@string/button_light_timeout" android:key="button_light_timeout" android:dependency="pref_button_light" android:dialogTitle="@string/button_light_timeout" android:entryValues="@arRay/button_light_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/status_bar_screen_button_key" android:key="screen_button_category">
<Preference android:title="@string/status_bar_key_position_custom" android:key="screen_button_custom" android:fragment="com.android.settings.screenkey.ScreenKeySettings" />
</PreferenceCategory>
</PreferenceScreen>
I already decompiled the settings.apk and found the xml file key_settings.xml. im wondering which string on the xml file i will delete or modify to disable the menu for button light switch option.

Categories

Resources