IFileSystemAPIs fsApi = DependencyService.Get<IFileSystemAPIs>();
if (fsApi != null)
{
- string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
+ // Temporary, use preinstalled screenshot
+ //string testScreenShot = fsApi.PlatformShareStorage + item.AppID + ".png";
+ string testScreenShot = fsApi.AppResourceStorage + item.AppID + ".png";
if (fsApi.IsFileExist(testScreenShot))
{
recentShortcutInfo.ScreenshotPath = testScreenShot;
get;
}
+ string AppResourceStorage
+ {
+ get;
+ }
+
string PlatformShareStorage
{
get;
}
}
+ public static string AppResourceStoragePath { private get; set; }
+
+ public string AppResourceStorage
+ {
+ get
+ {
+ return AppResourceStoragePath ?? "";
+ }
+ }
+
/// <summary>
/// A directory path which should be used for sharing between apps.
/// </summary>
base.OnCreate();
FileSystemPort.AppDataStroagePath = DirectoryInfo.Data;
+ FileSystemPort.AppResourceStoragePath = DirectoryInfo.Resource;
FileSystemPort.PlatformShareStroagePath = "/opt/usr/home/owner/share/";
var app = new App(MainWindow.ScreenSize.Width,
<Content Include="res\img_tizen_home_list_dim_apps.png" />\r
<Content Include="res\img_tizen_home_list_dim_recent.png" />\r
<Content Include="res\img_tizen_home_menu_focused_bg.png" />\r
+ <Content Include="res\org.tizen.example.Amazon.TizenTV.png" />\r
+ <Content Include="res\org.tizen.example.Hulu.TizenTV.png" />\r
+ <Content Include="res\org.tizen.example.Netflix.TizenTV.png" />\r
+ <Content Include="res\org.tizen.example.Vimeo.TizenTV.png" />\r
+ <Content Include="res\org.tizen.example.XBox.TizenTV.png" />\r
+ <Content Include="res\org.tizen.example.Youtube.TizenTV.png" />\r
<Content Include="res\screenshot.png" />\r
</ItemGroup>\r
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r