• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps just starting android, need help with SQLight ?

Hi guys ,
Can you Please tell me
1. what should i use if i want to save my user details / login or any user data in the database.

is SQLight enough for android apps or can i save the data in a mysql database using a php script.

Thanks in advance
 
Depends if you want to store the login details locally on the device, or send to a remote server. If the former, then use SQLite, otherwise you can make use of MySQL via a PHP script, as you mentioned.
Of course if you do send these details to a remote server, make sure you use a secure transmission protocol, such HTTPS, or otherwise encrypt the data.
 
Thanks man,
Also if it is not too much to ask can you give me the work flow of how you would make an app that has features such as
login / registration and a user profile and other common stuff in apps.

What are the best practices involved to keep my app light.
 
Ah ok, apologies. What will your app do?
In terms of the work flow/architecture, then obviously the first thing presented to the user should be the login screen. This should also provide the ability to create a new account, which would take the user to a separate screen for entering details.
Once past this login stage you are into the main app, and the work flow or behaviour will really depend on what the app is doing. For my last app I adopted a tab based UI, as the functionality could be partitioned into distinct areas. It made sense for these to be shown on different tabs.
I also made use of the action bar to show various icons, which could be made dynamically (in)visible, depending on what the user had selected on the screen.
You would do well to first sketch out your required screens, to design the layout. This will help to clarify the work flow in your mind, and also to flush out any details you may have overlooked.
It's a very creative and enjoyable process to see your app take shape and do something useful.
 
Thanks i get what u r trying to say.
I have already designed few of the pages and i will now start the java part responsible for the processing.

Thanks for the help :).
 
Feel free to ask further questions if you need help with specific things. There is also a huge amount of resource on the web, and StackOverflow is particularly useful.
 
Hi @Rohit Chauhan, I know your question is about SQLite, but you might want to try Realm (https://realm.io). It's an open source cross-platform db engine, that in my opinion is easier to use and as fast as (if not faster than) SQLite. And it also has a small footprint, so it won't add that much to your apk size. Good luck..;)
 
Back
Top Bottom