Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I read at the Android documentation, and the "sqlite helper" is crazy complicated! Is there a way to not use it and maybe use standard sql commands instead? I come from the php mysql, that's my reference; I took a look at the php sqlite too and it also looks much easier.
UPDATE
Thanks soulreaver! Now, another question:
When would I want to use the sqlite helper ? what are the benefits ?
You can always use raw SQLite queries RawQuery. I can agree that sometimes for simple tasks using SQLiteOpenHelper doesn't help at all (It is usable for more complicated things though).
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
it's my first post on Stack and i need to have a database to store some information in a server and i don't know what is the best approach to use, i have the choice beetween SQL DB and Firebase. which one will you advice me? keep in mind that maybe i gonna need to send some request like "SELECT * FROM s INNER JOIN s1 WHERE c.."
thanks
look at this
and look at this too
The Firebase database does not have the equivalent of SQL's WHERE id IN (1,2,3). In the case of selecting by ID, Firebase's way of retrieving items is equally fast.
In Firebase you must write little bit hard code. And you will get and send data in realTime.
But in SQL if you are not using sockets or etc. you must make call to get data.
For your case , as I see you are beginner, use simple SQL database. Loopj or Volley library. Make practices with JSON.
Hope I helped you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
My application has some complicated database operations, Almost all the sql queries i have to use.
If I want server based access to my data, what should i choose to communicate with Parse server: SDK is good, but I know there is an API as well.
I think SDK will not provide a lot of accesses, operations like email verification, complex db operation can't be handle through it. and I don't know anything of server side coding.
Please suggest , Thanks in advance
I would suggest you to first read these
All the limits of parse
Parse SDK review
The second one is for iOS, but it's basically the same for Android. (I basically copied Objective-C code to Java, especialy the requests)
If you are sure you want to make complex app on Parse, then I would probably suggest to go for SDK. It is not that restricting, but will probably be hard to understand in the beggining, but you can do whatever you want if you setup good arhitecture from the start. :)
(But. It's only my opinion)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am using this application: https://code.google.com/p/androidtutorial/ as part of learning to develop Android apps. I am totally new to this. In Eclipse I look through the source code, but I don't see the actual employee list (i.e. the file with the names/numbers etc). I'm guessing either I am looking in the wrong place or it links to a list held online or something? I'm sure it's obvious to anyone who understands these things, but I want to understand where the information is and where in the code this database/list is referenced.
Thanks
The list they are referring to is a local database on a computer, meaning you probably don't have it. It is just an example to show how to interact with a database.
I'm not familiar with that example project but I think the sql.xml file that is inside of EmployeeDirectory6/res/raw/ is where the data is coming from.
There is some code inside of DatabaseHelper.java that executes the SQL commands that are contained within this file to populate the database.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm quiet new to databases and SQLlite in general so I'm sure there's probably an easier way to do this but...
1) How can I store a database online so it is accessable by multiple devices? If this isn't clear, an example of what I'm trying to do can be seen on the Android app "whatsapp". When you update your status(i.e. set it as available or busy), it show's on everyone's device.
2) if this is too complicated to explain on here, can you recommend a tutorial series?
Thanks
Yes you can store your data on your online database but first learn about webservices and how it works. As for tutorial I think this one can give you an idea on how it will work:
http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Also take note that SQLite database are stored locally on your device. :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to have a database of items stored on the user's phone. I currently have everything set up using WebView pointed at my domain, but obviously this isn't ideal if the user is in a low-signal location.
If possible I would also like to be able to search the list for multiple words.
Any pointers to tutorials etc would be ideal.
In Android you'll want to use SQLite databases, here are some places from where I learned my way with databases in Android:
Start here:
http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android
Or here if you want to use an existing database:
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
If you decide on XML, though, you might want to read this instead:
http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html
http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser
Here you have a tutorial involving both methods, downloading data in XML format, parsing it and storing the information on a database, probably the guide you want to read if you're starting with Android, since it covers pretty much what you are trying to achieve, probably :P
http://mobile.tutsplus.com/tutorials/android/android-fundamentals-downloading-data-with-services/