How to Configure Home Settings in poshomesettings.xml

From wizarPOS
Revision as of 12:35, 13 September 2021 by Hans (talk | contribs)

You can configure some home settings in poshomesettings.xml.Please download the xml template.

poshomesettings.xml file description

<?xml version="1.0" encoding="utf-8"?>
<desktop
    // UI style, clarity / metro / android, Q2 and Q3 only support metro.
    style="metro"    
    pageStatus="down"
    // page indicator color of the selected page
    indicatorColor="4FA2FF"
    // whether set icon item background color
    itemBackground="true"
    // title location, left/center/right, only for Q2 and Q3
    titleGravity="left"
    // only for Q2 and Q3
    title="WizarPOS"
    // When update, the version and versionCode should larger than the one in the system.
    version="1.0.0"
    versionCode="11" >
    
    // Application config
    <applications
        // How many cols display in one page
        cols="2"      
        // Q2 default is 140, Q3 default is 96
        iconheight="140"
        iconwidth="140"
        // How many rows display in one page. Q2 default is 4, Q3 default is 3.
        rows="4" >
        // Some special application you want to define
        <application
            // icon item background color
            backgroundColor="20A2DE"
            // app class name
            class="com.test.allApp15.AllAppList1"
            // at which column
            col="1"
            // app package name
            package="com.test.allApp15"
            // at which page
            page="3"
            // at which row
            row="1" 
            // span columns
            columnSpan="2" (default is 1)
            // app or clock, default is app
            type="app" />
        <application
            backgroundColor="596892"
            class=""
            col="2"
            package="com.UCMobile"
            page="1"
            row="1" />
            
        <application
            backgroundColor="20A2DE"
            class="com.android.stk"
            col="1"
            package="com.android.stk.StkLauncherActivity"
            page="1"
            row="1" />
            
         <application
            backgroundColor="20A2DE"
            class="com.android.stk"
            col="1"
            package="com.android.stk.StkMenuActivity"
            page="1"
            row="2" />
    </applications>
    // Define favorite bar.
    <favoritebar
        // how many columns
        cols="3"
        // whether transparent
        hideBackground="false" >
       <application
            // app class name
            class="com.example.testEditText.FirstActivity"
            // at which column
            col="3"
            // app package name
            package="com.example.testEditText" />
        <application
            class=""
            col="2"
            package="cn.kuwo.player" />
        <application
            class="com.example.realfullscreensample.MainActivity"
            col="1"
            package="com.example.realfullscreensample" /> 
    </favoritebar>
    // Define hidden application.
    <hiddenapplications >
       <application 
           // package name, if only config package name, all the entrance of this package will be hide, if only one entrance, just config package name
           package="com.sohu.inputmethod.sogou"
           // class name 
	   class="com.sohu.inputmethod.sogou.SogouIMELauncher"/>
    <hiddenapplications />
</desktop>

update process

Create the folder:

1) \wizarpos\homesettings\homesettings_XXX\, XXX default is wizarpos, please check the kernel version, it includes splash=XXX, this values is same with the splash value.

2) Or \cloudpos\, this is only supported in PosSysAssistant app version > 2.11.8

Copy the poshomesettings.xml to this folder, then update, the process is like install APK or update firmware.

Update from wizarview

Upload poshomesettings.xml to WizarView:

  1. Add a new parameter file name in WizarView.
    1. Click Applications>Application.
    2. Click + icon in the left bottom of the tool box, popup an edit window.
    3. In the edit window, write the name and other input area, then select type param.
    4. Input the package name(com.wizarpos.android.home) and parameter file name(poshomesettings.xml).
    5. Click Commit button.
  2. Click Search button in the Applications>Application page.
  3. Select the parameter file name in the list.
  4. Select config icon in the right bottom of the tool box.
  5. Select Upload button in the popup window.
  6. Choose the upload file, then click Commit button.

The parameter file has configured in WizarView now.

The pushing process is as same as pushing an app. Please follow Wizarview user manual to configure it and push it to a terminal