언어 설정

Menu
Sites
Language
app_preference.h

Hello.

I am developing an application for Tizen 2.3.1 and that uses app_preference.h. When I'm building it in Tizen IDE everything works fine - I can save some strings to preferences and read them.

However when I am switching to GBS build system preferences doesn't work. When I try to read something from preferences or write to them I have an error:

E/CAPI_APPFW_APPLICATION_PREFERENCE(14160): preference.c: _initialize(81) > IO_ERROR(0xfffffffb) : fail to open db(unable to open database file) E/CAPI_APPFW_APPLICATION_PREFERENCE(14160): preference.c: preference_is_existing(489) > IO_ERROR(0xfffffffb) : fail to initialize db E/CAPI_APPFW_APPLICATION_PREFERENCE(14160): preference.c: _initialize(81) > IO_ERROR(0xfffffffb) : fail to open db(unable to open database file) E/CAPI_APPFW_APPLICATION_PREFERENCE(14160): preference.c: _read_data(254) > IO_ERROR(0xfffffffb) : fail to initialize db

 

Does anybody know what am I missing that it doesn't work?

Responses

3 댓글
Hyungdeuk Kim

 

Hello.

The problem is not how to build pkg but how to intsall pkg.

Maybe you install pkgs (built by GBS) manually so data directory for your application does not exist and that cause above problem.

Developer have to develop Tizen application at SDK so it is right way to develop and install using Tizen IDE.

Karol Ksionek

Hi. Thanks for reply.

I am using

pkgcmd -i -t rpm -p <path_to_rpm>

What command should I use to create also the database?

Sunwook Bae

Hi Karol

 

Are there any reasons that you should make the app with rpm package?  

(It's not the offical package types that we support in the tizen)

 

In that case, you should make the data directory on your own.  

(ex. you can make it in the rpm spec file)

 

Sunwook