سؤال

I want to save some text data entered by the user as listviews..but still have no idea how to do that..please help!

هل كانت مفيدة؟

المحلول

well, couple of ways to do that.

  1. Save data as raw text into a file http://developer.android.com/reference/java/io/FileWriter.html
  2. Create data objects and serialize them into a binary file.
  3. Store data into database (might be the best option, depends on what you are trying to do).

http://developer.android.com/guide/topics/data/data-storage.html

can you explain more what your application does, then there might be a accurate solution to your confusion. Also try posting some code, that'll convince people that you have done some work and stuck into unknown territory.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top