Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - ContentProvider and ParcelFileDescriptor

ContentProvider and ParcelFileDescriptor

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ContentProvider and ParcelFileDescriptor

Postby TommyN » Sat Apr 25, 2009 6:11 pm

Hi!

I've made a ContentProvider where I have overridden the "openFile" function and return a ParcelFileDescriptor. The problem I'm having is that I have to copy the res/raw resources to the file system before I can pass them along using ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);

Is there a way to share the resources embedde in my ContentProvider without resorting to first copying the resource to disk and doing:

URI uri = URI.create("file:///data/data/<package>/files/myfile");
File file = new File(uri);
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);

Regards,
-Tommy
TommyN
Freshman
Freshman
 
Posts: 3
Joined: Sat Apr 25, 2009 6:02 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests