本文整理了Java中android.database.Cursor.getNotificationUri()
方法的一些代码示例,展示了Cursor.getNotificationUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cursor.getNotificationUri()
方法的具体详情如下:
包路径:android.database.Cursor
类名称:Cursor
方法名:getNotificationUri
暂无
代码示例来源:origin: robolectric/robolectric
@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
return wrappedCursor.getNotificationUri();
}
代码示例来源:origin: parse-community/Parse-SDK-Android
@TargetApi(Build.VERSION_CODES.KITKAT)
@Override
public Uri getNotificationUri() {
return cursor.getNotificationUri();
}
代码示例来源:origin: org.robolectric/framework
@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
return wrappedCursor.getNotificationUri();
}
代码示例来源:origin: org.robolectric/shadows-core
@Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
return wrappedCursor.getNotificationUri();
}
代码示例来源:origin: org.robolectric/shadows-core-v23
@Implementation
public Uri getNotificationUri() {
return wrappedCursor.getNotificationUri();
}
代码示例来源:origin: org.robolectric/shadows-framework
@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
return wrappedCursor.getNotificationUri();
}
代码示例来源:origin: stackoverflow.com
Uri qU = DocumentsContract.buildChildDocumentsUriUsingTree( tU, ... );
Cursor c = contentResolver.query( qU, ... );
boolean xL = c.getExtras().getBoolean( DocumentsContract.EXTRA_LOADING );
if( xL ) // then also expect notification URI
{
Uri nU = c.getNotificationUri();
boolean notifyForDescendents;
if( nU == null ) // <--- possible Android bug
{
// default to topmost ancestor of tU
Uri.Builder b = new Uri.Builder();
nU = b.scheme(tU.getScheme()).authority(tU.getAuthority()).build();
notifyForDescendents = true;
}
else notifyForDescendents = false;
contentResolver.registerContentObserver( nU, notifyForDescendents, ... );
}
内容来源于网络,如有侵权,请联系作者删除!