"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
i have a code which get contacts from vcf file and ask user where to save these contact like phone,SIM,google account but i want to directlyinsert contacts into phonebook with any dialog for asking to save.My code is :-
String tmptype = mime.getMimeTypeFromExtension("vcf");
final File file = new File(Environment.getExternalStorageDirectory().toString()
Intent i = new Intent();
I have planed the following thing,please tell me will it possible?
1.Decided to execute lsof command in android program itself for the process
(Android each app is represented by separate process,so i will able to retrieve its process id)
so command will be
output will be table containing FD as well as is name including other information
2.Map the FD to its name
when we get the file name we will able to create the input/output stream.
Last Visit: 23-Nov-20 15:41 Last Update: 23-Nov-20 15:41