混得ContentObserver的onchange改变URI在旧版本的API [英] getting changed uri on ContentObserver Onchange on older versions of the API

查看:181
本文介绍了混得ContentObserver的onchange改变URI在旧版本的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/8432800/how-to-get-uri-of-inserted-row-in-my-content-observer\">How在我的内容观察者获得插入行的URI?

我使用ContentObserver,听取他们对内容提供商的变化。不过,我想知道是否有一种方式来获得改变URI时的OnChange方法被调用(而不是做回调内部的搜索查询,以找出发生了什么变化)。

I am using ContentObserver to listen to changes on a content provider. However, I was wondering if there is a way to get the changed URI when the OnChange method is called (instead of doing a search query inside the callback in order to find out what has changed).

这似乎认为这是可能的API级别16,但我必须写一个API 8兼容的应用程序= S

It seem that this is possible with the API level 16, but I have to write an API 8 compliant application =S

推荐答案

好了,后来我发现张贴在其他地方,仍然没有答案同样的问题,这使我觉得就是没有办法让改变URI在旧的API。

Well, later I found the same question posted in other places and still without an answer, which leads me to think that there is just no way to get the changed URI on older apis.

这篇关于混得ContentObserver的onchange改变URI在旧版本的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆