* Don't show camera options for a file upload that would result in nothing happening for the user. On Android, if the application declares the camera permission, then even intents that use the camera require permission to be granted. This is a problem for apps that combine an in-app camera with a WebView that has file uploading and the user has not given permission for the camera. Note, this will not request permission for camera. This will simply prevent showing the camera options that would be a no-op action for users. It does this by checking if the camera permission is declared, and if so, checks that the user has granted permission. More information: https://blog.egorand.me/taking-photos-not-so-simply-how-i-got-bitten-by-action_image_capture/ * Add example and documentation about camera option availability in file uploads for Android.
|
||
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
35 |
|
|
35 | 36 |
|
36 | 37 |
|
37 | 38 |
|
|
||
180 | 181 |
|
181 | 182 |
|
182 | 183 |
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
188 | 191 |
|
189 | 192 |
|
190 | 193 |
|
|
||
233 | 236 |
|
234 | 237 |
|
235 | 238 |
|
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
236 | 256 |
|
237 | 257 |
|
238 | 258 |
|
|
||
191 | 191 |
|
192 | 192 |
|
193 | 193 |
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
194 | 200 |
|
195 | 201 |
|
196 | 202 |
|
|
||
301 | 307 |
|
302 | 308 |
|
303 | 309 |
|
304 |
|
|
310 |
|
|
305 | 311 |
|
306 | 312 |
|
307 | 313 |
|
|
||
329 | 335 |
|
330 | 336 |
|
331 | 337 |
|
332 |
|
|
338 |
|
|
333 | 339 |
|
334 | 340 |
|
335 | 341 |
|
|
||
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
10 |
|
|
10 | 11 |
|
11 | 12 |
|
12 | 13 |
|
13 | 14 |
|
14 | 15 |
|
16 |
|
|
15 | 17 |
|
16 | 18 |
|
17 | 19 |
|
|
||
38 | 40 |
|
39 | 41 |
|
40 | 42 |
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
41 | 51 |
|
42 | 52 |
|
43 | 53 |
|
|
||
91 | 101 |
|
92 | 102 |
|
93 | 103 |
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
94 | 109 |
|
95 | 110 |
|
96 | 111 |
|
|
||
2 | 2 |
|
3 | 3 |
|
4 | 4 |
|
5 |
|
|
5 | 6 |
|
6 | 7 |
|
7 | 8 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|