You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,8 @@ public class MainActivity extends AppCompatActivity implements PickiTCallbacks {
65
65
setContentView(R.layout.activity_main);
66
66
67
67
//Initialize PickiT
68
-
pickiT =newPickiT(this, this);
68
+
//context, listener, activity
69
+
pickiT =newPickiT(this, this, this);
69
70
70
71
}
71
72
}
@@ -124,6 +125,16 @@ Callback methods
124
125
---
125
126
126
127
```java
128
+
//When selecting a file from GoogleDrive, 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
+
publicvoidPickiTonUriReturned() {
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
+
127
138
//Called when the file creations starts (similar to onPreExecute)
128
139
//This will only be called if the selected file is not local or if the file is from an unknown file provider
0 commit comments