Uygulama ilk defa açıldığında webservice'den aldığım ürünlerin webservice'den ürün listesini aldım. Bu listeyi paylaşılan tercihlere kaydetmek istiyorum.List <Object>, SharedPreferences'a nasıl kaydedilir?
List<Product> medicineList = new ArrayList<Product>();
Ürün sınıftır burada:
public class Product {
public final String productName;
public final String price;
public final String content;
public final String imageUrl;
public Product(String productName, String price, String content, String imageUrl) {
this.productName = productName;
this.price = price;
this.content = content;
this.imageUrl = imageUrl;
}
}
i webcoder her zaman talep etmiyoruz Listesini nasıl tasarruf edebileceğinizi?
sadece SharedPrefrences ilkel değerleri kaydedebilirsiniz olsun için
kaydetmek için. –