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 want to download telugu news paper from my application and after download that one i have read in off line mode that one. how to implement that one please help me.
Thanku
You need to find websites that provide free RSS feeds for Telgu news.
Then you need to write a parser of your choice in your app for parsing data from those RSS feeds.
Save the parsed data in a File and save it on your device(Internal/SD Card).
Also there will be images associated with the news item, so also save them.
Implement your UI as you like.
Finally render your news items from your device i.e. in Offline mode.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 months ago.
Improve this question
gfg web
gfg app
Hey,
Here are the two images from the geeksforgeeks website and geeksforgeeks application, notice that they both have the same content, Now question is that how they uses the webpages content in his application, Is they save there articles content in the database and then fetch for both website and android application ? or they are using something else.
thanks in Advanced...
They aren't parsing html in textview or something, rather they have a server, and they make request, and they get response to the request (probably in form of JSON) and they have some fragment or activity with specific set of elements and they just parse JSON and extract content.
And again, there are MANY ways to do this, but am pretty sure they aren't just parsing HTML to textview or something. You can search and implement popular architecture in your app.
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 working on a simple news app project in android for which i want to use different news api but someone told me to use rss feeds for more updated news. I think api is good option but I am still learning and don't know what to do now.
If you want to integrate popular newspaper news you should used rss feeder for your app. if you want to make it custom newspaper app going for api integration.
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 7 years ago.
Improve this question
I'm developing an android application which is an objective type,In my app there are 4 subjects like C,C++,Java,Android,Users should select the subject of their own choice for example If users selected Android it will load Android Chapters from chapters topics should be loaded and now they should take a quiz on that particular topic till here I have done and its working fine, Now I need to store the questions and answers in mysql database and I should retrieve them according to the topic wise. How to load the questions and answers from database and a topic may contain more than 10 questions How to validate them and show the score to the user?
You can use web service to connect to your mysql DB using ajax and json/xml data format. query the data from DB and output the data using JSON/XML. parse the JSON/XML data and display in your content.
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.