I want that the app only chack the web page only one time a day, so I want that the data are save. And if the app open again, the data shoud be load. I am inspired by http://ift.tt/1p228Gk. But I can not save the result with MainActivity extends AppCompatActivity:
String url = "http://ift.tt/16kwqqf"; SharedPreferences data; SharedPreferences.Editor dataEditor;
and Date extends AsyncTask:
Document document = Jsoup.connect(url).get(); Elements date = document.select("div#mp-otd p b"); String sDate = date.getText(); dataEtitor.setString("date", sDate)
// <-- this do not work
Aucun commentaire:
Enregistrer un commentaire