Code Monkey home page Code Monkey logo

tizen-csharp-samples's Introduction

Tizen-CSharp-Samples

Tizen C# Samples for Mobile, Wearable, and TV profiles.

Since 7.0, Xamarin samples are deprecated and .NET Multi-platform App UI (.NET MAUI) samples are supported by Tizen Platform.

Tools for samples

Visual Studio Tools

Visual Studio Tools for Tizen

Reference

Sample structure

Sample apps will be deployed for each app type.

├── Mobile
│ ├── NUI
│ │ └── ...
│ ├── OpenTk
│ │ └── ...
│ └── Xamarin.Forms (Deprecated)
│ │ └── ...
├── Wearable
│ ├── NUI
│ │ └── ...
│ ├── OpenTK
│ │ └── ...
│ └── Xamarin.Forms (Deprecated)
│ │ └── ...
└── TV
  ├── NUI
  │ └── ...
  ├── OpenTK
  │ └── ...
  └── Xamarin.Forms (Deprecated)
    └── ...

Branch policy

  • master: ready applications for Tizen 7.0

tizen-csharp-samples's People

Contributors

akrawczyk2 avatar bchrescionko avatar chleun-moon avatar dh79pyun avatar dongsug-song avatar gichan-jang avatar hsgwon avatar inhong avatar j-troc avatar jkpu avatar jsobczuk avatar juwols avatar lynettejin90 avatar machinero avatar mszczecinsk avatar myroot avatar ociepaj avatar p-czaja avatar p-falba avatar patuwwy avatar pkalota avatar pkonowrocki avatar pvschakradhar avatar randeepsingh01 avatar sgchoi5 avatar sovalin avatar swift-kim avatar t-zalewski avatar vincent-kwon avatar yunmiha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tizen-csharp-samples's Issues

How to create alarm from wearable service application.

Hello, All!
I need to send periodical vibration from wearable service application (like here: https://github.com/Samsung/Tizen-CSharp-Samples/blob/master/Wearable/ServiceApp/ServiceApp/ServiceApp_App.cs)
I try to use alarms for this: https://docs.tizen.org/application/dotnet/guides/alarm/alarms/#scenario_1
For example I've tried to set alarm to send notification:

protected override void OnCreate()
        {
            base.OnCreate();

            Notification notification = new Notification
            {
                IsVisible = true,
                Title = "TestNotification",
                Content = "This is a test notification",
                Count = 3
            };

            Notification.AccessorySet nAccessory = new Notification.AccessorySet
            {
                SoundOption = AccessoryOption.On,
                CanVibrate = true,
                LedOption = AccessoryOption.On
            };
            notification.Accessory = nAccessory;

            Alarm alarm = AlarmManager.CreateAlarm(1, 2, notification);
        }

But when I run this service application on Tizen Emulator I don't see any alarms. May you explain please how to create alarm from wearable service application, and, maybe there better solution for preiodical vibration realization then alarm ?

Tag Read on actual device

Hello,

Does NFCSampleApp for wearable app work on actual device and read nfc tag?
I was trying read nfc tag in web app but it did not work. As per Samsung, nfc tag read support is not in galaxy watch.

I will try it tonight but wanting to check

Regards,

Amin

TVWindow for xamarin

Hello, does anyone knows how to change TV input source on Samsung TV?
The documentation looks like exactly what I need, but this is for the web application, as I understand.
Here I see only the ability to get info about Display.

Does anyone know how to change source to HDMI using Tizen.Net for xamarin?
Thanks

How to add the custom configuration settings for Tizen service application

Hello!
I've created the Service application for Samsung Watch based on your code template.
I need tp add some custom parameters for my service application (for example, hours, when application will start and stop). Unfortunatelly I have not so much expirience in Tizen development and may you explain, please - what is a best way for this decision ?
Perhaps, you may provide the link to decription of custom Tizen service configuration.
Thank you.

How to keep application Tizen Wearable in foreground

Hello,

I'm sorry if this is bad place to ask this question. Do you have a solution to keep a Tizen Wearable C# application in foreground when the screen goes to sleep ?

I would like to develop an activity tracker for sport and therefore always have the application visible but not necessarily the screen on.

Thank you for your answers.

Video Player sample /Navigating between controls

Hello there , I just started to read about Tizen and the ability to do so with Xamarin .
I just cannot find a sample of video player for the TV ,
I tried to clone git://git.tizen.org/profile/tv/apps/dotnet/sample/videoplayer but it has no files.

the other topic that might be answered if I have managed to clone that solutoin is : do you have a recommended pattern to handle the events coming from the remote to navigate between different controls ?

SKPath.ParseSvgPathData is null on wearable

I am trying to run those samples on Galaxy Watch 3 with Tizen 5.5
Wearable/Xamarin.Forms/SkiaSharp2DSample
Wearable/Xamarin.Forms/PlayingWithHWInputs
but either of them are crashing with null reference to result of SKPath.ParseSvgPathData
I tried using different SkiaSharp versions, but that didn't help.

Sqlite

Hi I attempted to recreate your "SQLite.NET.Sample" for practice yet I get this "error" (although it is not flagged as one the app does not open and debugging stops)

Error:
debug stopped, stopping observer
Inside stop observer
flag observer value is : False

My code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using SQLite;
using System.IO;

namespace TimeTable
{
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public class Item
    {
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }
        public string LessonName { get; set; }
        public string Time { get; set; }
    }
    public partial class MainPage : ContentPage
    {
        const string databaseFileName = "TimeTableDB.db3";

        SQLiteConnection dbConnection;
        static string databasePath;

        public void InitiateSQLite()
        {
            bool needCreateTable = false;
            string dataPath = global::Tizen.Applications.Application.Current.DirectoryInfo.Data;
            databasePath = Path.Combine(dataPath, databaseFileName);

            if (!File.Exists(databasePath))
            {
                needCreateTable = true;
            }

            dbConnection = new SQLiteConnection(databasePath);
            if (needCreateTable)
            {
                
                dbConnection.CreateTable<Item>();
            }
            Item item2 = new Item
            {
                Time = DateTime.Now.ToString(),
            };

            dbConnection.Insert(item2);
        }

        public MainPage()
        {

            InitializeComponent();
            

Unable to resolve Tizen.Xamarin.Forms.Extension

Hi, I asked this question already on the Tizen app developers forum but since it's also related to this repository, I will repeat it here. Having the development tools set up (latest Tizen SDK, emulator, etc.) I can't build the project because of missing Tizen.Xamarin.Forms.Extension package. It was unlisted from nuget:

https://www.nuget.org/packages/Tizen.Xamarin.Forms.Extension/

and the latest version there was 2.3.5-v00009 while the projects here reference it at version 2.4.0-v00014. How can one build the sample then?

Does Xamarin.Forms for TV support TV Remote Controller?

Hi,
I want to start an Tizen TV application with c# and I would like to know if i create the Xaml UI with Xamarin.Forms, do i get TV remote controller support? I can navigate menus and give input using remote controller?
I know that same thing for Xbox using XF, it is not possible to use joystick or remote controller with xamarin.forms uwp. Only native UWP works.
is it the same for Tizen and XF?

thanks for the help

Provide C# companion Android sample using xamarin

Currently it doesnt seem to create a companion app using xamarin. because Samsung accessory sdk has only Jar support. I tried using Android Java bind library but it throws exception. please provide us a minimal working solution. you can find my attempt to create using xamarin.forms with dependency injection as attached.
WearCompanion.zip

Certificate issue

I imported the tizen sensors sample application into visual studio 2019. Using tizen package manager I installed certificate extension. Then, I created a new Samsung wearable certificate using tizen certificate manager. When I am trying to run the app on my connected wearable device, the visual studio keeps giving the following error:
processing result : Check certificate error [-12] failed
Please, help me to solve this error!

Can't get STT to work

I'm on Visual Studio 2019 Community for Windows with a Samsung Gear Sport updated to Tizen 4.0.0.4.

In the sample https://github.com/Samsung/Tizen-CSharp-Samples/tree/master/Wearable/SpeechToText

Once compiled and deployed to the device for debugging, in VS I get:

**Frame not in module

The current stack frame was not found in a loaded module. Source cannot be shown for this location.**

App just crashes and slows down the watch until I reboot. If I copy all of the files to a new VS project, it will compile and deploy, but once I tell it to record and it stops recording after silence detection, I get a "Service Error - Operation Failed" message on the device and no speech to text recognition.

CubeWithSkiaSharp example blocked on Tizen TV

Hi, DotnetPolicyChecker is blocking the CubeWithSkiaSharp example app from being run with a message "[FAIL] SkiaSharp.dll refers a forbidden assembly directly - libEGL.dll" on Tizen 5.0. Is there a way to resolve this issue or maybe you can suggest other high-level C# library that is capable of rendering text, isn't blocked on Tizen TV and can be used in tandem with OpenTK?

[MapsView][Mobile] Maps are not displayed correctly.

Tested on:

cat /etc/info.ini
[Version]
Model=Tizen6/Unified;
Build=tizen-unified_20211014.1;
Release=20211014.1;
[Build]
Type=eng;
Date=20211014_082140;
Time=08:21:40;
Variant=NONE;
ID=tizen-unified;
  1. ScreenShot:

MapsView_screenShot

Tizen TV app no HTTP sample

Hello no HTTP calls are working even with http://tizen.org/privilege/internet

this will fail:

  HttpClient client;
  var uri = new Uri("https://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22"));
  client = new System.Net.Http.HttpClient();
  var response = await client.GetAsync(uri);

Changes of Xamarin Forms 4.2.0

From the release of Xamarin Forms 4.2.0

Major change: Namespace change for
: Forms
: ExportRendererAttribute
: ExportCellAttribute
: ExportImageSourceHandlerAttribute
: ExportHandlerAttribute
: ViewInitialzedEventArgs
: TizenTitleBarVisibility

=> Xamarin.Forms.Platform.Tizen -> Xamarin.Forms

Tizen Forms Init
[before]
global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);
[after]
Forms.Init(app);

Code for creating Native control in Custom Renderer
[Before]
new MyButton(Xamarin.Forms.Platform.Tizen.Forms.NativeParent);
[After]
new MyButton(Forms.NativeParent);

Segmentation Fault while using Google Drive .NET API

Hello,

I'm trying to make a Google Drive App.
I've made all the steps from the home page, have the latest version for the VS Plugin and Tizen SDK (as asked here: https://github.com/Samsung/Tizen-CSharp-Samples/issues/31)
I've used Google's .NET Quickstart guide (https://developers.google.com/drive/api/v3/quickstart/dotnet) in a console application, in which it works perfectly, but in the Tizen 5.0 Class Library (added to the Blank App Xamarin Form) I stumble only on "Segmentation Fault".

The first one is when it's trying to read the credentials.json file (which was added to the solution and set to be copied to the location of the executable).
I've fixed this by using StorageManager.Storages and looking for the Internal StorageType, then created the file, if it didn't exist, and adding the json to it (using System.IO.File). I've also replaced "new FileStream("credentials.json", ...)" with "System.IO.File.Open(credentialsPath, ...)".
The only hint I had for this was the call stack which indicated that there was a problem when accessing the memory (see first image).

The second one is when it tries to call AuthorizationAsync. Unfortunately this it the first place in which I couldn't figure out what I should do because the call stack wasn't of help (see second image).

The third one is when I've tried a new approach. This one goes further, but fails when it tries to get the files from the service. The call stack shows that there is a memory access problem, but I can't figure out what might cause this (see third image).
Screenshots: https://imgur.com/a/J6mkfYe

I have the following privileges in the manifest: internet, network.get, mediastorage, systemsettings, externalstorage, filesystem.read, filesystem.write. The last five were added thinking that they are the fix for the first problem and I've left them just in case.

Is there a way to get more information on the actual error or is there a correct way of doing a connection with Google Drive ?

Thank you,
Flavius

How to debug on TV model 2018?

I have a TV with platform tv-samsung-4.0, hospitalbility TV
I use C# on visual studio 2019, when I debug (start without debugging), nothing happen.
When I see the command line, the "sdb shell" not working.

So how can I debug on Smart TV model 2018?
By the way, can it run the .Net application?

Question: how to prevent screen timeout

I’ve been playing with the Tizen .NET SDK for Wearables to write an app for my Samsung Galaxy Watch Actvie2. I’m using these sample apps as a guide (they have been very helpful).
There is one thing that I’d like my app to do that I can’t figure out. How do I prevent the screen from timing out and changing to the Off display state? I’ve seen other apps do this, so I’m assuming it’s possible. I don’t see any sample that’s doing this kind of thing, but I’m also not sure what to look for. I tried creating a Display.StateChanged event handler that detects when the state changes to Off and then changing it back to Normal, but that isn’t working.

Any help would be greatly appreciated.

Storage

Hello,

Is there a way to store data in tizen .net? I.E data generated by your app stored on said wearable device. As I have been looking around and have not been able to find a way to do this.

Thank you for any help provided.

:)

Web App Sample versoin

Thank you for making this sample. Do you have a Cordova Web app version? I am unable to get Tizen's instructions working for reading NFC.

.NET TV apps doesn't show in apps list / smart hub

I'm guessing there's something wrong with the manifests - none of the TV apps seem to appear in the apps list / smarthub, so there's no way to launch these apps on the TV without doing it remotely from Visual Studio.

Wearable location sample listview problem

I am exploring Tizen-CSharp-Samples/Wearable/Xamarin.Forms/Location sample and in my watch the ListView is not correctly aligned to center.

Screen_20220902_095452
Screen_20220902_095507

The text is mostly correctly aligned, but visible button area is a little bit off from center as you can see from the screenshots from my watch.
Also, after installation or returning to the app after long time, the app does not react to physical ring bezel. I wiping works for scrolling. After going into any subpage and coming back to main list the bezel is working.

My watch:
Galaxy Watch DA5A
SM-R800
One UI v2.0
Tizen 5.5.0.2

Project build in Visual Studio 2019 with packages:
Tizen.NET 9.0.0.16760
Tizen.Wearable.CircularUI 1.5.0

How to debug Segmentation fault ?

Hello there , I am making a renderer for the MultimediaView . However , when it executes base.OnElementChanged(e); I get an error Segmentation fault what do you guys do when this happens ? how can you find out the problem ?

Segmentation Error in the sample with skiasharp

When i try to deploy one sample with Skiasharp on the emulator there is the segmentation error message. I tried with SkiaSharp2DSample and PlayingWithHWInputs.
I use visual studio 2019.

Generate Push App ID .NET

Hi everyone,

In the example PushReceiver .NET.
in the PushModel class, i can see string AppId = "**Your Push App ID**";.

Can anybody tells me how to generate the Push App ID for .NET?

i'm really new in xamarin, and i need the notification for my final studying project .

Thanks in advance.

how to test the app on watch?

Hello
I write an app with VS STUDIO,when i try to test my App on Galaxy Watch(samuang gear s3),it shows the following error:
【processing result : Operation not allowed [-4] failed
spend time for pkgcmd is [2668]ms】
I used the following language to install the app
$ sdb install [path_to_tpk]
Ex)
$ sdb install /home/tizen/org.example.test-1.0.0-arm.tpk

May you teach me how to test the app on watch? Thank you so much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.