Am developing an android app using HTML5 and Phonegap.
App contains a database which developed using Phonegap Storage..
Is there any possibility to access the database of the application using Java?
90% of my application is developed using HTML5 but , I have a requirement to add Java and access the data from Database(created by phonegap) using Java.
How can i do this? is there any possibility ? Please guide me.
Just call:
File databaseFile = this.getDatabasePath("databasename");
getDatabasePath will tell you where the database is located.
Related
ALL questions I saw here is too old for understanding so I'm asking a new one.
Im building a social media app that stores data, and will ,at the end, send notification even when the app is offline.
Is MongoDB is a good choice to use with Android Studio to my project ?
I understood that I need first to connect it to Realm and by Realm I use MongoDB.
Do you think its a good DB to use with Android? if it is, do you have any good guides for it?
If not, is there any other DB to use that is easy to learn\use?
PS
I dont want to use Firebase, because of its pricing.
Thank you .
MongoDB is also available for android
The only problem is that it does not have well-structured documentation for android..
I recently managed to connect my android application to the remote database
here is a sample unit application
https://github.com/i-sachinkumar/MongoDB-for-Android
Its readme file contains all the steps to be followed in the back-end as well as in the android studio
Enjoy
I am planning to develop a mobile app using HTML CSS and javascript.i plan on storing data in a local file instead of a database.how can I develop this? any ideas? The app will run in the browser of the mobile device. (this eliminates login)
The concept of the project is good.ive also designed the UI.
I think you're talking about making a website with a javascript app in it. Mobile apps are made with swift for IOS and android apps are made in java or c++.
There are programs that will take your website and put it inside an application container (mostly for android) but these programs are not recommended.
I would recommend learning swift or Java or c++ and make an app or using your html/css/javascript knowledge to make a web application.
I am trying to create a meteor project that allows android apps to access its DB.
We have understanding of Meteor (me) and Java android development (friend).
Could anyone experienced in this field give a simple guideline on which keywords to search, or give a brief guideline of how to approach this.
I was thinking of creating a meteor server, then somehow allowing the android app to access MongoDB.
I am pretty experienced with simply making a web app with Meteor and Meteor mongo, but I have no experience opening the database to external apps.
Meteor uses the DDP protocol. So you can build your backend with Meteor, and then connect to it with any app (native Android app for example) through the DDP protocol by using a library for Java. A list of DDP libraries is maintained here. You should be able to find something for Android.
When I create a app from facebook developer and choose to use Heroku as host they don't give me the option to put a java app, only PHP, Js, Ruby and Pyton. But when i create a app from the Heroku dev site i can create a app using java. My question is: How can i put my java app to run inside facebook?
You don't have to create your app through Facebook using those templates, to make it eventually be a Facebook app. Just write your Java Facebook app separately (here's a good resource for that) and the once you get that working, follow the general guide for deploying Java apps on Heroku.
I am developing an app in Android. I would like to attach a database (created in C++) to my app Android that my Android app could read. In which format should I create this database with my C++ program?
Android provides a built in SQLite database, which is used by the applications developed for it. The Android SDK provides a well-defined, easy-to-use API to this database, and as long as you don't have a real special need for your own database, I would suggest using it.
You might want to have a look at sqlite (www.sqlite.org/).
sqlite - http://developer.android.com/guide/topics/data/data-storage.html
SqlLite is the built-in database. Portable across Android, iPhone, HTML5 and just about every embedded system.
I take it that your question is how to create a database on a host computer (using C++) and transfer it to the Android App. If so, then have your C++ program create a SqlLite database on your host computer and then either package the database with the app, or download it into the App's data folder from a server.
http://realm.io "Realm is a mobile database: a replacement for SQLite & Core Data
Realm can save you thousands of lines of code & weeks of work,
and lets you craft amazing new user experiences."
For C++ program you can use C/C++ Interface For SQLite. Check out the tutorial An Introduction To The SQLite C/C++ Interface.