Java源码示例:com.socks.jiandan.utils.JDMediaScannerConnectionClient
示例1
@Override
public void loadFinish(Object obj) {
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(getActivity(), connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}
示例2
@Override
public void loadFinish(Object obj) {
//下载完图片后,通知更新
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(this, connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}
示例3
@Override
public void loadFinish(Object obj) {
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(getActivity(), connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}
示例4
@Override
public void loadFinish(Object obj) {
//下载完图片后,通知更新
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(this, connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}
示例5
@Override
public void loadFinish(Object obj) {
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(getActivity(), connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}
示例6
@Override
public void loadFinish(Object obj) {
//下载完图片后,通知更新
Bundle bundle = (Bundle) obj;
boolean isSmallPic = bundle.getBoolean(DATA_IS_SIAMLL_PIC);
String filePath = bundle.getString(DATA_FILE_PATH);
File newFile = new File(filePath);
JDMediaScannerConnectionClient connectionClient = new JDMediaScannerConnectionClient(isSmallPic,
newFile);
connection = new MediaScannerConnection(this, connectionClient);
connectionClient.setMediaScannerConnection(connection);
connection.connect();
}