I am developing a wearable application for Samsung Gear Fit 2 in Tizen 2.3. The app is hybrid type, where I need to write the sensor data obtained in native application into a file. However, file pointer is null and new file is not created. 'errno' shows the message "Permission Denied". I have checked the permissions for creating file. Also, the same code runs perfectly on Gear S2 without any error
Asked
Active
Viewed 411 times
0
-
I am writing file to path opt/usr/media/Downloads/test.csv – Manish Sharma Nov 08 '16 at 19:41
1 Answers
0
Have you set right permissions ? and in which path are you writing ?

RzR
- 3,068
- 29
- 26
-
Hi RzR, I am writing file to path /opt/usr/media/Downloads/test.csv. Also, I have included the privilege http://tizen.org/privilege/mediastorage. The project seems to work fine on Gear S2 device, but does not work on Gear Fit 2 – Manish Sharma Nov 08 '16 at 19:42
-
can you check permissions using sdb shell on both devices ? I don't have GF2 but I have GS2 ... can you reproduce on emulator ? or share a sample code ? – RzR Nov 08 '16 at 20:14