Java Code Examples for com.socks.jiandan.utils.JDMediaScannerConnectionClient#setMediaScannerConnection()

The following examples show how to use com.socks.jiandan.utils.JDMediaScannerConnectionClient#setMediaScannerConnection() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PictureFragment.java    From JianDan_OkHttpWithVolley with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 2
Source File: ImageDetailActivity.java    From JianDan_OkHttpWithVolley with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 3
Source File: PictureFragment.java    From JianDan with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 4
Source File: ImageDetailActivity.java    From JianDan with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 5
Source File: PictureFragment.java    From JianDan_OkHttp with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 6
Source File: ImageDetailActivity.java    From JianDan_OkHttp with Apache License 2.0 5 votes vote down vote up
@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();
}