Script for sharing data through bluetooth in android
<p>I am basically a Tester. I am trying to automate this Usecase i.e "Sharing data through bluetooth" . I am using keyevent for this. below is my Code : </p>

<pre><code>#!/usr/bin/perl -w
use strict;
system("adb -s emulator-5554 shell input keyevent 82");           
system("adb -s emulator-5554 shell input keyevent 20");
system("adb -s emulator-5554 shell input keyevent 20");
system("adb -s emulator-5554 shell input keyevent 20");
system("adb -s emulator-5554 shell input keyevent 66"); 
system("adb -s emulator-5554 shell input keyevent 20");
system("adb -s emulator-5554 shell input keyevent 66");
</code></pre>

<p>With the above code i can On bluethooth . </p>

<p><strong>Things which unable to figure it out:</strong> </p>

<ol>
<li>How to pare the device. </li>
<li>How to send the file. </li>
</ol>

<p>Can anybody give me some help or is there another good way by which i can do this?Please let me know what are the things i should know for resolving this issue. </p>
