Hello,
I am working on a android application that will transfer multiple image files to anothermobile device through bluetooth connection.
I have used following transfer method in android:
ArrayList<Uri> uris=new ArrayList<Uri>();
String multifile[]={"/sdcard/aaa.txt","/sdcard/bbb.txt","/sdcard/ccc.txt"};
int len=multifile.length;
Intent Int=new Intent();
Int.setAction(android.content.Intent.ACTION_SEND_MULTIPLE);
Int.setType("*/*");
for(int i=0;i<len;i++)
{
File file=new File(multifile);
uris.add(Uri.fromFile(file));
}
Int.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
startActivity(Int);
This methos successfully transfered the files.But i have only nine images on android phone and then my application will go for another set of 9 images to be transfered,for that i have to call the above chooser wizard to send the files.
But i don
I am working on a android application that will transfer multiple image files to anothermobile device through bluetooth connection.
I have used following transfer method in android:
ArrayList<Uri> uris=new ArrayList<Uri>();
String multifile[]={"/sdcard/aaa.txt","/sdcard/bbb.txt","/sdcard/ccc.txt"};
int len=multifile.length;
Intent Int=new Intent();
Int.setAction(android.content.Intent.ACTION_SEND_MULTIPLE);
Int.setType("*/*");
for(int i=0;i<len;i++)
{
File file=new File(multifile);
uris.add(Uri.fromFile(file));
}
Int.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
startActivity(Int);
This methos successfully transfered the files.But i have only nine images on android phone and then my application will go for another set of 9 images to be transfered,for that i have to call the above chooser wizard to send the files.
But i don