Skip to content

Commit 4f8269b

Browse files
authored
Update README.md
1 parent 7b307f5 commit 4f8269b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public class MainActivity extends AppCompatActivity implements PickiTCallbacks {
6565
setContentView(R.layout.activity_main);
6666

6767
//Initialize PickiT
68-
pickiT = new PickiT(this, this);
68+
//context, listener, activity
69+
pickiT = new PickiT(this, this, this);
6970

7071
}
7172
}
@@ -124,6 +125,16 @@ Callback methods
124125
---
125126

126127
```java
128+
//When selecting a file from Google Drive, for example, the Uri will be returned before the file is available(if it has not yet been cached/downloaded).
129+
//We are unable to see the progress since Google Drive doesn't provide it to us
130+
//Apps like Dropbox will display a dialog inside the picker
131+
//This will only be called when selecting a drive file
132+
@Override
133+
public void PickiTonUriReturned() {
134+
//Use to let user know that we are waiting for the application to return the file
135+
//See the demo project to see how I used this.
136+
}
137+
127138
//Called when the file creations starts (similar to onPreExecute)
128139
//This will only be called if the selected file is not local or if the file is from an unknown file provider
129140
@Override

0 commit comments

Comments
 (0)