Yes, I tried that solution, but the registered function is not invoked when a 
file is modified. 
Maybe rather than regular files, those APIs are only available for Content 
Providers, such as SMS, Contract, Media etc.

Thanks!

-John


--- 09年3月4日,周三, Marco Nelissen <[email protected]> 写道:
发件人: Marco Nelissen <[email protected]>
主题: [android-developers] Re: Am I able to hook file system on Android
收件人: [email protected]
日期: 2009,34,周三,1:36上午

While a content provider is the preferred way to control access to
data your app has, it won't do what the original poster was asking
for.
There is no way to intercept access to any random file.



On Tue, Mar 3, 2009 at 1:34 AM, Philipp Stecher <[email protected]> wrote:
> Hi
>
> I think what you are looking for is a ContentProvider.
>
> Be sure to read the document on Datastorage too. (in your SDK directory at
> docs/guide/topics/data/data-storage.html)
>
> good luck,
>
> philipp
>
>> Hello guys.
>
>> Am I able to hook file system on Android?
>
>> that means before a file is opened by other application, a registered
>
>> function by the third application is invoked, and in the registered
>
>> function, it can decide whether permit other application to open that
>> file.
>
>>
>
>> Thanks in advance.
>
>>
>
>> -Jiang
>
>>
>
>>
>
>>
>
>> ___________________________________________________________
>
>> 好玩贺卡等你发,邮箱贺卡全新上线!
>
>> http://card.mail.cn.yahoo.com/
>
>>
>
> >
>





      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to