I have never written a mobile app , planning to write one now. Need advice on architecture of same.
Let me first brief on the functionality :
Its a kind of "General Knowledge Ques & Ans" application. There will be different categories & in each category there will be different questions. User can scroll through all questions in a category (using Next or Back button) , For each question there is a "show answer" button , after user has thought of answer can check the same using the button.
something like https://play.google.com/store/apps/details?id=com.programmerworld.HRInterviewQuestionsLite&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5wcm9ncmFtbWVyd29ybGQuSFJJbnRlcnZpZXdRdWVzdGlvbnNMaXRlIl0
should work on all platforms (androids , ios , windows mobile , etc ) hence planning to use phonegap The list of Q&A should be up-datable , like i can give updates having totally new Q&A , or better ans to old questions , or new categories etc The Q&A should be non copyable , like if someone installs the app on his mobile , he should not be able to copy the Q&A list The Q&A list should be stored securely on the mobile allow users to bookmark some ques and later go through only the bookmarked lists should allow users to browse through Q&A in offline mode
Planning to use PhoneGap for it. What i am not sure is how to "best" store the Q&A Data securely and efficiently so that my app is not very heavy also ???
I am aware of two options
1) Android SQLLite .. if i use this i am sure its secure , and easily updatable BUT i am not sure what to do for iOS and other operating system ? is there a cross platform SQL engine ? wont this be heavy ? i mean every user who wants to use my app would need to install this as well
2) cant i store the Q&A as encrypted xml files ?? this way it should be easily updatable and what algo should i use for encryption ? will it be safe enough ?? any cross platform library implementing encryption algorithm ?
3) any other suggestions by experts out there ??