Change-Id: Idfee3446911c4ed76ed4df7df43d2466ebf3d8b1
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
using Tizen.Internals.Errors;
namespace Tizen.Applications
using Tizen.Internals.Errors;
namespace Tizen.Applications
public static string TryGetPath(Category category, string id)
{
string path;
public static string TryGetPath(Category category, string id)
{
string path;
- ErrorCode err = AppResourceManagerGet(category, id, out path);
+ ErrorCode err;
+ string res;
+
+ if (Application.Current != null)
+ {
+ res = Application.Current.DirectoryInfo.Resource + "res.xml";
+ }
+ else
+ {
+ res = Interop.AppCommon.AppGetResourcePath() + "res.xml";
+ }
+
+ if (!File.Exists(res))
+ return null;
+ err = AppResourceManagerGet(category, id, out path);
switch (err)
{
case ErrorCode.InvalidParameter:
switch (err)
{
case ErrorCode.InvalidParameter: