I want to make offline Wikipedia android application. For that i searched the Google for database samples but till now i didn't find any database.Is there any SQLite database related to android Wikipedia .
The problem here is how can i download offline Wikipedia database? And how to read that in the android?
I try with the .deb extension database but i can't read that database. So can i get any way to do such type of app in android or any thing related to that.
Thanks in advance
Shankararao Pilli
There is no Wikipedia Database out there , but there is a MediaWiki's API which you can use to fetching your data and store it on your db to access later offline.
Related
I've build a website and used https://gonative.io to create my Android app. This works fine as long as I keep my Website online. I want to make the app work offline.
In my .apk file all the data from my website is stored but is unused as far as I know.
Maybe someone here can help my.
Thank you for helping me.
Ronny
If you want to make your app work in offline mode too, then you can use sqlite database. For this you can store all your data received from the website to the sqlite database and when you are offline you can always fetch your data stored in the database. More details on implementing sqlite database in android can be found here
I have a SQL Database containing 24 Columns and about 24000 Rows. I want to retrieve data from that SQL Database. I am new to Android and don't know how to use it.
I found an Android library called Realm but I couldn't find a way of Converting SQL to Realm Database.
If there is a simple way to read data from and to store data in SQL Database or another way of storing data in Android in form of Database, please let me know.Any Help will be appreciated.
Thanks!!
android uses SQLite. This is very similar to SQL. You would only need to have the app download the data from the server database and copy in into the local database.
SQLite information can be found at http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html
Converting from an SQL file has been discussed at Convert MySQL to SQlite
Android comes with SQLite, this is what you should use. did you search anything like "Android and sql"? android training on the subject
Edit:
so you dont have an sql file, you have an online MySql database. can use jdbc but it is not widely recomended. there are some alternatives as in here and here
Not sure if this will help, but . . .
I have been playing around with different programming options for my Android tablet. One is RFO Basic! freely available from the Google store. It seems to be a dialect of Dartmouth Basic with a lot of built-in hooks to Android specific functions (GPS, camera, etc) as well as an interface to SQL. The set of example programs that comes with the distribution includes and SQL example.
Being a Basic-language environment it will (1) be easy to learn but (2) probably slow (very slow) on a 24000 row table..
Hope this helps
I am currently developing iPad application which involve retrieving information from webservice and then storing those information in the local database. Based on users searching criteria, I want to search the database to retrieve relevant database entries. I am using Titanium Studio for developing this iPad application. Could someone suggest me if there is any plugin, standard process, or sample application to understand how to get this done in an optimal way.
You can follow these two videos from Appceelerator on using local data and remote data. There is also source code for these. These are what got me running.
Local data: http://vimeopro.com/appcelerator/building-native-mobile-applications/video/26414892
Remote data: http://vimeopro.com/appcelerator/building-native-mobile-applications/video/26414909
Source code and labs: http://wiki.appcelerator.org/display/td/TCAD+Course+Labs
When using a database for an Android application, is it possible to use a MySQL database, or do you have to use SQLite?
What I'm trying to do is make an app that allows users to see events on a map. These events are updated by admin staff from the office from a Java-based application that works with the MySQL database.
SqLite is present on the phone with some good tutorials out there to get you started using it.
Check the online docs for more details, and I suggest taking a look at the notepad sample, it will get you up to speed in no time.
http://developer.android.com/guide/topics/data/data-storage.html#db
As far as I know you have to use sqlite. MySQL needs a server which would mean you'd need a locally hosted mysql server on a phone which is going a bit overboard.
you have to use sqlite for your android side database
The best is to use content providers if you want to share information. Android provides built in interface for sqlite (android.database.sqlite) and so sqlite is easiest to use.
Another alternative to Sqlite is Berkeley DB for Android (Berkeley DB - Java Edition)
How can I connect to and insert and select data from a database in Android?
There are too many examples of how to do it:
Android SQLite Basics: creating and
using a database, and working with
sqlite3
Android Data Storage
Also, the NotePad tutorial in official developer's page is a good starting point.