Database sharing between service and native app

Database sharing between service and native app

BY 22 Mar 2014 Native Application Development

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

Written by