언어 설정

Menu
Sites
Language
settings.xml on Gear S2 app

Hi,

I've already asked this on Samsung developers forum but nobody seems to know.

So, I'll try my  chance here.

I have been using settings.xml on my Gear S apps (watchfaces) for customization of several features on the watchface.
Now I am porting these watchfaces to Gear S2.
When I add the settings.xml, the "stylize" option appears on Gear manager for such apps. However, when I click that, I get an empty page (no settings) or  a message saying "Gear plugin stopped" I can't use the stylize feature on my apps.
 

Is there a change in the use of settings.xml on S2 ?

Maybe a limitation to the format ? Or deprecated items ?

Or is there anything I should add on my app's config.xml ?


Thanks.

Responses

14 댓글
daniel kim

Hi,

When I applied settings.xml of Gear S to Gear S2, I could observe same plugin message. and I think that settings.xml is not availabe in Tizen 2.3.1 as I can not find any description about settings.xml in help page.

Regards

mekabe remain

Hi Daniel,

 

If it was not available, then adding settings.xml would not make "stylize" option available on the watchfaces.

I am 100% sure that it is available and supported. There must be a slight specification/format change that we should take care of.

 

mekabe remain

any ideas about where we can ask this ?

 

mekabe remain

Hi,

I have a log for the instance below. It seems like there are missing elements in the settings.xml
see:
11-19 14:28:33.461 25230 25230 E SettingsParser: No <Sampler> tag in settings.xml!!!

And the log was taken by Samsung test team. So they don't say that settings is not supported on Gear S2.

But how can we find the full spec ?




11-19 14:28:33.461 25230 25230 I SettingsParser: parseXML() - START
11-19 14:28:33.461 25230 25230 I SettingsParser: getResultXMLFileName()
11-19 14:28:33.461 25230 25230 I SettingsParser: settingFileName : QkgndRFnRM_settings.xml
11-19 14:28:33.461 25230 25230 I SettingsParser: resultXMLFileName : QkgndRFnRM_result.xml
11-19 14:28:33.461 25230 25230 D SettingsParser: 
11-19 14:28:33.461 25230 25230 D SettingsParser: DB::[-- ClocksSetup --]
11-19 14:28:33.461 25230 25230 D SettingsParser: ClockName : CustomWatch_S2
11-19 14:28:33.461 25230 25230 D SettingsParser: PackageName : QkgndRFnRM
11-19 14:28:33.461 25230 25230 D SettingsParser: ClockImageName : QkgndRFnRM.CustomWatchS2.png
11-19 14:28:33.461 25230 25230 D SettingsParser: ClockBasePartImageName : /data/data/com.samsung.android.gearoplugin/files/SM-R720/
11-19 14:28:33.461 25230 25230 D SettingsParser: SettingFileName : QkgndRFnRM_settings.xml
11-19 14:28:33.461 25230 25230 D SettingsParser: ShownState : true
11-19 14:28:33.461 25230 25230 D SettingsParser: PreloadedState : false
11-19 14:28:33.461 25230 25230 D SettingsParser: Group : null
11-19 14:28:33.461 25230 25230 D SettingsParser: AppCategory : WATCH_CLOCK
11-19 14:28:33.461 25230 25230 D SettingsParser: ClockType : 3rd
11-19 14:28:33.461 25230 25230 D SettingsParser: -------------------------
11-19 14:28:33.461 25230 25230 I SettingsParser: SettingsTagParsing_SettingsFile() - START
11-19 14:28:33.461 25230 25230 W System.err: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String or
g.w3c.dom.Node.getTextContent()' on a null object reference
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.wearablesettings.SettingsParser.Settings
TagParsing_SettingsFile(SettingsParser.java:807)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.wearablesettings.SettingsParser.parseXML
(SettingsParser.java:217)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.clocks.ClockPreviewFragment.configuratio
nClockPreview(ClockPreviewFragment.java:368)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.clocks.ClockPreviewFragment.onStart(Cloc
kPreviewFragment.java:157)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.Fragment.performStart(Fragment.java:1986)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1207)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1189)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:200
6)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.Fragment.performStart(Fragment.java:1992)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1207)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1189)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:200
6)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:1
76)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:517)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.HMSecondFragmentActivity.onStart(HMSecon
dFragmentActivity.java:122)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1250)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.Activity.performStart(Activity.java:6588)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3118)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3263)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.access$1000(ActivityThread.java:197)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1687)
11-19 14:28:33.461 25230 25230 W System.err:    at android.os.Handler.dispatchMessage(Handler.java:102)
11-19 14:28:33.461 25230 25230 W System.err:    at android.os.Looper.loop(Looper.java:145)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:6897)
11-19 14:28:33.461 25230 25230 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
11-19 14:28:33.461 25230 25230 W System.err:    at java.lang.reflect.Method.invoke(Method.java:372)
11-19 14:28:33.461 25230 25230 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
11-19 14:28:33.461 25230 25230 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
11-19 14:28:33.461 25230 25230 I SettingsParser: showErrorToast()
11-19 14:28:33.461 25230 25230 I SettingsParser: SettingsTagParsing_SettingsFile() - END
11-19 14:28:33.461 25230 25230 I SettingsParser: PreviewTagParsing_SettingsFile() - START
11-19 14:28:33.461 25230 25230 I SettingsClockPreviewInfo: clearBGInfo()
11-19 14:28:33.461 25230 25230 I SettingsClockPreviewInfo: setColor() - r : 88 / g : 88 / b : 88 / a : 255
11-19 14:28:33.461 25230 25230 W System.err: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String or
g.w3c.dom.Element.getAttribute(java.lang.String)' on a null object reference
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.wearablesettings.SettingsParser.PreviewT
agParsing_SettingsFile(SettingsParser.java:300)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.wearablesettings.SettingsParser.parseXML
(SettingsParser.java:218)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.clocks.ClockPreviewFragment.configuratio
nClockPreview(ClockPreviewFragment.java:368)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.clocks.ClockPreviewFragment.onStart(Cloc
kPreviewFragment.java:157)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.Fragment.performStart(Fragment.java:1986)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1207)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1189)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:200
6)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.Fragment.performStart(Fragment.java:1992)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1207)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1189)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:200
6)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:1
76)
11-19 14:28:33.461 25230 25230 W System.err:    at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:517)
11-19 14:28:33.461 25230 25230 W System.err:    at com.samsung.android.gearoplugin.activity.HMSecondFragmentActivity.onStart(HMSecon
dFragmentActivity.java:122)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1250)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.Activity.performStart(Activity.java:6588)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3118)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3263)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.access$1000(ActivityThread.java:197)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1687)
11-19 14:28:33.461 25230 25230 W System.err:    at android.os.Handler.dispatchMessage(Handler.java:102)
11-19 14:28:33.461 25230 25230 W System.err:    at android.os.Looper.loop(Looper.java:145)
11-19 14:28:33.461 25230 25230 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:6897)
11-19 14:28:33.461 25230 25230 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
11-19 14:28:33.461 25230 25230 W System.err:    at java.lang.reflect.Method.invoke(Method.java:372)
11-19 14:28:33.461 25230 25230 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
11-19 14:28:33.461 25230 25230 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
11-19 14:28:33.461 25230 25230 I SettingsParser: PreviewTagParsing_SettingsFile() - END
11-19 14:28:33.461 25230 25230 I SettingsParser: SamplerTagParsing_SettingsFile() - START
11-19 14:28:33.461 25230 25230 E SettingsParser: No <Sampler> tag in settings.xml!!!
11-19 14:28:33.461 25230 25230 I SettingsParser: parseXML() - END
11-19 14:28:33.461 25230 25230 I ClockPreviewFragment: setTextIdleClockName()
11-19 14:28:33.461 25230 25230 I ClockPreviewFragment: drawClockPreview()
11-19 14:28:33.461 25230 25230 E ClockPreviewFragment: Show default clock image, mClocksSetupList.get(position).getClockImageName() 
: QkgndRFnRM.CustomWatchS2.png
11-19 14:28:33.461 25230 25230 I ClockPreviewFragment: getBitmapFromFile_create : /data/data/com.samsung.android.gearoplugin/files/S
M-R720/QkgndRFnRM.CustomWatchS2.png
11-19 14:28:33.461 25230 25230 I ClockPreviewFragment: setPreviewIndexTo : 1
11-19 14:28:33.461 25230 25230 D ClockPreviewFragment: Setting to TP_INDEX
11-19 14:28:33.461 25230 25230 D ClockPreviewFragment: From Start Removing Immediately
11-19 14:28:33.461 25230 25230 I ClockListFragment: onStart()
11-19 14:28:33.461 25230 25230 I BaseFragment: onStart
11-19 14:28:33.461 25230 25230 I ClockListFragment: customizeActionBar()
11-19 14:28:33.461 25230 25230 I ActionBarHelper: setActionBarTitle()
11-19 14:28:33.461 25230 25230 I ClockFragment: getClockSetupList()
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.watch-face-editor-analog-luxury
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.watch-face-editor-simple-b
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.watch-face-editor-neo
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.watch-face-editor-simple-a
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.w-watch-chrono
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.w-watch-world
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.idle-clock-oildrop
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.idle-clock-heartrate02
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.idle-clock-heartrate01
11-19 14:28:33.461 25230 25230 D ClockFragment: clocksSetup : com.samsung.watch-face-editor-digital-photo
AVSukhov

Hello,

You can try to create a new ticket on bug tracker:

https://www.tizen.org/community/bug-tracker

 

mekabe remain

are  you sure that we can post this as a bug ?

it is not really a bug , just that we don't know the specs for the settings.xml format.

 

mekabe remain

I created this bug:

https://bugs.tizen.org/jira/browse/TW-24

 

but it just allows assignee to be selected as myself. IF I can't assign it to anyone else how is it going to be solved ?

shall I solve it myself ? :)

 

Marco Buettner

U dont have to asign it by anyone ... The asignee will be selected by operators of Jira.

mekabe remain

but now it is assigned to me. if they see my name under assignee, will they assign it to anyone else ?

 

Marco Buettner

AFAIK the creator is the first asignee and will change if a operator of Jira check the issue to related person.
 

mekabe remain

it is still assigned to me.

What does that mean ?

nobody is interested ?

 

mekabe remain

no interest in this subject ?

 

Kamil N

I have the same problem. Settings.xml works fine on Gear 2, but when I open individual settings for an app in Gear S2 Gear Manager crashes with message 'Gear plugin has stopped'. I couldn't find any documentation how settings.xml should look for Gear S2. 

daniel kim

Hi,

As per this attached document of following link, I guess that settings.xml is available in Gear 1, Gear 2 and Gear S only.

I would suggest you to visit this link.

          http://developer.samsung.com/technical-doc/view.do?v=T000000273&pi=1&ps=10&pb=Y&ct=CT030000&sc=

Regards