tizen-wearable-sdk

Write to a file in Tizen Native Application

假如想象 提交于 2019-12-25 16:42:44
问题 I am trying to log the Heart Rate of the Gear S3 to a simple text file using a Tizen Native Application. The only way I could find yet, is with a Web Application... is it possible with a Native App? And if so, Where do I find the reference? Thanks a lot 回答1: The res folder does not allow writing text in a file, It has only Read permission. So you should save it in data folder which has Read and Write permission. char* get_write_filepath(char *filename) { char write_filepath[1000] = {0,}; char

Auto generated code from REST viewer not working in Tizen IDE(Wearable) web app

那年仲夏 提交于 2019-12-25 14:20:10
问题 I'm calling one API from HTML/Javascript page using RestViewer.I'm able to get response on RestViewer for that API. However, after generating auto code it is not working in javascript.In browser it is giving error "Request cancelled".Neither of success and failure block getting called. Attached generated code for calling API.Please help if have any idea. function callAPI() { rest.get( 'http://rest-service.guides.spring.io/greeting', null, null, function(data, xhr) { alert(data); // TODO

Tizen app vibration background

我的未来我决定 提交于 2019-12-25 06:34:07
问题 I have a Samsung Gear S and I'm bussy writing a web app. I would like to vibrate my app when I get a message from my server. I simply use navigator.vibrate(1000) and this works just fine. But when my app goes to the background the vibration doesn't work anymore. I've found this thread (https://developer.tizen.org/ko/forums/web-application-development/vibration-background?langswitch=ko) in which they face the same problem but there is no solution. Someone also suggested to use alarms to make

Send Notification to Gear 2

核能气质少年 提交于 2019-12-24 09:58:08
问题 So in the http://img-developer.samsung.com/contents/cmm/SamsungGearApplication_UID... I've found the notifications panel. I have a host android app on my phone. Can someone point me to a guide/tutorial on how to get the notification produced by my Android App onto the Watch? My setup is Master-Slave Linked App. And Once User pressed the notification on the watch, it will pull up the corresponding Gear 2 App? 2.2. Notifications Unlike the phone’s notification panel, Notifications app

Author signing is missing while uploading Tizen Application

本秂侑毒 提交于 2019-12-24 03:34:13
问题 I used Polaris app generator for converting my android application to Tizen TPK. After conversion, while uploading the tpk file in tizen store, i am getting this "Author signing is missing" Any solution ??? Note : The application was converted using trial version of Polaris 回答1: Do you use Trial version of Polaris or full paid? You have to use full paid to be able to put apps in the store. There is a warning about this on app download step. 来源: https://stackoverflow.com/questions/27177262

Tizen IDE crashes all the time

北战南征 提交于 2019-12-23 01:37:30
问题 Tizen IDE crashes all the time when I want to start example project. I'm running Tizen IDE 1.0.0b2 under Ubuntu 12.04. Currently it gives me following ouput. It seems that the problem is here: err:wineboot:ProcessRunKeys Error running cmd L"C:\windows\system32\winemenubuilder.exe -a -r" (2) Though, I've no idea why IDE try to access windows libraries. Output form IDE: JVM terminated. Exit code=1 /usr/bin/java -Dfile.encoding=UTF-8 -Dosgi.requiredJavaVersion=1.6 -XX:+AggressiveOpts -XX

Signature Error in Gear S3 after OS upgrade from Tizen 2.3.2.3 to Tizen 3.0.0.1

落花浮王杯 提交于 2019-12-21 12:11:28
问题 My Gear S3 was running on Tizen 2.3.2.3. Yesterday, I updated it to Tizen 3.0.0.1. Now, when I am trying to install app from Tizen Studio 1.2, it shows following error "The application installation on the device has failed due to a signature error! (error code: -12)" Previously it worked with a certificate I generated with my device's DUID. But, its not working now. I have created new Certificates(both public and partner level), but still its showing same error for both certificate profiles.

samsung gear app communication

喜夏-厌秋 提交于 2019-12-14 03:24:19
问题 I am planning to develop an app for the gear (s) and a samsung galaxy mobile (note 3). I want the user to be able to choose from a list (same like in the gear app of samsung) of all installed apps. The notifications of the selected apps shall get sent to the gear and the notifications of the apps that are not selected in the list shall get sent to another bluetooth device. Since I know that the communication of the samsung gear is very weird, I wanted to ask if it is possible for my app to

SIGNATURE_INVALID when trying to install application on Samsung Gear 2

强颜欢笑 提交于 2019-12-14 01:14:38
问题 After registering with samsung for a developer certificate i can't install my application, i'm getting SIGNATURE_INVALID (code 22). The application can be anything, including a hello world app from the IDE wizard. What's interesting is that before getting an email back from Samsung and instaling the key, I have deployed a hello world app and it worked. Can't duplicate this no more. Log from the IDE: Launching the Tizen application... # If you want to see the detailed information, # please set

Creating and writing into a file in Gear S

瘦欲@ 提交于 2019-12-13 04:59:49
问题 I have a database (IDBStore) defined for the watch. I am trying to write its data into a file and clear the database. Please see the code below: function writeDataLocally() { var database = getDatabase(); var onsuccess = function(array){ var documentsDir, newFile; tizen.filesystem.resolve("documents", onResolve, function(error) { console.log("Could not resolve documents folder."); console.log(error); }); function onResolve(result) { newFilePath = "MyFolder"; documentsDir = result; var newDir