FORUMS
Remove All Ads from XDA

[MOD][GUIDE] Statusbar Weather Text

104 posts
Thanks Meter: 218
 
Post Reply Email Thread
Hi all.. this is my third guide about modifying AsusSystemUI..
This guide is based on the Asus Zenfone 4S (T00Q) Lollipop firmware.

Feature:
  • Weather Text Style (Hidden, w/Scale, wo/Scale)
  • Weather Text Placement (left/right)
  • Weather Text color with Custom color/Rainbow/Animated Rainbow
  • Weather Text size
  • Weather Text font style
  • Weather icon coloring
  • Weather icon Placement
  • Condition icon style (Monochrome/Colored/VCloud)

Requirement:
  • Understanding about APK compile/decompile
  • APKTool
  • Notepad++ (PC)

How:
Part AsusSystemUI:
1. Decompile AsusSystemUI.apk
2. Put smali from guide to smali folder.. Overwrite if already exist..
3. Open res/layout/statusbar.xml, and find
Code:
    <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
Add above:
Code:
	<com.bamzzz.WeatherTextLeft android:id="@id/weather_text_left" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="3.0dip" android:singleLine="true" />
Find:
Code:
    <include layout="@layout/system_icons" />
Add below:
Code:
	<com.bamzzz.WeatherText android:id="@id/weather_text" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" android:singleLine="true" />
4. Open res/values/ids.xml
Scroll to end of line, add above </resources> :
Code:
    <item type="id" name="weather_text">false</item>
    <item type="id" name="weather_text_left">false</item>
5. Done. Just Recompile UI , dont forget to Sign and zipalign.
6. SystemUI already push into system

Part ZenControl:
1. Decompile ZenControl
2. Open /res/xml/ui_prefs.xml and add this:
Code:
	<PreferenceScreen android:title="@string/status_bar_weather_title"
		android:summary="@string/status_bar_weather_summary">
		<PreferenceCategory android:title="@string/status_bar_weather_title" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_temperature"
			android:title="@string/status_bar_weather_title"
			android:dialogTitle="@string/status_bar_weather_title"
			android:entries="@array/status_bar_weather_entries"
			android:entryValues="@array/status_bar_weather_values" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_temperature_style"
			android:title="@string/status_bar_weather_location_title"
			android:dialogTitle="@string/status_bar_weather_location_title"
			android:entries="@array/status_bar_weather_location_entries"
			android:entryValues="@array/status_bar_weather_location_values" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_weather_rainbow_color"
			android:title="@string/status_bar_weather_color_title"
			android:entries="@array/status_bar_weather_rainbow_color_entries"
			android:entryValues="@array/status_bar_weather_rainbow_color_values" />
		<com.wubydax.romcontrol.prefs.ColorPickerPreference
			android:title="@string/status_bar_weather_custom_color"
			android:key="status_bar_weather_color"
			android:defaultValue="\#ffffffff"
			alphaSlider="true" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_weather_icon"
			android:title="@string/status_bar_weather_icon_title"
			android:entries="@array/status_bar_weather_icon_entries"
			android:entryValues="@array/status_bar_weather_icon_values" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_weather_condition_icon"
			android:title="@string/status_bar_weather_condition_icon_title"
			android:dialogTitle="@string/status_bar_weather_condition_icon_dlg_title"
			android:entries="@array/status_bar_weather_condition_icon_entries"
			android:entryValues="@array/status_bar_weather_condition_icon_values" />
		<SwitchPreference
			android:defaultValue="false"
			android:key="status_bar_weather_colorize_all_icons"
			android:title="@string/status_bar_weather_colorize_all_icons_title"
			android:summary="@string/status_bar_weather_colorize_all_icons_summary" />
		<com.wubydax.romcontrol.prefs.ColorPickerPreference
			android:title="@string/status_bar_weather_icon_color_title"
			android:key="status_bar_weather_icon_color"
			android:defaultValue="\#ffffffff"
			alphaSlider="true" />
		<com.wubydax.romcontrol.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_weather_font_style"
			android:entries="@array/status_bar_weather_font_style_entries"
			android:entryValues="@array/status_bar_weather_font_style_values"
			android:title="@string/status_bar_weather_font_style_title" />
		<com.wubydax.romcontrol.prefs.SeekBarPreference
			android:icon="@null"
			android:key="status_bar_weather_size"
			android:title="@string/status_bar_weather_size_title"
			android:max="23"
			min="4"
			android:defaultValue="14"
			unitsRight="dp" />
		<PreferenceScreen
			android:summary="@string/status_bar_open_weather_settings_summary"
			android:title="@string/status_bar_open_weather_settings_title">
			<intent
				android:targetClass="com.cyanogenmod.lockclock.preference.Preferences"
				android:targetPackage="com.cyanogenmod.lockclock" />
		</PreferenceScreen>
	</PreferenceScreen>
3. Add this to res/values/strings.xml
Code:
    <string name="status_bar_weather_title">Weather Text</string>
    <string name="status_bar_weather_summary">Enable various weather text options in statusbar</string>
    <string name="status_bar_weather_hidden">Hidden</string>
    <string name="status_bar_weather_show_scale">Shown with scale</string>
    <string name="status_bar_weather_hide_scale">Shown without scale</string>
    <string name="status_bar_weather_location_title">Placement</string>
    <string name="status_bar_weather_location_summary">Select where the weather temperature is shown on the statusbar</string>
    <string name="status_bar_weather_location_right">Show on right</string>
    <string name="status_bar_weather_location_left">Show on left</string>
    <string name="status_bar_weather_color_title">Temperature color</string>
    <string name="status_bar_weather_size_title">Font size</string>
    <string name="status_bar_weather_font_style_title">Font style</string>
    <string name="status_bar_weather_icon_title">Weather Icon</string>
    <string name="status_bar_weather_icon_color_title">Weather Icon Color</string>
    <string name="status_bar_weather_condition_icon_title">Condition icon</string>
    <string name="status_bar_weather_condition_icon_dlg_title">Coose an icon for displaying the weather condition</string>
    <string name="status_bar_weather_condition_icon_monochrome_title">Monochrome</string>
    <string name="status_bar_weather_condition_icon_colored_title">Colored</string>
    <string name="status_bar_weather_condition_icon_vclouds_title">VClouds</string>
    <string name="status_bar_weather_colorize_all_icons_title">Colorize all icons</string>
    <string name="status_bar_weather_colorize_all_icons_summary">Enable to colorize all icons, disable to colorize only the monochrome icons</string>
    <string name="status_bar_weather_custom_color">Custom Color</string>
    <string name="status_bar_weather_rainbow_color">Rainbow</string>
    <string name="status_bar_weather_anim_rainbow_color">Animated Rainbow</string>
    <string name="status_bar_open_weather_settings_title">Weather settings</string>
    <string name="status_bar_open_weather_settings_summary">Open cyanogen widget preference</string>
    <string name="status_bar_weather_font_normal">Normal</string>
    <string name="status_bar_weather_font_italic">Italic</string>
    <string name="status_bar_weather_font_bold">Bold</string>
    <string name="status_bar_weather_font_bold_italic">Bold Italic</string>
    <string name="status_bar_weather_font_light">Light</string>
    <string name="status_bar_weather_font_light_italic">Light Italic</string>
    <string name="status_bar_weather_font_thin">Thin</string>
    <string name="status_bar_weather_font_thin_italic">Thin Italic</string>
    <string name="status_bar_weather_font_condensed">Condensed</string>
    <string name="status_bar_weather_font_condensed_italic">Condensed Italic</string>
    <string name="status_bar_weather_font_condensed_light">Condensed Light</string>
    <string name="status_bar_weather_font_condensed_light_italic">Condensed Light Italic</string>
    <string name="status_bar_weather_font_condensed_bold">Condensed Bold</string>
    <string name="status_bar_weather_font_condensed_bold_italic">Condensed Bold Italic</string>
    <string name="status_bar_weather_font_medium">Medium</string>
    <string name="status_bar_weather_font_medium_italic">Medium Italic</string>
    <string name="status_bar_weather_font_black">Black</string>
    <string name="status_bar_weather_font_black_italic">Black Italic</string>
4. Open res/values/arrays.xml and add this:
Code:
    <string-array name="status_bar_weather_entries" translatable="false">
        <item>@string/status_bar_weather_hidden</item>
        <item>@string/status_bar_weather_show_scale</item>
        <item>@string/status_bar_weather_hide_scale</item>
    </string-array>
    <string-array name="status_bar_weather_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_location_entries" translatable="false">
        <item>@string/status_bar_weather_location_right</item>
        <item>@string/status_bar_weather_location_left</item>
    </string-array>
    <string-array name="status_bar_weather_location_values" translatable="false">
        <item>0</item>
        <item>1</item>
    </string-array>
    <string-array name="status_bar_weather_condition_icon_entries">
        <item>@string/status_bar_weather_condition_icon_monochrome_title</item>
        <item>@string/status_bar_weather_condition_icon_colored_title</item>
        <item>@string/status_bar_weather_condition_icon_vclouds_title</item>
    </string-array>
    <string-array name="status_bar_weather_condition_icon_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_font_style_entries">
        <item>@string/status_bar_weather_font_normal</item>
        <item>@string/status_bar_weather_font_italic</item>
        <item>@string/status_bar_weather_font_bold</item>
        <item>@string/status_bar_weather_font_bold_italic</item>
        <item>@string/status_bar_weather_font_light</item>
        <item>@string/status_bar_weather_font_light_italic</item>
        <item>@string/status_bar_weather_font_thin</item>
        <item>@string/status_bar_weather_font_thin_italic</item>
        <item>@string/status_bar_weather_font_condensed</item>
        <item>@string/status_bar_weather_font_condensed_italic</item>
        <item>@string/status_bar_weather_font_condensed_light</item>
        <item>@string/status_bar_weather_font_condensed_light_italic</item>
        <item>@string/status_bar_weather_font_condensed_bold</item>
        <item>@string/status_bar_weather_font_condensed_bold_italic</item>
        <item>@string/status_bar_weather_font_medium</item>
        <item>@string/status_bar_weather_font_medium_italic</item>
        <item>@string/status_bar_weather_font_black</item>
        <item>@string/status_bar_weather_font_black_italic</item>
    </string-array>
    <string-array name="status_bar_weather_font_style_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
        <item>6</item>
        <item>7</item>
        <item>8</item>
        <item>9</item>
        <item>10</item>
        <item>11</item>
        <item>12</item>
        <item>13</item>
        <item>14</item>
        <item>15</item>
        <item>16</item>
        <item>17</item>
    </string-array>
    <string-array name="status_bar_weather_rainbow_color_entries" translatable="false">
        <item>@string/status_bar_weather_custom_color</item>
        <item>@string/status_bar_weather_rainbow_color</item>
        <item>@string/status_bar_weather_anim_rainbow_color</item>
    </string-array>
    <string-array name="status_bar_weather_rainbow_color_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_icon_entries" translatable="false">
        <item>@string/status_bar_weather_hidden</item>
        <item>@string/right</item>
        <item>@string/left</item>
    </string-array>
    <string-array name="status_bar_weather_icon_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
5. Recompile ZenControl..
6. Install ZenControl as normal APK
7. Copy LockClock.apk to /system/priv-app/LockClock

Good luck.. Keep Oprek.. Salam Bootloop..

Task: Rainbow text color masih ngawur.

Created by [email protected]
fb.me/bamz4ever
http://forum.xda-developers.com/member.php?u=4672359

ZenControl by [email protected] & [email protected]
http://forum.xda-developers.com/andr...-devs-t3146567

CyanogenMod Developers Team
Attached Files
File Type: zip Guide Statusbar Weather Text.zip - [Click for QR Code] (27.4 KB, 1480 views)
File Type: apk ZenControl.apk - [Click for QR Code] (3.25 MB, 958 views)
File Type: apk LockClock.apk - [Click for QR Code] (8.42 MB, 978 views)
The Following 7 Users Say Thank You to bamzzz For This Useful Post: [ View ] Gift bamzzz Ad-Free
18th February 2016, 12:42 AM |#3  
bamzzz's Avatar
OP Senior Member
Flag Bandar Lampung
Thanks Meter: 218
 
Donate to Me
More
Include preference into Settings
How to include preference into settings:

1. Follow my guide: http://forum.xda-developers.com/zenf...ntrol-t3317849
2. Open res/xml/zen_prefs.xml, and add:
Code:
	<PreferenceScreen android:title="@string/status_bar_weather_title"
		android:summary="@string/status_bar_weather_summary">
		<PreferenceCategory android:title="@string/status_bar_weather_title" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_temperature"
			android:title="@string/status_bar_weather_title"
			android:dialogTitle="@string/status_bar_weather_title"
			android:entries="@array/status_bar_weather_entries"
			android:entryValues="@array/status_bar_weather_values" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_temperature_style"
			android:title="@string/status_bar_weather_location_title"
			android:dialogTitle="@string/status_bar_weather_location_title"
			android:entries="@array/status_bar_weather_location_entries"
			android:entryValues="@array/status_bar_weather_location_values" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_weather_rainbow_color"
			android:title="@string/status_bar_weather_color_title"
			android:entries="@array/status_bar_weather_rainbow_color_entries"
			android:entryValues="@array/status_bar_weather_rainbow_color_values" />
		<com.android.settings.bamzzz.prefs.ColorPickerPreference
			android:title="@string/status_bar_weather_custom_color"
			android:key="status_bar_weather_color"
			android:defaultValue="\#ffffffff"
			alphaSlider="true" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_weather_icon"
			android:title="@string/status_bar_weather_icon_title"
			android:entries="@array/status_bar_weather_icon_entries"
			android:entryValues="@array/status_bar_weather_icon_values" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="1"
			android:key="status_bar_weather_condition_icon"
			android:title="@string/status_bar_weather_condition_icon_title"
			android:dialogTitle="@string/status_bar_weather_condition_icon_dlg_title"
			android:entries="@array/status_bar_weather_condition_icon_entries"
			android:entryValues="@array/status_bar_weather_condition_icon_values" />
		<SwitchPreference
			android:defaultValue="false"
			android:key="status_bar_weather_colorize_all_icons"
			android:title="@string/status_bar_weather_colorize_all_icons_title"
			android:summary="@string/status_bar_weather_colorize_all_icons_summary" />
		<com.android.settings.bamzzz.prefs.ColorPickerPreference
			android:title="@string/status_bar_weather_icon_color_title"
			android:key="status_bar_weather_icon_color"
			android:defaultValue="\#ffffffff"
			alphaSlider="true" />
		<com.android.settings.bamzzz.prefs.MyListPreference
			android:defaultValue="0"
			android:key="status_bar_weather_font_style"
			android:entries="@array/status_bar_weather_font_style_entries"
			android:entryValues="@array/status_bar_weather_font_style_values"
			android:title="@string/status_bar_weather_font_style_title" />
		<com.android.settings.bamzzz.prefs.SeekBarPreference
			android:icon="@null"
			android:key="status_bar_weather_size"
			android:title="@string/status_bar_weather_size_title"
			android:max="23"
			min="4"
			android:defaultValue="14"
			unitsRight="dp" />
		<PreferenceScreen
			android:summary="@string/status_bar_open_weather_settings_summary"
			android:title="@string/status_bar_open_weather_settings_title">
			<intent
				android:targetClass="com.cyanogenmod.lockclock.preference.Preferences"
				android:targetPackage="com.cyanogenmod.lockclock" />
		</PreferenceScreen>
	</PreferenceScreen>
3. Add this to res/values/strings.xml
Code:
    <string name="status_bar_weather_title">Weather Text</string>
    <string name="status_bar_weather_summary">Enable various weather text options in statusbar</string>
    <string name="status_bar_weather_hidden">Hidden</string>
    <string name="status_bar_weather_show_scale">Shown with scale</string>
    <string name="status_bar_weather_hide_scale">Shown without scale</string>
    <string name="status_bar_weather_location_title">Placement</string>
    <string name="status_bar_weather_location_summary">Select where the weather temperature is shown on the statusbar</string>
    <string name="status_bar_weather_location_right">Show on right</string>
    <string name="status_bar_weather_location_left">Show on left</string>
    <string name="status_bar_weather_color_title">Temperature color</string>
    <string name="status_bar_weather_size_title">Font size</string>
    <string name="status_bar_weather_font_style_title">Font style</string>
    <string name="status_bar_weather_icon_title">Weather Icon</string>
    <string name="status_bar_weather_icon_color_title">Weather Icon Color</string>
    <string name="status_bar_weather_condition_icon_title">Condition icon</string>
    <string name="status_bar_weather_condition_icon_dlg_title">Coose an icon for displaying the weather condition</string>
    <string name="status_bar_weather_condition_icon_monochrome_title">Monochrome</string>
    <string name="status_bar_weather_condition_icon_colored_title">Colored</string>
    <string name="status_bar_weather_condition_icon_vclouds_title">VClouds</string>
    <string name="status_bar_weather_colorize_all_icons_title">Colorize all icons</string>
    <string name="status_bar_weather_colorize_all_icons_summary">Enable to colorize all icons, disable to colorize only the monochrome icons</string>
    <string name="status_bar_weather_custom_color">Custom Color</string>
    <string name="status_bar_weather_rainbow_color">Rainbow</string>
    <string name="status_bar_weather_anim_rainbow_color">Animated Rainbow</string>
    <string name="status_bar_open_weather_settings_title">Weather settings</string>
    <string name="status_bar_open_weather_settings_summary">Open cyanogen widget preference</string>
    <string name="status_bar_weather_font_normal">Normal</string>
    <string name="status_bar_weather_font_italic">Italic</string>
    <string name="status_bar_weather_font_bold">Bold</string>
    <string name="status_bar_weather_font_bold_italic">Bold Italic</string>
    <string name="status_bar_weather_font_light">Light</string>
    <string name="status_bar_weather_font_light_italic">Light Italic</string>
    <string name="status_bar_weather_font_thin">Thin</string>
    <string name="status_bar_weather_font_thin_italic">Thin Italic</string>
    <string name="status_bar_weather_font_condensed">Condensed</string>
    <string name="status_bar_weather_font_condensed_italic">Condensed Italic</string>
    <string name="status_bar_weather_font_condensed_light">Condensed Light</string>
    <string name="status_bar_weather_font_condensed_light_italic">Condensed Light Italic</string>
    <string name="status_bar_weather_font_condensed_bold">Condensed Bold</string>
    <string name="status_bar_weather_font_condensed_bold_italic">Condensed Bold Italic</string>
    <string name="status_bar_weather_font_medium">Medium</string>
    <string name="status_bar_weather_font_medium_italic">Medium Italic</string>
    <string name="status_bar_weather_font_black">Black</string>
    <string name="status_bar_weather_font_black_italic">Black Italic</string>
4. Open res/values/arrays.xml and add this:
Code:
    <string-array name="status_bar_weather_entries" translatable="false">
        <item>@string/status_bar_weather_hidden</item>
        <item>@string/status_bar_weather_show_scale</item>
        <item>@string/status_bar_weather_hide_scale</item>
    </string-array>
    <string-array name="status_bar_weather_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_location_entries" translatable="false">
        <item>@string/status_bar_weather_location_right</item>
        <item>@string/status_bar_weather_location_left</item>
    </string-array>
    <string-array name="status_bar_weather_location_values" translatable="false">
        <item>0</item>
        <item>1</item>
    </string-array>
    <string-array name="status_bar_weather_condition_icon_entries">
        <item>@string/status_bar_weather_condition_icon_monochrome_title</item>
        <item>@string/status_bar_weather_condition_icon_colored_title</item>
        <item>@string/status_bar_weather_condition_icon_vclouds_title</item>
    </string-array>
    <string-array name="status_bar_weather_condition_icon_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_font_style_entries">
        <item>@string/status_bar_weather_font_normal</item>
        <item>@string/status_bar_weather_font_italic</item>
        <item>@string/status_bar_weather_font_bold</item>
        <item>@string/status_bar_weather_font_bold_italic</item>
        <item>@string/status_bar_weather_font_light</item>
        <item>@string/status_bar_weather_font_light_italic</item>
        <item>@string/status_bar_weather_font_thin</item>
        <item>@string/status_bar_weather_font_thin_italic</item>
        <item>@string/status_bar_weather_font_condensed</item>
        <item>@string/status_bar_weather_font_condensed_italic</item>
        <item>@string/status_bar_weather_font_condensed_light</item>
        <item>@string/status_bar_weather_font_condensed_light_italic</item>
        <item>@string/status_bar_weather_font_condensed_bold</item>
        <item>@string/status_bar_weather_font_condensed_bold_italic</item>
        <item>@string/status_bar_weather_font_medium</item>
        <item>@string/status_bar_weather_font_medium_italic</item>
        <item>@string/status_bar_weather_font_black</item>
        <item>@string/status_bar_weather_font_black_italic</item>
    </string-array>
    <string-array name="status_bar_weather_font_style_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
        <item>4</item>
        <item>5</item>
        <item>6</item>
        <item>7</item>
        <item>8</item>
        <item>9</item>
        <item>10</item>
        <item>11</item>
        <item>12</item>
        <item>13</item>
        <item>14</item>
        <item>15</item>
        <item>16</item>
        <item>17</item>
    </string-array>
    <string-array name="status_bar_weather_rainbow_color_entries" translatable="false">
        <item>@string/status_bar_weather_custom_color</item>
        <item>@string/status_bar_weather_rainbow_color</item>
        <item>@string/status_bar_weather_anim_rainbow_color</item>
    </string-array>
    <string-array name="status_bar_weather_rainbow_color_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="status_bar_weather_icon_entries" translatable="false">
        <item>@string/status_bar_weather_hidden</item>
        <item>@string/right</item>
        <item>@string/left</item>
    </string-array>
    <string-array name="status_bar_weather_icon_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
5. Recompile Settings..
6. Done
The Following 2 Users Say Thank You to bamzzz For This Useful Post: [ View ] Gift bamzzz Ad-Free
18th February 2016, 02:36 AM |#6  
dugeriss's Avatar
Senior Member
Flag Aku neng mburimu yo!
Thanks Meter: 300
 
More
another awesome guide from you masbam ,great
4th March 2016, 09:31 PM |#8  
KurniawanHarry's Avatar
Junior Member
Thanks Meter: 2
 
More
Really awesome mbah..
Simple guide and working ..
9th March 2016, 03:14 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Process: com.android.settings
Flags: 0x40c83e45
Package: com.android.settings v22 (5.1.1-42ab6c19e7)
Build: samsung/cm_logan/logan:5.1.1/LMY49G/85ee9dad6b:userdebug/test-keys

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2358)
at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2420)
at android.app.ActivityThread.access$900(ActivityThre ad.java:154)
at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:10 2)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.jav a:5294)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:699)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.app.SharedPreferencesImpl.getInt(SharedPre ferencesImpl.java:239)
at android.preference.Preference.getPersistedInt(Pref erence.java:1567)
at com.android.settings.bamzzz.prefs.SeekBarPreferenc e.onSetInitialValue(SeekBarPreference.java:188)
at android.preference.Preference.dispatchSetInitialVa lue(Preference.java:1384)
at android.preference.Preference.onAttachedToHierarch y(Preference.java:1171)
at android.preference.PreferenceGroup.addPreference(P referenceGroup.java:167)
at android.preference.PreferenceGroup.addItemFromInfl ater(PreferenceGroup.java:108)
at android.preference.PreferenceGroup.addItemFromInfl ater(PreferenceGroup.java:45)
at android.preference.GenericInflater.rInflate(Generi cInflater.java:488)
at android.preference.GenericInflater.rInflate(Generi cInflater.java:493)
at android.preference.GenericInflater.inflate(Generic Inflater.java:326)
at android.preference.GenericInflater.inflate(Generic Inflater.java:263)
at android.preference.PreferenceManager.inflateFromRe source(PreferenceManager.java:272)
at android.preference.PreferenceFragment.addPreferenc esFromResource(PreferenceFragment.java:299)
at com.android.settings.SettingsPreferenceFragment.ad dPreferencesFromResource(SettingsPreferenceFragmen t.java:146)
at com.android.settings.bamzzz.HandlePreferenceFragme nts.<init>(HandlePreferenceFragments.java:91)
at com.android.settings.bamzzz.ZenControl.onCreate(Ze nControl.java:25)
at android.app.Fragment.performCreate(Fragment.java:2 031)
at android.app.FragmentManagerImpl.moveToState(Fragme ntManager.java:863)
at android.app.FragmentManagerImpl.moveToState(Fragme ntManager.java:1067)
at android.app.BackStackRecord.run(BackStackRecord.ja va:834)
at android.app.FragmentManagerImpl.execPendingActions (FragmentManager.java:1452)
at android.app.FragmentManagerImpl.executePendingTran sactions(FragmentManager.java:483)
at com.android.settings.SettingsActivity.switchToFrag ment(SettingsActivity.java:1000)
at com.android.settings.SettingsActivity.onCreate(Set tingsActivity.java:603)
at android.app.Activity.performCreate(Activity.java:5 990)
at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2311)
... 10 more

---------- Post added at 03:14 AM ---------- Previous post was at 03:13 AM ----------

Help sir!!
14th October 2016, 04:24 PM |#10  
renzetti.s's Avatar
Senior Member
Thanks Meter: 2,323
 
More
First of all tnx for great guide.
Just for fun put this on my phone and want say that in guide miss manifest permission and detail where to put lockclock...
My icon weather a bit small lg g2...
5th August 2017, 03:08 PM |#11  
JT1510365's Avatar
Senior Member
Flag South Lyon
Thanks Meter: 1,892
 
More
Does this work for the galaxy s4 running kitkat
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes