מדריך | הוספה של אריחים בלחיצה ארוכה על אפליקציית ההגדרות במקום WIFI וכו' אנדרואיד 13-M36
-
השימוש על אחריותכם בלבד!!
נוסה על ידי ועובד היטב
נוסה על M36 אנדרואיד 13
בעקבות המדריך הזה
https://mitmachim.top/topic/92672/מדריך-הסרת-הwifi-בלחיצה-ארוכה-על-סמל-ההגדרות-m36-android-13
נראה עכשיו איך אנחנו יכולים להוסיף אריחים במקום האריחים שהסרנו
נלך לנתיב ההגדרות (עדיף סייר MT)SYSETM_EXT\PRIV APP\MTKsettingsנפתח אותה בלחיצה על "הצג"
נלך לנתיבres/xml/נפתח את הקובץ
shortcuts.xmlבעצם בקוד ערוך כבר כמו מה שהעלתי במדריך להסרת אריח הWIFI נראה כזה קוד בערך
<?xml version="1.0" encoding="utf-8"?> <shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:icon="@7F0802F4" android:shortcutId="manifest-shortcut-battery" android:shortcutShortLabel="@7F120FD9"> <intent android:action="android.intent.action.POWER_USAGE_SUMMARY"/> </shortcut> </shortcuts>אנחנו עכשיו רוצים להוסיף אריח
אז נקח את מה שאנחנו רוצים להוסיף אני לוקח לשם הדגומא את "צלילים"
אז אני הולך לנתיב הראשי של האפליקצייה ונכנס לAndroidManifestMTKsettings\AndroidManifest.xmlאני מחפש "Sound"
ואני מקבל את הקוד הבא<activity android:label="@7F121362" android:icon="@7F0801B5" android:name="com.android.settings.Settings$SoundSettingsActivity"אני לוקח משם את 3 הדברים שאני צריך
1.שם-name
2.אייקון-icon
3.כותרת-label
כלומר כל הקטע שהבאתי בקוד למעלה
אחרי שיש לנו את הנתונים האלו אנחנו מכניסים אותם לתבנית הזאת<shortcut android:icon="לשים ID של האייקון" android:shortcutId="manifest-shortcut-custom-name" android:shortcutShortLabel="כותרת"> <intent android:action="android.intent.action.MAIN" android:targetPackage="com.android.settings" android:targetClass="ואת השם" /> </shortcut>שיראה ככה
<shortcut android:icon="@7F0801B5" android:shortcutId="manifest-shortcut-sound" android:shortcutShortLabel="@7F121362"> <intent android:action="android.intent.action.MAIN" android:targetPackage="com.android.settings" android:targetClass="com.android.settings.Settings$SoundSettingsActivity" /> </shortcut>הנה דוגמא לקוד מתוקן עם תוספת של בלוטוס
נשים את הקוד שלנו בshortcuts
נשמור ונפעיל מחדש
בהצלחה!תגובות כאן
-
י יוסי מחשבים העביר נושא זה מ-עזרה הדדית - אנדרואיד
-
פ פראירי התייחס לנושא זה