Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Gear Fit 2 – can’t read files inside service native app
Hi, I try to read folders from /opt/usr/media on Gear Fit 2 from service app. It is hybrid app. Web App starts service and then
I need to read all folders from media folder (like documents, downloads and any folder there).
The code stops at getting folder attributes – line: if(stat(path,$st) == -1).
I don’t know what is wrong. The code read files without problem when it is inside UI app but
doesn’t want to work in hybrid service. Are there any constraints about readig files from service app on Gear Fit 2?
I added privilages to tizen-manifes.xml.
<privilege>http://tizen.org/privilege/mediastorage</privilege>
<privilege>http://tizen.org/privilege/externalstorage</privilege>
char *path;
storage_get_root_directory(STORAGE_TYPE_INTERNAL, &path); // works OK
// path contains now: /opt/usr/media
struct stat st;
if (stat(path, &st) == -1) { // STOP HERE, stat() returns -1
return; // code enter here and ending
}
if (S_ISDIR(st.st_mode)) {
… // not enter here
}
…
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio