Android and iPhone - android

I am creating an android application for the first time and learning.
When I updated something to a website, could those updated one reflected on the android automatically?
And another question is, are Android and iPhone related? or they have their own software to design individually?
Thanks, your responds are appreciated.

As far as i understand your question you would need a webservice of some sort to provide this data to your app.
This can be done using PHP, C# or any other webtechnique.
You would than have to parse the JSON or XML on the client side (in the app).
This is the basic Server-Client structure that most apps use.

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.

Android development architecture

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.

Mobile A/B testing

I'm fresh out of college, working on developing Android apps for quite sometime. My boss has asked me to develop A/B testing for mobile native apps. I've been exploring the various A/B testing tools. I really like Apptimize implementation.. By inserting a small piece of code, any one can make live changes using a visual WYSIWYG editor without even updating the app or do any coding.
Here is a scenario,
I have three buttons in my app.. Once Apptimize SDK is installed in the app, it loads the app in the desktop web browser. I can change the color/text or make any other changes using WYSIWYG editor. Once the changes are done, it goes live instantly in the app as well.
I would like to clarify the following,
How the UI of the app is loaded in the Desktop web browser? Do we need to parse the xml of Android to load the UI? or is there any protocol available?
I guess that once the changes are done in Desktop it will be saved in server.. And when the app loads, the changes are fetched from the server through JSON format. But how the changes are applied in the app?
Since I have only one year experience in Android, it would be great if someone could throw light on this. Any tutorials to get this done would be really helpful.. or any other pointers?
P.S: I had a look at Switchboard but i'm not sure if I understood it clearly.
lead Android engineer over here at Taplytics.
I've answered A/B testing questions before similar to this.
How the UI of the app is loaded in the Desktop web browser? Do we need to parse the xml of Android to load the UI? or is there any protocol available?
No XML needed! There's actually quite a few ways to do this. The first, the easiest, is just send a screenshot up over a socket or any http request, like this.
The trick here would be to keep track of the X/Y coordinates of each view and send that up with the screenshot. So if you click a view on the webpage, the view at that location is known!
I guess that once the changes are done in Desktop it will be saved in server.. And when the app loads, the changes are fetched from the server through JSON format. But how the changes are applied in the app?
This is pretty much asking 'how is an entire A/B testing library made', which is the basis of the entire company of Taplytics, Apptimize, and some of Mixpanel.
In which case, I've answered roughly how its all done here. If you have the View object, changing them is pretty straightforward!

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

Android App integration with other websites

I am currently a student of Android.
My aim is to develop Android Apps that talk with different websites and exchange/process/return data.
But I am really not sure what should be starting point.
Coming from a backend development I can put the layout for backend development as follows
a) Understand Relational DB concepts
b) SQL
c) PLSQL
d) Procedures/Functions
e) Solve realworld problems
....etc
Similarly can someone tell me what should be starting point for learning Android integration.
HTTP or Web Services or REST API or JSON/XML or anything else
All these terms are new to me and when I googled/wikied the terms I can (kinda) grasp what they mean but I am not able to see the big picture as to how they fit etc...wrt integrating an app with a website.
TLDR.what should be the starting point for learning Android Integration ?.
PS : If this is a wrong forum, then do let me know which forum to post this on. Thanks !!!
Your question is so general, and there is no clear answer for it, and you are not ready to build a real app unless you can answer it by your own, so you need to know more about each term of the above, then your question will be "what is the best practice?"
You can start from below:
IBM: Using XML and JSON with Android
XML vs JSON Based Web Services: Which is the Best Choice?
XML vs JSON parsing in Android
JSON or XML in Android
By the way many developers prefere JSON, because JSON is simpler than XML/SOAP and has less overhead, and payload will be smaller than the XML representation, beside Android has JSON parseing APIs.

Categories

Resources