Linking Database of Android App to World - android

I'm fairly new to the world of Computer Science, and I have questions that I am not sure where/how to look for an answer for them, otherwise I would have just googled.
So, I made an app in android, and it has a SQLite database. Right now, I am the only one who uses this app, it's not even published...the app is like any other social network website where you post something, and others comment on it. So right now, I'm the only one who posts and comments, and the results are all saved in SQLite database in my phone.
How can I "publish" my database to the world? So other people could access the database too? add comments to it etc. when they have the app installed on their device.
What topics of computer science I need to learn to go with this?
I'm sure there's a simple answer to this, but I don't know where/what to look for.
If there are any links to websites, or similar questions on here that could help please post it here.

You have developed an app with db that is in client side
In order to be accessed from everywhere ... you have to use centralized Data base server like sql-server,oracle or my sql...
you have to link you local db to server db for that you need a API(Application programming interface) it can be developed using various languages such as php,c#,java etc..
I hope this would be helpful enough for you.

Related

What tools are better to create a mobile app with a db, buttons, forms

I'm a noob self learning programmer and i'm wondering how can i make an application for mobile. As an example, so you can understand what i need (and easier for me to explain), think of an application where the user can store products and related information by filling forms (an icon, price, name, features, weight...) and then consult stored information.
For me it looks like the best way to create it is by using web related tools like HTML, CSS, MySQL...
The problem i find is that i don't know how to create a web shaped application and then turn it into a mobile app.
I'm sorry if i didn't explain the best way, but hope you guys get my point are able to put me in the right way!
Thanks a lot in advance!!
P.S. Beyond HTML and CSS and a little MySQL i have basic knowledge of JS, C++ and C#.
As a newbie, it's better to do the correct choice at the beginning.
For Android development, the entry point is the developer portal: https://developer.android.com/
The app you've thinking of is quite classic: You won't have troubles to find some tutorials on the web.
You can do that with either SQLite or Firebase Realtime Database, you choose.
I guess, the easiest way will be creating responsive website and then include that in your app as a WebView. However, this might give users the feel that you're just loading the website in a WebView if you don't include some features like, maybe, push notifications, update checker, theme changer, something like that.
You can alos find a lot of easy tutorials and templates to build a WebView app.
P.S.: I myself have made an Android app of my friend's blog by first making a website and then using WebViews.

I need some advice how to connect external database with my app and web page

Im creating an app in which users could browse from many sale offers with cars.
I would like to potential sellers could acces and enter data from web page, then save it to some external server/database.
My app only downlaods this data(pics, descriptions, etc) and show it in some way.
I am begginig programmer with half year experience in android, but ive never set up my own server, neither use external database in my previous apps.
I would like to ask you what is the best way to achive this goal. I will be greatefull for any adivices or materials which i could start from.
I do not know how you thought your data layer, but depending on you can use a database object-oriented, which in my opinion is great for such applications. visit the https://www.parse.com/docs/android/guide is very easy to use think will like. so of course it will not have the need to use a webservice if you choose to use parse.

Database options for android?

I am a CS major and I just recently decided to start putting some of my java knowledge to use by learning how to program with Android. I have just been doing tutorials and reading some books on how to get started, but I would like to write an app and eventually release it to the app store. I have most of the ins and outs of the app figured out, but I'm not sure how to approach data storage. Part of my app will track shipping numbers and info, however, each shipment will have a pretty long list of fields (Name, ID, Address, Weight, Girth, ect.). The list in full approaches 10 items, if you include optional fields. Thats a lot of information to have a user fill out, especially if they have to do it on their phone (app is designed for small businesses, so lots of shipping for tracking). I would prefer not to have to build a sister website to hold this info for the user, so I guess my question would be, is there a service for mobile apps to use to push and pull info that a user could access through their computer? Or would it be better to use a file uploader and just format the info? I'm still an android novice, so I figured I need a little advice from the pros. Any and all advice would be appreciated, and if you know a database type service that is safe and reliable, that would help very much. Thank you!

Android App with SQL server

I have a few questions regarding sql server in android.
Essentially, I am tring to create an app that communicates to a SQL server, runs queries, creates new tables, rows, etc. I have been doing a lot of research recently about getting a connection to a SQL server in android. I've seen the tutorial on using a php file and it seems that isn't quite what I am looking for.
My questions:
Is it possible to create an app like the one I described above?
Do I need to do it using a php file? (like the tutorials)
Is there another way to do what I am looking to do?
Should I create a webservice to do the database portion of it? If so, are there any tutorials out there about that?
I apologize for my noob-y questions. Thanks for your help
You should definitely create a webservice, because otherwise any malicious user who has access to your app (downloads it) could easily trash your DB. But allowing insertion and creation privileges to users seems like a bad idea already.
If your users need a personal db, why don't you use sqlite which is stored locally and has no access delays, and no internet connection requirements? Why do you want a single db that is completely exposed to everyone?
It is not a good idea to communicate directly to SQL server from Android Phones. You might hit so many technical constraints when you keep going with the development. I am not sure about he end result as well. It would be great to go ahead with the service that way you might have lot of controls inside the application and design it efficiently... Just a thoughts :)

Whats the best solution for a database used in conjunction with Maps in Android?

Could someone please point me in the right direction. My project involves a database where users enter their address and other info from my website. This database is then referenced in my android application to show the locations of these addresses in my database.
I have yet to start and just came up with this idea. My question is, what would be the best method to create a database easily modified through my website (mySQL, php, etc), and also easily referenced easily through Android and the Google Maps API? I need some ideas on the languages I will need to use to create this database and website so I can go buy the necessary books to start reading up.
Thanks so much
I believe the best way for you to go with this one is:
a database cache on the device
that means you can use XML if you don't have many complicated requirements from storing the address
or SQLite if you want to be able to query the database and do more fancy things
on the server side
if you only need to get the data from your server on the device, then a simple XML with a unique address per user should do it
if you need to push addresses from your device to the server then a REST system needs to be implemented
So, now you just need to figure out exactly what you need from your system and then start googleing on one of the solutions I gave you! Good luck! :)
Google App Engine would probably work for that. GAE supports Java and Python. Maybe use the Restlet framework (compatible with GAE) to implement a REST architecture.

Categories

Resources