[Q] Help with Iconset creation - Zooper Widget General

Hi all,
I'm creating my first iconset for showing my mobile data consumption. I use the #NTMTMM# value that I compare to values from 0 Mb to 3000 Mb (my mobile contract limits my data to 3 Gb by month) with steps of 250 Mb.
The result is a circle with 12 steps from empty (all grey) to full (colored from green to red).
I have created a zip containing :
- config.xml
- folder icons that contains all my png files (stat_sys_data_0.png, stat_sys_data_1.png, ... ,stat_sys_data_12.png)
My config.xml contains :
Code:
<?xml version="1.0" encoding="utf-8"?>
<config>
<title>Mobile data Iconset</title>
<description>Created and packaged by E. Le Bourvellec. Based on a 3Gb data limit</description>
<demo>stat_sys_data_7.png</demo>
<icons>icons</icons>
<default>stat_sys_data_12.png</default>
<mode value="#NTMTMM#">Data use</mode>
<condition>
<test>#MODE#lt;=0</test>
<image>stat_sys_data_0.png</image>
</condition>
<condition>
<test>#MODE#lt;=250</test>
<image>stat_sys_data_1.png</image>
</condition>
<condition>
<test>#MODE#lt;=750</test>
<image>stat_sys_data_2.png</image>
</condition>
<condition>
<test>#MODE#lt;=1000</test>
<image>stat_sys_data_3.png</image>
</condition>
<condition>
<test>#MODE#lt;=1250</test>
<image>stat_sys_data_4.png</image>
</condition>
<condition>
<test>#MODE#lt;=1500</test>
<image>stat_sys_data_5.png</image>
</condition>
<condition>
<test>#MODE#lt;=1750</test>
<image>stat_sys_data_6.png</image>
</condition>
<condition>
<test>#MODE#lt;=2000</test>
<image>stat_sys_data_7.png</image>
</condition>
<condition>
<test>#MODE#lt;=2250</test>
<image>stat_sys_data_8.png</image>
</condition>
<condition>
<test>#MODE#lt;=2500</test>
<image>stat_sys_data_9.png</image>
</condition>
<condition>
<test>#MODE#lt;=2750</test>
<image>stat_sys_data_10.png</image>
</condition>
<condition>
<test>#MODE#lt;=3000</test>
<image>stat_sys_data_11.png</image>
</condition>
<condition>
<test>#MODE#gt;3000</test>
<image>stat_sys_data_12.png</image>
</condition>
</config>
My problem is that the zooper widget i create with that iconset always gives the "3 Gb" stat_sys_data_12.png image while it should show me the stat_sys_data_6.png image as i'm right now at about 1691 Mb (which is <= 1750 which indicates the stat_sys_data_6.png image).
I believe that my conditions are wrong somewhere but I don't see where.
Thanks in advance for your assistance
ps : i have put my zip file attached to this thread.
Eric

Wrong thread

Mokum020 said:
Shouldn't you ask this in the General section anyway, I think the only thing missing is the & symbol before the lt; and gt; operators, so it should be < and >
Here's a reference list: http://www.zooper.org/wp/android/zw/iconsets
I edited the xml file and attached it, should work now
Click to expand...
Click to collapse
Oh thank you, i had not seen that obvious mistake ...
ps : sorry if i put that thread in the wrong section

Related

[Q] Iconset/XML Question

I'm working on a widget that will use the Media Utilities Current App variable (TMU_CURR_APP) to set an icon for that app. I'm fairly certain the problem is happening when I try to test for the value of #TMU_CURR_APP#. Is there a different operand I need to use to compare string values?
Thanks!
Code:
<config>
<title>MU Current App Icon</title>
<description>Media Utilities Current Application Playing</description>
<demo>music.png</demo>
<icons>icons</icons>
<default>music.png</default>
<condition>
<test>#TMU_CURR_APP#="Google Play Music"</test>
<image>playmusic.png</image>
</condition>
<condition>
<test>#TMU_CURR_APP#="BeyondPod"</test>
<image>rss.png</image>
</condition>
<condition>
<test>#TMU_CURR_APP#="Spotify"</test>
<image>spotify.png</image>
</condition>
</config>

[Mod/Theme/Guide] Galaxy S5 FullScreen Call

FullScreen Call Themed
This is for DeOdexed builds ONLY!
This mod is based on the NE5 DeOdexed Rom.
{
"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"
}
. .
. .
. .
Always a work in progress. Ported this over from the international S5 with a little help. Full credits given at the bottom.
Included the stock flashable files at the bottom of the post should you need to go back. Also included a few extra backgrounds. You can use those as a template to add your own.
Download Link --> MOAR_Rom.FullScreen_Call_V4.zip
Download Link --> NE5_DeOdexed.Stock.FullScreen_Call_V4.zip
Installation:
Backup your rom if possible.
Flash in custom recovery.
Changelog:
Code:
[B]Version - 4[/B]
- End call moved to the bottom right as default
- Fixed conference call (caller on hold) from displaying behind call buttons
- Removed toggle indicators from beneath Bluetooth, Mute and Sound buttons
[B]Version - 3[/B]
- Corrected for call info popup.
- Added back in 'Last message' & 'Last spoke' call info.
- Added and changed default fixed background
- Added and changed default fixed background thanks to BobCATROM
- Added updated icons thanks to BobCATROM
- Call info card is scrollable
- Toggles added for MOAR Rom version for upcoming new stuff update for additional features.
[B]Version - 2[/B]
- Removed 'Last Message' popup from behind bottom row.
- Text color for DTMF dialer, In-call Timer and End call screen changed to white
[B]Version - 1[/B]
- Initial Release
Adding your own custom backgrounds:
Take your downloaded image, rename it to picture_unknown.png
You may use a .jpg image. However, the image has to RENAMED to a .png first.
Make a copy of one of the Caller.ID.BG...zip files, open it with a zip file manager and insert your file into the folder vrtheme/system/app/InCallUI.apk/res/drawable-sw360dp-xxhdpi, replacing the existing one.
Additional Note:
I can't say exactly the dimensions required for the background, experiment and report back what seems to be the ideal size otherwise the phone will do its best to resize the image to fit the screen properly.
Credits:
@thanhfhuongf - For the original mod posted HERE
@lacoursiere18 - For the guide and assistance getting me on the right track.
@BoBCatRoM - Huge thanks for the use of his InCallUI theme. You can thank him properly HERE.
Guide/How-to
For additional help and tips related to this mod, refer to the original thread:
[MOD][GUIDE] Fullscreen call S5
** Extract the zip file at the bottom of the post and place the three files into your DECOMPILED InCallUI.apk file in their respective folders.
Important step:
DELETE the file:
res/drawable-sw360dp-xxhdpi/endcall_bg.9.png
The file we are replacing it with is not a .9 image so we need to remove the .9 png file so the other file will be utilized instead.
Modifying InCallUI.apk
res/values/dimens.xml change to value in BLUE:
Code:
<dimen name="call_card_height">[COLOR="Blue"]640.0dip[/COLOR]</dimen>
res/values/styles.xml make change to values indicated in BLUE:
Code:
<style name="InCallTouchUpperButton">
<item name="android:textSize">[COLOR="Blue"]0.0dip[/COLOR]</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">[COLOR="Blue"]#00000000[/COLOR]</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">14.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">2.0dip</item>
</style>
<style name="InCallTouchEndButton" parent="@style/InCallTouchUpperButton" />
<style name="InEasyCallTouchUpperButton">
<item name="android:textSize">[COLOR="Blue"]0.0dip[/COLOR]</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">[COLOR="Blue"]#00000000[/COLOR]</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">20.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">7.0dip</item>
</style>
A little further down
<style name="InCallTouchToggleButtonNoFrame">
<item name="android:textSize">[COLOR="Blue"]0.0dip[/COLOR]</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/incall_button_text</item>
<item name="android:gravity">top|center</item>
<item name="android:background">@drawable/call_dial_btn_bg</item>
<item name="android:paddingTop">18.0dip</item>
<item name="android:layout_width">1.0dip</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:drawableBottom">@drawable/incall_toggle_button</item>
<item name="android:layout_weight">1.0</item>
</style>
This part isn't much fun but the results are worth it.
res/values/colors.xml change ALL these values; they are not all consecutive.
Also, replace the entire lines highlighted in RED:
Code:
<color name="incoming_call_image_widget_background">#00000000</color>
[COLOR="Red"]<color name="incall_screen_background">#00000000</color>
<color name="cover_background">#00000000</color>
[/COLOR]<color name="incall_call_banner_background">#00000000</color>
<color name="incall_call_banner_background2">#00000000</color>
<color name="incall_call_banner_in_call_background">#00000000</color>
<color name="incall_call_banner_end_call_background">#00000000</color>
<color name="incall_call_state_label_background">#00000000</color>
<color name="incall_secondary_info_background">#00000000</color>
<color name="endcall_yellow_button_bg">#00000000</color>
<color name="endcall_green_button_bg">#00000000</color>
[COLOR="Red"]<color name="incall_call_button_background">#00000000</color>
[/COLOR]<color name="incall_call_button_background_qcif_video">#00000000</color>
[COLOR="Red"]<color name="dialpad_background">#00000000</color>
<color name="dtmf_dialer_display_background">#00000000</color>
[/COLOR]<color name="manage_conference_background">#00000000</color>
<color name="button_background">#00000000</color>
<color name="tutorial_background_color">#00000000</color>
<color name="tutorial_tab_background">#00000000</color>
<color name="tutorial_image_unknown_background">#00000000</color>
[COLOR="Red"]<color name="vt_dialpad_background">#00000000</color>
[/COLOR]<color name="circle_time_progress_background">#00000000</color>
<color name="incall_call_banner_background_covered">#00000000</color>
<color name="incall_call_banner_background2_covered">#00000000</color>
<color name="incall_call_banner_in_call_background_covered">#00000000</color>
<color name="incall_call_banner_end_call_background_covered">#00000000</color>
<color name="incall_call_banner_active_bg">#00000000</color>
<color name="incall_call_banner_disconnect_bg">#00000000</color>
<color name="incall_call_banner_incoming_bg">#00000000</color>
<color name="incall_call_banner_onhold_bg">#00000000</color>
<color name="incall_call_state_active_bg">#00000000</color>
<color name="incall_call_state_disconnect_bg">#00000000</color>
<color name="incall_call_state_incoming_bg">#00000000</color>
<color name="incall_call_state_onhold_bg">#00000000</color>
<color name="incall_button_bg">#00000000</color>
<color name="invtcall_call_banner_active_bg">#00000000</color>
<color name="invtcall_call_banner_incoming_bg">#00000000</color>
<color name="invtcall_call_state_active_bg">#00000000</color>
<color name="invtcall_call_state_incoming_bg">#00000000</color>
<color name="popup_button_bg">#80000000</color>
<color name="incall_mw_call_card_background">#00000000</color>
<color name="drivelink_incall_call_banner_active_bg">#80000000</color>
<color name="drivelink_incall_call_banner_disconnect_bg">#80000000</color>
<color name="drivelink_incall_call_banner_incoming_bg">#80000000</color>
Fix the spacing between caller number, DTMF dialpad and pressed numbers (like when you need to dial an extension). If you're having overlap issues with caller number and dialpad pressed numbers.
res/layout/dialpad_twelve_fragment.xml
Add new code and change the value in BLUE. Yours might have to be slightly different number according to your layout.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/dtmf_twelve_key_dialer_view" android:background="@color/transparent" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/dtmf_twelve_key_dialer_view_height" android:layout_marginTop="@dimen/dtmf_twelve_key_dialer_view_top" android:layout_marginBottom="@dimen/dtmf_twelve_key_dialer_view_bottom"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/dtmfDialerFieldContainer" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textColor="@color/dtmf_dialer_display_text" android:id="@id/dialpad_elapsed_time" android:background="@color/dtmf_dialer_display_background" android:layout_width="fill_parent" android:layout_height="@dimen/callstate_container_height" style="@style/InCallElapsedTime" />
<EditText android:textSize="46.0sp" android:textColor="@color/dtmf_dialer_display_text" android:gravity="center" android:id="@id/dtmfDialerField" android:background="@color/dtmf_dialer_display_background" [COLOR="Blue"]android:paddingTop="50.0dip"[/COLOR] android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:focusableInTouchMode="false" android:clickable="false" android:layout_width="fill_parent" android:layout_height="@dimen/dtmf_dialer_field_height" android:scrollHorizontally="true" android:singleLine="true" android:freezesText="true" />
</LinearLayout>
<include layout="@layout/dtmf_dialpad_twelve" />
</LinearLayout>
OPTIONAL Smali Edits:
InCallUI.apk Smali edit.
This will prevent the 'Last spoke' popup item from displaying right above the toggles.
smali\com\android\incallui\callerinfocard\item\LastCallLogItem.smali
Find and replace this entire method:
Code:
.method protected setItem(Landroid/content/Context;Landroid/net/Uri;Landroid/database/Cursor;Ljava/lang/Object;)V
.locals 0
return-void
.end method
InCallUI.apk Smali edit.
This will prevent the 'Last message' popup item from displaying right above the toggles.
smali\com\android\incallui\callerinfocard\item\MessageItem.smali
Find and replace this entire method:
Code:
.method protected setItem(Landroid/content/Context;Landroid/net/Uri;Landroid/database/Cursor;Ljava/lang/Object;)V
.locals 0
return-void
.end method
OPTIONAL Text Color Changes:
Text color changes, these codes are currently set to Black, change to whatever you need.
Call info card text
res/layout/caller_info_card_item.xml
Search through and change these fields to your color choice.
Code:
android:textColor="#ff000000"
DTMF Dialer & Call Timer
res/values/colors.xml
Code:
<item type="color" name="dtmf_dialer_display_text">#ff000000</item>
<color name="overlay_call_time_text_color">#ff000000</color>
End call upper text
res\color\endcall_upper_button_text.xml
Code:
<item android:color="#ff000000" />
OPTIONAL How to rearrange bottom row buttons:
To rearrange buttons xml edit:
res/values/in_call_button_voice_fragment.xml
The bottom row is split into two sections. Think of it as left side and right side.
If you move an item from the left side (top section), to the right side (bottom section), an item must be moved up from the bottom section to take its place.
The lines in RED are the lines to move back and forth.
The lines in ORANGE are the treated exactly the same as the lines in RED except they must be moved as a group (think of the group as a single line).
In this example, I have moved the End Call button to the far left so it is the first item to appear in the top section. I also had to move the line for speakerButton down one section so it would balance out the sections.
The line in GREEN should stay right where it is (I think ).
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/incall_upper_button_contaienr" android:layout_width="180.0dip" android:layout_height="68.0dip" android:splitMotionEvents="false">
[COLOR="Red"]<Button android:id="@id/endButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:drawableTop="@drawable/call_icon_endcall" android:layout_weight="1.0" style="@style/InCallTouchEndButton" />
[/COLOR] [COLOR="Orange"]<Button android:id="@id/addCallButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/onscreenAddCallText" android:drawableTop="@drawable/incall_button_add_icon" android:layout_weight="1.0" android:contentDescription="@string/onscreenAddCallText_description" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/rcsVideoButton" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/rcs_share_live_video" android:drawableTop="@drawable/incall_button_rcs_video_icon" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />
<Button android:id="@id/recordButton" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/menu_record_voice" android:drawableTop="@drawable/incall_record_play_button" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />[/COLOR]
[COLOR="Red"]<Button android:id="@id/dialpadButton" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:text="@string/onscreenShowDialpadText" android:drawableTop="@drawable/incall_button_dialpad_icon" android:layout_weight="1.0" style="@style/InCallTouchUpperButton" />
[/COLOR] </LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/incall_lower_button_contaienr" android:layout_width="180.0dip" android:layout_height="68.0dip" android:splitMotionEvents="false">
[COLOR="Red"]<ToggleButton android:id="@id/speakerButton" android:layout_marginRight="2.0dip" android:textOn="@string/onscreenSpeakerText" android:textOff="@string/onscreenSpeakerText" android:drawableTop="@drawable/incall_button_speaker_icon" android:contentDescription="@string/description_speaker" style="@style/InCallTouchToggleButtonNoFrame" />
<ToggleButton android:id="@id/muteButton" android:layout_marginRight="2.0dip" android:textOn="@string/onscreenMuteText" android:textOff="@string/onscreenMuteText" android:drawableTop="@drawable/incall_button_mute_icon" android:contentDescription="@string/description_mute" style="@style/InCallTouchToggleButtonNoFrame" />
<ToggleButton android:id="@id/bluetoothButton" android:textOn="@string/audio_mode_bluetooth" android:textOff="@string/audio_mode_bluetooth" android:drawableTop="@drawable/incall_button_bluetooth_icon" android:contentDescription="@string/description_bluetooth" style="@style/InCallTouchToggleButtonNoFrame" />
[/COLOR] [COLOR="Green"]<Button android:id="@id/rcsShareButton" android:visibility="gone" android:text="@string/rcs_share" android:drawableTop="@drawable/incall_button_rcs_share_icon" style="@style/InCallTouchButtonRcsShare" />
[/COLOR] </LinearLayout>
You're the man.
Very nice work always a treat! Request if possible thanks
Thanks dont have access to computer at the moment.
tdunham said:
FullScreen Call Themed
This is for DeOdexed builds ONLY!
This mod is based on the NE5 DeOdexed Rom.
Click to expand...
Click to collapse
Very nice. When making an outgoing call, I just get the standard dialpad, is that what's suppose to happen?
Ramer84015 said:
Very nice. When making an outgoing call, I just get the standard dialpad, is that what's suppose to happen?
Click to expand...
Click to collapse
Yes, they are different dialers in two different files.
Sent from my SM-G900P using XDA Premium 4 mobile app
A guide has been posted in Post #2.
I keep getting this annoying sending tones pop-up when I place a call, and the box at the bottom that says when you last contacted the person is under the icons. Anyway to get rid of that pop up and raise up that box s little?
Sent from my SM-G900P using XDA Premium 4 mobile app
tracelessfk said:
I keep getting this annoying sending tones pop-up when I place a call, and the box at the bottom that says when you last contacted the person is under the icons. Anyway to get rid of that pop up and raise up that box s little?
Click to expand...
Click to collapse
I don't think we've figured the last contacted thing yet but I removed it entirely so not sure what you're seeing. Post a screenshot of that when you have time.
Just an FYI, the same exact box will show if there is a special event associated with the caller, like Birthdays and Anniversary but I thought I wouldn't mess with that one. Still, something that needs to be dealt with.
I've heard about the sending tones pop-up before this mod so I'm not sure if its specific. Did you mess with DTMF or something? Post a screenshot of that too. Maybe I can just find a way to remove the popup entirely but it would be nice to know whats causing it to begin with.
tdunham said:
I don't think we've figured the last contacted thing yet but I removed it entirely so not sure what you're seeing. Post a screenshot of that when you have time.
Just an FYI, the same exact box will show if there is a special event associated with the caller, like Birthdays and Anniversary but I thought I wouldn't mess with that one. Still, something that needs to be dealt with.
I've heard about the sending tones pop-up before this mod so I'm not sure if its specific. Did you mess with DTMF or something? Post a screenshot of that too. Maybe I can just find a way to remove the popup entirely but it would be nice to know whats causing it to begin with.
Click to expand...
Click to collapse
No problem... Here you go
Sent from my SM-G900P using XDA Premium 4 mobile app
tracelessfk said:
No problem... Here you go
Click to expand...
Click to collapse
Thanks.
Oh great, it shows last sms/mms too.
The SS of sending tones, does it only popup when you use the keypad in the dialer? Like I said before the actual phone dialer is a different apk completely from the one for the in-call screen so I'm hoping it's localized to that.
tdunham said:
Thanks.
Oh great, it shows last sms/mms too.
The SS of sending tones, does it only popup when you use the keypad in the dialer? Like I said before the actual phone dialer is a different apk completely from the one for the in-call screen so I'm hoping it's localized to that.
Click to expand...
Click to collapse
The pop up only happens when I place the call. And it stays there for like 2-4 seconds and then connects to the call
Sent from my SM-G900P using XDA Premium 4 mobile app
tracelessfk said:
The pop up only happens when I place the call. And it stays there for like 2-4 seconds and then connects to the call
Click to expand...
Click to collapse
Ok, that sounds like the main dialer then. When you have time, flash back to stock MOAR incallui and see if it still happens. I think it will.
tdunham said:
Ok, that sounds like the main dialer then. When you have time, flash back to stock MOAR incallui and see if it still happens. I think it will.
Click to expand...
Click to collapse
Flashed over the stock in call and it still does it, I guess it is the main dialer. Weird, I never seen it before, probably because I didn't have a cool theme to look at haha
So the only issue is the last message box then
Sent from my SM-G900P using XDA Premium 4 mobile app
@tdunham
U are the man Sir.... been waiting on this mod since my S4..... awesome guide.
One of my new favorite Mods. Thanks tdunham .
I've updated the guide at the very bottom for an additional smali edit to remove the 'Last message' popup that shows behind the call buttons.
I will post an update to the full mod later for this too.
tdunham said:
I've updated the guide at the very bottom for an additional smali edit to remove the 'Last message' popup that shows behind the call buttons.
I will post an update to the full mod later for this too.
Click to expand...
Click to collapse
I found the code but it's exactly the same as the one you have in the box so what would I be replacing it with?
Sent from my SM-G900P using XDA Premium 4 mobile app
tracelessfk said:
I found the code but it's exactly the same as the one you have in the box so what would I be replacing it with?
Click to expand...
Click to collapse
The smali edit or the color edit?
Version 2 is up by the way.

Custom Keymap to get to Kodi's Home screen from within Kodi and playercorefactory

This is my keymap and you
1.press the rewind key to go to kodi's home screen and while on most screens that are not playing any media
2. on the homescreen press play it will bring Genisis,
3. on the home screen press fast forward to go to your Library TvShows Titles,
4. on the home screen press rewind to go to your Library Movies Titles,
5. on the home screen press return to bring up isearch.
6.Also when you are viewing a video in full screen, instead of stopping the video when pressing back, I changed to only go back so the video can continue to play, to stop the video or song from playing you have to bring up the on screen display to do so.
The return/back key didn't have any functionality when on the kodi homescreen when you have kodi as launcher, and for those who do not have it as launcher this should prevent you from exiting kodi to amazon's screen.
If you want to change something you will need to refer to these three pages plus the custom firetv keyboard.xml and edit to your liking.
http://kodi.wiki/view/Keymap
http://kodi.wiki/view/Opening_Windows_and_Dialogs
http://kodi.wiki/view/Window_IDs
Not sure how well this work on non rooted fire tv's but it should still give them the rewind button that takes them to kodi's home.
Download keymap from and then rename keyboard.xml and place it in thw sdcard/Android/org.xbmc.kodi/files/userdata/keymaps folder
Custom keymap and playercorefactory Download
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<Global>
<keyboard>
<up>Up</up>
<down>Down</down>
<left>Left</left>
<right>Right</right>
<enter>Select</enter>
<menu>ContextMenu</menu>
<play_pause>PlayPause</play_pause>
<backspace>Back</backspace>
<rewind>ActivateWindow(Home)</rewind>
<fastforward>PageDown</fastforward>
</keyboard>
</Global>
<Home>
<keyboard>
<menu>XBMC.ActivateWindow(favourites)</menu>
<play_pause>XBMC.ActivateWindow(10025,"plugin://plugin.video.genesis",return)</play_pause>
<backspace>ActivateWindow(10001,"plugin://plugin.program.super.favourites/?label=iSearch&mode=0&keyword=__iSearch__&image=special://home/addons\plugin.program.super.favourites\resources\media\search.png&fanart=special://home/addons\plugin.program.super.favourites\fanart.jpg",return)</backspace>
<rewind>ActivateWindow(MyVideos,MovieTitles)</rewind>
<fastforward>ActivateWindow(MyVideos,TvShowTitles)</fastforward>
</keyboard>
</Home>
<FullscreenVideo>
<keyboard>
<up>ChapterOrBigStepForward</up>
<down>ChapterOrBigStepBack</down>
<left>StepBack</left>
<right>StepForward</right>
<return>OSD</return>
<menu>SmallStepBack</menu>
<play_pause>PlayPause</play_pause>
<backspace>Back</backspace>
<rewind>Rewind</rewind>
<fastforward>FastForward</fastforward>
</keyboard>
</FullscreenVideo>
<VideoOSD>
<keyboard>
<menu>CodecInfo</menu>
<rewind>Rewind</rewind>
</keyboard>
</VideoOSD>
<MusicOverlay>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</MusicOverlay>
<VideoOverlay>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</VideoOverlay>
<Visualisation>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</Visualisation>
<Seekbar>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</Seekbar>
<PlayerControls>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</PlayerControls>
</keymap>
also for anyone who needs a playercorefactory.xml to use the external player Aceplayer or VLC.
Code:
<playercorefactory>
<players>
<!-- VLC Beta v7 definition -->
<player name="VLC" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>org.videolan.vlc.betav7neon</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>
<!-- Ace definition -->
<player name="ACE" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>org.acestream</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>
<!-- MXPlayer Pro definition -->
<!--player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<!--filename>com.mxtech.videoplayer.pro</filename>
<!-- Hide XBMC -->
<!--hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<!--playcountminimumtime>120</playcountminimumtime>
<!--/player>
<!-- Youtube definition -->
<player name="Youtube" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>org.chromium.youtube_apk</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
<!-- Rules for which external player to use -->
<!-- DVDPlayer is default
change player= value to one of the above names to change this -->
<rules action="prepend">
<!-- Samba file shares -- Internal player for now due to MX Player issues -->
<!--rule protocols="smb" player="DVDPlayer" />
<!-- DVD Images -->
<!--rule dvdimage="true" player="DVD"/>
<!-- rtmp Streams (Ice / Navi-x) -->
<!--rule protocols="rtmp" player="VLC"/>
<!-- rtsp Streams (Type of internet stream) -->
<!--rule protocols="rtsp" player="VLC" />
<!-- SopCast -->
<!--rule protocols="sop" player="SopCast" />
<!-- Internet streams -- Disabled for now -->
<!--rule internetstream="true" player="ACE" />-->
<!-- Video files -- Default rule (last to ensure above trigger first -->
<rule video="true" player="DVDPlayer"/>
</rules>
</playercorefactory>
In case you missed it
Custom keymap and playercorefactory Download
smartymcfly said:
1.press the rewind key to go to kodi's home screen and while on most screens that are not playing any media
Click to expand...
Click to collapse
Your keymap has the rewind key mapped to <rewind>PageUp</rewind> in Global. How does this take you to the Home screen within Kodi? Is it possible to map <play_pause>Play</play_pause> as a Kodi Homescreen key when actually in an addon or Library? I'd rather not lose the rewind or fastforward keys in Kodi.
mjbxx said:
Your keymap has the rewind key mapped to <rewind>PageUp</rewind> in Global. How does this take you to the Home screen within Kodi? Is it possible to map <play_pause>Play</play_pause> as a Kodi Homescreen key when actually in an addon or Library? I'd rather not lose the rewind or fastforward keys in Kodi.
Click to expand...
Click to collapse
You can change if you want to. I have it in Global because it was much easier to make exceptions for when rewind is needed to address playing media than it is for me to go through each page and see where i need to set it. I actually started out coding it the opposite way and realized how tedious it was when I started reading through all the available window ID's
http://kodi.wiki/view/Keymap
http://kodi.wiki/view/Opening_Windows_and_Dialogs
http://kodi.wiki/view/Window_IDs
Code:
<FullscreenVideo>
<keyboard>
<up>ChapterOrBigStepForward</up>
<down>ChapterOrBigStepBack</down>
<left>StepBack</left>
<right>StepForward</right>
<return>OSD</return>
<menu>SmallStepBack</menu>
<play_pause>Play</play_pause>
<backspace>Back</backspace>
<rewind>Rewind</rewind>
<fastforward>FastForward</fastforward>
</keyboard>
</FullscreenVideo>
<VideoOSD>
<keyboard>
<menu>CodecInfo</menu>
<rewind>Rewind</rewind>
</keyboard>
</VideoOSD>
<MusicOverlay>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</MusicOverlay>
<VideoOverlay>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</VideoOverlay>
<Visualisation>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</Visualisation>
<Seekbar>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</Seekbar>
<PlayerControls>
<keyboard>
<rewind>Rewind</rewind>
</keyboard>
</PlayerControls>
I have tested it on non-rooted firetv and everything works perfect.
I use the aeon nox skin so this works very well. I have the select button show movie/tv show info when pressed and use the play button to play/auto-play the highlighted selection. Plus you still have page down which is used much more often than page down. Anytime you are in a menu and instead of going through each step to get home this instantly goes there even when you are not rooted.
You are not losing the rewind/fast forward when any type of media is playing, only within kodi's menus. if you want to use page up/down just highlight the scroll bar rather than an individual movie/show and it moves a whole page at a time.

Iconset for Day/Night

Hey there!
I want to create a iconset which just shows a sun after sunrise and a moon(maybe with phases?), many iconsets support sun/moon, but I don't want to show the actual weather. I tried making my own icon set, but I can't find any good documentation for icon sets.
Anyone can help me with this?
Okay, I think I managed to do what I want now with this code, if anyone is curious:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
Weather conditions:
0 = UNKOWN
1 = STORM
2 = THUNDERSTORM
3 = DRIZZLE
4 = RAIN
5 = SHOWERS
6 = FLURRIES
7 = RAINANDSNOW
8 = SNOW
9 = HAIL
10 = FOG
11 = HAZE
12 = WIND
13 = PARTLY_CLOUDY
14 = MOSTLY_CLOUDY
15 = CLEAR
16 = FAIR
-->
<config>
<title>DayNight Icons</title>
<description>Icon indicator for Day and Night</description>
<icons>icons</icons>
<demo>sun.png</demo>
<default>sun.png</default>
<!-- We provide current and 2 days weather -->
<mode value="#WCCODE#">Change between Sun and Moon</mode>
<!-- Nightly icons block will be skipped entirely if his conditions do not match -->
<condition>
<!-- We just check if sunrise hour is greater than current -->
<test>#ARHH#>#DHH#</test>
<!-- Or if sunset if minor than current -->
<test>#ASHH#<#DHH#</test>
<condition>
<test>#MODE#=1</test>
<test>#MODE#=2</test>
<test>#MODE#=3</test>
<test>#MODE#=4</test>
<test>#MODE#=5</test>
<test>#MODE#=6</test>
<test>#MODE#=7</test>
<test>#MODE#=8</test>
<test>#MODE#=9</test>
<test>#MODE#=10</test>
<test>#MODE#=11</test>
<test>#MODE#=12</test>
<test>#MODE#=13</test>
<test>#MODE#=14</test>
<test>#MODE#=15</test>
<test>#MODE#=16</test>
<image>moon.png</image>
</condition>
<!-- Daily conditions (parser will arrive here if it did not catch anything in night block) -->
<condition>
<test>#MODE#=1</test>
<test>#MODE#=2</test>
<test>#MODE#=3</test>
<test>#MODE#=4</test>
<test>#MODE#=5</test>
<test>#MODE#=6</test>
<test>#MODE#=7</test>
<test>#MODE#=8</test>
<test>#MODE#=9</test>
<test>#MODE#=10</test>
<test>#MODE#=11</test>
<test>#MODE#=12</test>
<test>#MODE#=13</test>
<test>#MODE#=14</test>
<test>#MODE#=15</test>
<test>#MODE#=16</test>
<image>sun.png</image>
</condition>
</condition>
</config>
edit: Anybody knows, if it is possible to add moon states to this?

DO these brigtness settings in overlay look good?

Z, try this for z5p
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows:
Zone 0: 0 <= LUX < array[0]
Zone 1: array[0] <= LUX < array[1]
...
Zone N: array[N - 1] <= LUX < array[N]
Zone N + 1 array[N] <= LUX < infinity
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>8</item>
<item>24</item>
<item>64</item>
<item>128</item>
<item>170</item>
<item>220</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>768</item>
<item>1024</item>
<item>1536</item>
<item>2048</item>
<item>2560</item>
<item>3584</item>
<item>4095</item>
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>1</item> <!-- 0-8 -->
<item>2</item> <!-- 8-24 -->
<item>4</item> <!-- 24-64 -->
<item>8</item> <!-- 64-128 -->
<item>24</item> <!-- 128-170 -->
<item>32</item> <!-- 170-220 -->
<item>46</item> <!-- 220-256 -->
<item>65</item> <!-- 256-384 -->
<item>80</item> <!-- 384-512 -->
<item>100</item> <!-- 512-768 -->
<item>130</item> <!-- 768-1024 -->
<item>150</item> <!-- 1024-1536 -->
<item>170</item> <!-- 1536-2048 -->
<item>190</item> <!-- 2048-2560 -->
<item>220</item> <!-- 2560-3584 -->
<item>254</item> <!-- 3584-4094 -->
<item>255</item> <!-- 4095+ -->
</integer-array>
<!-- Array of output values for button backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessButtonBacklightValues" />
<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">4</integer> <!-- 24 -->
<!-- Maximum screen brightness allowed by the power manager.
The user is forbidden from setting the brightness above this level. -->
<integer name="config_screenBrightnessSettingMaximum">255</integer> <!-- 4094 -->
<!-- Default screen brightness setting.
Must be in the range specified by minimum and maximum. -->
<integer name="config_screenBrightnessSettingDefault">170</integer> <!-- 2048 -->
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">4</integer> <!-- 24 -->
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">1</integer> <!-- 8 -->
<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
adjustment. It is expected to be somewhat less than the first entry in
config_autoBrightnessLcdBacklightValues so as to allow the user to have
some range of adjustment to dim the screen further than usual in very
dark rooms. The contents of the screen must still be clearly visible
in darkness (although they may not be visible in a bright room). -->
<integer name="config_screenBrightnessDark">4</integer> <!-- 24 -->
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
</resources>
my current settings
m

Categories

Resources