I've got a problem with pushing files to my Nexus One.
It seems to me that there is only a small selection of file types that are accepted by my phone (such as jpg, gif and so on).
I recently tried to push other files to my phone (in my case gpx) and my phone rejected it automatically.
Is there a way to bypass or extend this filter in my program?
Is there also a way to catch those files by a service?
I've got this error before. It would say "File Not Accepted: The target device claims it will not accept a file of the type you are trying to send" or "Error, device does not accept files of this type" This is because of not having permission to accept this file. You have to add permission in the Manifest file.
ReplyDelete<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Under the activity enter something like this!
<activity name="BluetoothActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="*/*" />
<data android:pathPattern="*.*\\.gpx" />
</intent-filter>
</activity>
You could try to add intent filters for the file extensions you expect to receive, see Android intent filter for a particular file extension?
ReplyDelete