I was trying to transfer a file(about 3 mb) using android beam, using the
setPushBeamUris(). The transfer seems to be initiated but I am getting the
"Beam did not complete" notification on the receiving device. Both the
devices are running jelly bean(Nexus 7 tabs). Dont know what I am not doing
right.
Here is brief snippet of my code
mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
if (mNfcAdapter == null) {
Toast.makeText(this, "NFC is not available",
Toast.LENGTH_LONG).show();
finish();
return;
}else{
mPDFFileName = grabFileName();
if(mPDFFileName!=null){
Uri fileUri=Uri.fromFile(new File(mPDFFileName));
mNfcAdapter.setBeamPushUris(new Uri[]{fileUri},this);
}
}
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en