admin管理员组

文章数量:1291420

am trying to build an Android app in java so that everytime when a user opens it, the app performs;

  1. Collects all contacts from an Android phone (only numbers. then the rest like id, names, ... are not really necessary)

  2. Save all of them to a simple text file in a local directory eg: file:///storage/emulated/0/folder_name without displaying anything to the user (does all this in background).

  3. User interface is already set to go but will be using this text file from specified directory

I've researched using an ArrayList to hold the contacts data then try to save the data to a local txt file.

  1. User interface is ready
  2. Permissions are all set
  3. Am trying to add this in MainActivity.java under the onCreate() class/method

But I can't really get how to do this properly. Any help would be highly appreciated. Thanks in advance.

本文标签: