Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I wonder if there is any way in that I can import a firebase database JSON to the app via code and then access it via code from the app (Kotlin)
The native Android API for Firebase doesn't take JSON as its input or output. But the REST API does, so you could access the REST API in your app to work directly with JSON. Alternatively you could write a (fairly simple) wrapper to do the conversion from DataSnapshots to the corresponding JSON.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am new to Android programming and I want to make an online marketing app, but I have no website as web service for send and receive data in database between server and client. What can I use instead of a website?
Can I use any free API for it? I searched API and checkout below links:
https://moz.com/blog/apis-for-datadriven-marketers
https://www.programmableweb.com/category/marketing/api
https://firebase.google.com/docs/storage/android/start
Maybe you can use Firebase for data store and retrive in realtime: and it's free
https://console.firebase.google.com/u/0/?pli=1
You can create your own database and retrive and store date there.
https://github.com/firebase/quickstart-android
for referance its github example
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Integrating Hacker News API in Android app, total data is in the form of items, actually trying to display topstories in a ListView using this API https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty but data is in this format (Result of above API) [ 11547212, 11546098, 11544988, 11546490, 11543083, 11544016, 11545112, 11545975, 11543258, 11541675, 11544510, 11543188, 11544254, 11544374, 11541702, 11545351, 11542995, 11542005, 11543646, 11540747, 11541834, 11541242, 11544686, 11544523, 11546077] these are id's of each story as per documentation. So for displaying a list of Top-Stories what is the procedure.
You will have to load each item by id, for eaxmple use this
https://hacker-news.firebaseio.com/v0/item/11547212.json
where 11547212 is the item-id of the story you want to load. You will get basic meta information for this story, includeing author, URL and title.
You may also use firebase itself to access the data. There is a Firebase SDK for Android available.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So i need to update information in my app. Currently the info is in a strings.xml file.
My plan is to download the array of strings and save them locally and display it in relevant places.
What i am stuck with is:
I don't know how to get the array from the web. Should it be in a .txt file? I have 10 or so Arrays(each containing about 20 elements), will the method i thought of be good for this?
I´d say a common approach would be open a HttpUrlConnection, make a Http Get request, buffer response in Stream and parse as JSON Array. Example
Then you can access the datafields of the JSONArray/Object. Would require that your Webservice responses with your array json encoded.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm working on android app, where I want the data entered in the app to be stored in cloud platform, can please some one help me how to establish the connection to the cloud and store the data in cloud?
You need to create webservice for that. Take help of this link
http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
It will store all your data on server. You can access it with urls.
Create response in Json format. you need to parse those Json objects from server
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am creating an android app and I am using both global and local database. I am using PHP and MySQL for global database. How can I synchronize my android app with the PHP code(or website)?
Anushka you should read this post
Remote api call using android sdk in case you need to use data to show in your app
or, if you need to directly show your php page in android you could use webview