[Galaxy S II Android Development] treysis:
Okay, you're all right, [MENTION=6560258]the.gangster[/MENTION] I'm sorry. I understand myself my original post wasn't very clear. Still, it doesn't excuse my tone. Also, you've done already so much for the community. Thank you for that. I really mean it.

I get this error in logcat:

02-21 18:46:18.720 8669 8669 E AndroidRuntime: FATAL EXCEPTION: main
02-21 18:46:18.720 8669 8669 E AndroidRuntime: Process: com.android.bluetooth, PID: 8669
02-21 18:46:18.720 8669 8669 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/2E34-1F2A/bluetooth/betterbatterystats.apk exposed beyond app through Intent.getData()
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.net.Uri.checkFileUriExposed(Uri.java:2346)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.content.Intent.prepareToLeaveProcess(Intent.java:8981)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.content.Intent.prepareToLeaveProcess(Intent.java:8942)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1519)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.Activity.startActivityForResult(Activity.java:4225)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.Activity.startActivityForResult(Activity.java:4183)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.Activity.startActivity(Activity.java:4522)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.Activity.startActivity(Activity.java:4490)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at com.android.bluetooth.opp.BluetoothOppUtility.openReceivedFile(BluetoothOppUtility.java:214)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at com.android.bluetooth.opp.BluetoothOppTransferHistory.openCompleteTransfer(BluetoothOppTransferHistory.java:298)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at com.android.bluetooth.opp.BluetoothOppTransferHistory.onItemClick(BluetoothOppTransferHistory.java:277)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.widget.AdapterView.performItemClick(AdapterView.java:310)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.widget.AbsListView.performItemClick(AbsListView.java:1156)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3128)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.widget.AbsListView$3.run(AbsListView.java:4043)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:751)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:95)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6126)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
02-21 18:46:18.720 8669 8669 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Update 1:

That's what I found on google regarding this exception:

https://developer.android.com/reference/android/os/FileUriExposedException.html

Something of passing the file as "file:///" which is not allowed in newer Android. But then I don't understand why the problem doesn't occur with media files. Maybe because the media player applications are still backwards compatible and still accept "file:///"?

Update 2:

If I open a text file, the editor shows that the file is correctly passed as "content://" (at least that's what it displays as the source for the file). Now I don't know why this isn't the case with APK and moreover, where to look for it in the source.