语言

Menu
Sites
Language
Database sharing between service and native app

Hai all,

how to share a database between service and native app in Tizen

In native application, i created a database with secret key  and a table APPID and i inserted column value.

             byte pArray[] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'};
             ByteBuffer input;
             r = input.Construct(16);
             r = input.SetArray(pArray, 0, 16);
             input.Flip();
             AppLog("byte buffer contents are----->%s",input.GetPointer());


             String dbPath(App::GetInstance()->GetAppRootPath() +L"shared/data/configured.db");
             database.Construct(dbPath, "a+",input);

 

My doubt is ,how to share this database to service application so that i can retrieve item from table created in native application


Can any one guide me in this issue plz

响应

1 回复
P puvvada

In service application iam able to get the db file but when iam reading contents table  showing E_ObJ Locked instance

i tried the below url

 

https://developer.tizen.org/forums/native-application-development/share-database-between-two-aplications

 

but same error is comming

 

Can any one figure out plz