Add new source file problem

Former Member
Former Member
I have added a new source file to a project, “myProgBackground.mc”, however it does not show in Eclipse. Do you need to update a configuration file or settings to recognize the new file?

The reason I am asking is that I am getting a run time error when trying to use code from the simple watch face example.
I have a new “Watch App” application and I want to use some of the code from the watch face sample to draw a simple watch face onto my “Watch App” (I need the watch app for another intended functionality)

The Watch face example references a class “Background” in another file called “myProgBackground.mc”
“class Background extends Ui.Drawable {“

This is listed in layouts\layouts.xml

I have copied the code from “myProgBackground.mc” in to a new file in my own program and added to the layouts.xml file but get a runtime error. “Could not find symbol Background.”

Shell Version 0.1.0
Could not find symbol Background.
Symbol Not Found Error
in MainLayout (Rez:35)
in onLayout (C:\Users\test\workspace\myProg\source\myProgView.mc:11)
Failed invoking <symbol>