Android development architecture - android

I want to develop a android app in which the users will post their info about something and that info can be edited by anyone using the app. What kind of knowledge and expertise i would need for this as i'm new to android development.

You need to know the basic UI creation with EditText, TextView and ScrollView. Then you will need to know JSON to send and receive data from the server. You will also need SQLite and SharedPreferences. You can use Retrofit to communicate with the server. Hopefully this is enough. If anything else is required you need to learn it while doing the.
I would suggest you to start off with the app and as you go ahead you will realize what you will require and you can go about learning while you do the app. This is the quickest and according to me the best way to learn.

Related

Using parse on a web hosting

let me ask my question with an example:
Assume that I have some PHP files for my android app that I put it on 000webhost[dot]com; so, my question is how can I use parse (parseplatform[dot]org) in this situation?
I'm new in backend, so I'm sorry if this question is stupid!
For some reason I can't use back4app, aws, etc.
Don't worry about php language, if it's necessary I can write it in another language. (my backend logic is not complex)
If you need a simple web-site with simple backend logic, I'd do that using Express.js. Since Parse Server is essentially an Express.js middleware, you can use the same process to serve both Parse Server and the web-site.
If you prefer to use a different technology, Parse Platform provides many different sdks (https://parseplatform.org/#sdks) that you can use for many different backend technologies (including PHP), or you can connect directly to the REST (https://docs.parseplatform.org/rest/guide/) or GraphQL (https://docs.parseplatform.org/graphql/guide/) apis using any client.
When I asked this question, I didn’t know what exactly should I search until I found this amazing article. This article opened my mind, the most helpful thing that I found there, was this:
Parse is more flexible. Given the freedom to host Parse on the
server of your choice.
You can choose the self-hosting option and deploy your Parse project
on your selected server, such as Digital Ocean.
And then I found this awesome video on youtube.
Now I can run parse on my own server (vps or cloud).
I know the title of this question may not be clear, but I don’t want to change it, because someone like me doesn’t know the right keyword for research.
Hope this help someone else too.

How to setup a mongoDB server and use it for an android application?

We are developing an android application that needs to communicate with a remote database, in order to sync some Strings. After some research it seems that mongoDB fits all the requirements.
However we are new to back-end and are clueless as to how things actually work. Google wasn't of much help as I couldn't find anything that explains this stuff clearly enough.
From my understanding we need a mongoDB and a REST API server. How do we go about setting these things up to use with android?
A step by step guide and a brief explanation as to what we need would be extremely be helpful.
You can go through following link and use step by step.I think it will be helpful.
Click here A simple CRUD application using Express and MongoDB

Android application backend

I want to make an android application which will display an external message (For example: some quotes, proverbs etc) daily.
The message should be retrieved from some place other than the client device and I would like to configure the messages from back end
These messages should also change everyday.
How should the back end be and how can the android application retrieve the configured message ?
Do I need a server at the back end for the same or can avail some cloud services for the same ?
What is the best approach to do?
If you want to avoid having to set up and manage a server on the backend yourself you can take a look at a 'backend as a service' offering.
Two example candidates are:
https://parse.com
http://aws.amazon.com/lambda/
Both Parse and Amazon provide SDK's to allow you interact with the backend from your Android app.
You will likely want to study this a little to decide if you want this type of solution or to build your own server as Brian suggests - I think there are pros and cons to each approach and you'll have to choose which is best for your case.
Yes, you will need a server. You can start building the server software on the same machine as your Android emulator and create them in parallel. You'll need to choose a language and most likely a web server framework that suits your thought process and style.
If you want to use REST, for instance, google some for "best REST server framework". You will get hundreds of answers that don't mean much, but look at the communities that surround the frameworks that come back. Look at the user lists and how many questions about it exist on this site. That will give you a better idea of whether you can ask questions and get answers when they arise. You are making an investment by learning a framework, spend a little time deciding which one you are going to use, possibly by trying a few of them for a very simple site that returns the kind of data you are looking for.
Other than that, you really need to ask specific questions once you've chosen a language and a framework. Hope that helps.

Android application interacting with a server

Ok so, I know the question is pretty much google-able and I did google it and found out a few answers ,so I am not asking this question knowing completly nothing.
So, I have an application (Cannot specify much about what it does or is or so...) and I need to get some data from a database.
As far as I know, the Volley is the best way to go ,but I am still looking for more details.
Could anyone tell me which is the best way to go?
NOTE: I am NOT looking for code,I am looking for methods.A name would sufice ,as I can do the digging myself.Eventually links to documentations would be awesome, but again, I can find documentations.I just need to know which is the fastest way and the most optimized.
Based on your comment, it looks like there are two different aspects to your application:
Sending out the HTTP requests from your client- i.e. your android app
Processing and sending the response to these requests on the server side, by setting up a web service
Looks like you have part 1 figured out. Note that, volley is a library, similar to android HTTP library, but optimized for faster networking.
For part 2, unless you're planning to use embedded database like sqlite, you'd need to learn about writing web services to provide database access.
Spring Data JPA is one of the many ways to do it.
I hear Parse is great too, but not free.

Making android app get data from rails table

I am new to rails and wish to make my Android app work with data created in my rails app.What is the best strategy to auto-generate/auto-update a JSON or an XML feed with the data created by my rails app to be used with my android app?
JSON is the way to go.
Make specific controllers and actions to provide the data that your Android app needs to consume, and use something like the RABL or jbuilder gem to create json templates with the data structure that you want. You will need to use the Json libraries for android
Some further reading for you as it's impossible to provide a more detailed answer to such a general question
http://railscasts.com/episodes/322-rabl
http://railscasts.com/episodes/320-jbuilder
and a nice simple tutorial on how to post json from Android
http://localtone.blogspot.co.uk/2009/07/post-json-using-android-and-httpclient.html
and how to consume json
http://hmkcode.com/android-parsing-json-data/
You should find the time to watch all of that video but it's the last half that is really important.
Then to handle versioning of your Rails API/REST interface or whatever you want to call it
http://railscasts.com/episodes/350-rest-api-versioning
Rails and Android or iPhone for that matter make an awesome combination.
The above should be enough to get you started at least to get you to the point where you can ask more specific questions, but once you get your head round the basics you really need to use a sync adapter to handle the traffic. The Android development team really URGE you to take the sync adapter approach as can be seen in this very long googl I/O video
http://www.youtube.com/watch?v=xHXn3Kg2IQE

Categories

Resources