Android Application for Sending a File using Bluetooth OBEX Object Push Profile (OPP)
<p>I tried the following application example for sending a file over Bluetooth OPP in Android Froyo.</p>

<p>Please sugest any solution for this, thanks in advance.</p>

<p><strong>My Application Code:</strong></p>

<pre><code>public class BtAppExample extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);      

        String filePath = Environment.getExternalStorageDirectory().toString() + "/Munnar/1.jpg";
        Log.e("BtAppExample","Uri is: "+Uri.fromFile(new File(filePath)).toString()); 
        ContentValues values = new ContentValues(); 
        values.put(BluetoothShare.URI,Uri.fromFile(new File(filePath)).toString()); 
        values.put(BluetoothShare.DESTINATION, "90:4C:E5:D9:0E:D0");
        values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_OUTBOUND); 
        Long ts = System.currentTimeMillis(); 
        values.put(BluetoothShare.TIMESTAMP, ts);
        Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values);

        }
}
</code></pre>

<p><strong>My Manifest file:</strong></p>

<pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;activity android:name=".BtAppExample"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;

    &lt;/application&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" /&gt;
    &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
    &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
</code></pre>
