admin管理员组文章数量:1291420
am trying to build an Android app in java so that everytime when a user opens it, the app performs;
Collects all contacts from an Android phone (only numbers. then the rest like id, names, ... are not really necessary)
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).
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.
- User interface is ready
- Permissions are all set
- 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.
本文标签:
版权声明:本文标题:Android app in java to save all contacts from a phone to a text file in a local directory like file:storage0emulatedfolder_name 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741532138a2383819.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论