L
L
LyoneNET2015-01-09 10:43:12
Android
LyoneNET, 2015-01-09 10:43:12

How to save String data using Preferences in Widget?

Hi all.
In general, such a problem. There is a widget for android. When you tap on the widget, the web page is parsed. After parsing, the necessary information is displayed on the widget. Now you need to somehow save it in the phone’s memory, so that if there is no Internet connection, you can download it back. How can this be done with Preferences?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2015-01-09
@maaGames

It is not recommended to save a lot or large data in Preferences. Maybe it makes sense to save the data in a file?
If you want Preferences, then the putString method is there to save strings. putInt for integers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question