Code from Encrypted Database Tutorial doesn’t work.
By Eric Satkimbaev
08 Apr 2015 06:05
English
5 Replies
Hello,
I am trying to use code from Encrypted Database Tutorial (Tizen Mobile Native App Programming > Tutorials > Open Source Tutorials-> Encrypted Database Tutorial):
char * resource = app_get_data_path();
int siz = strlen(resource)+10;
char * path = malloc(sizeof(char)*siz);
strncat(path,resource,siz);
strncat(path, "test.db", siz);
memset(path, 0, siz);
sqlite3_open(path, &db);
but it doesn’t work. Value for the path variable is empty string. Please help me what is wrong?
Edited by: Eric Satkimbaev on 08 Apr, 2015
View Selected Answer
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------