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
<h2id="get-content"><ahref="#get-content">What is GET_CONTENT?</a></h2>
108
-
<p>TODO</p>
108
+
<p>The normal selector now has two variants: the classic picker and the GET_CONTENT picker (you may choose your favourite variant from Settings). The custom selector still remains the same. The app now has 3 pickers:</p>
109
+
<p>
110
+
<ul>
111
+
<li>The classic picker that you may use in the Contributions and Nearby tab</li>
112
+
<center>
113
+
<figure>
114
+
<imgsrc="images/classic_picker.png" height="400">
115
+
<figcaption>Classic Picker</figcaption>
116
+
</figure>
117
+
</center>
118
+
<li>The custom picker that you may use in the Contributions tab</li>
119
+
<center>
120
+
<figure>
121
+
<imgsrc="images/custom_picker.jpeg" height="400">
122
+
<figcaption>Custom Picker</figcaption>
123
+
</figure>
124
+
</center>
125
+
<li>The GET_CONTENT picker that you may try in the Contributions and Nearby tab
126
+
<p>The GET_CONTENT picker varies from device to device:</p>
<figcaption>GET_CONTENT picker with takeover</figcaption>
135
+
</figure>
136
+
</center>
137
+
</li>
138
+
</ul>
139
+
</p>
140
+
141
+
<h4>How is the new GET_CONTENT picker different from the classic picker?</h4>
142
+
<p>Android recently introduced a new photo picker for devices having Android 11 or higher. Unfortunately, this photo picker removes location tags from the EXIF metadata of images. The new photo picker takes over GET_CONTENT on some devices. This means you will see the new photo picker and your pictures might lose location information in the EXIF metadata.</p>
143
+
<p>In order to preserve location information, we decided to go with the system file picker by default for the classic picker and disabled the GET_CONTENT picker.</p>
144
+
145
+
<p>To summarize the advantages and disadvantages:</p>
146
+
147
+
<p><b>GET_CONTENT Picker:</b>
148
+
<ul>
149
+
<li><b>Merits:</b> Lists all image providers as marked in red in the figure above, user-friendly interface.</li>
150
+
<li><b>Demerit:</b> Removes location tags from EXIF metadata on some devices.</li>
151
+
</ul>
152
+
</p>
153
+
<p><b>Classic Picker:</b>
154
+
<ul>
155
+
<li><b>Merit:</b> Preserves location tags on all devices.</li>
156
+
<li><b>Demerit:</b> Only allows selection from within the app and Google Drive, no third-party image providers displayed.</li>
157
+
</ul>
158
+
</p>
159
+
<p>You may like to use the classic picker when:</p>
160
+
<ul>
161
+
<li>You want to share the location information present in the EXIF metadata of the images</li>
162
+
<li>You choose images from within the file picker and do not use any other Gallery app providers</li>
163
+
</ul>
164
+
<p>You may like to use the GET_CONTENT picker when:</p>
165
+
<ul>
166
+
<li>You love sharing images from third-party Gallery apps and other such providers and prefer the existing UI</li>
167
+
<li>You are using a device in which the new photo picker does not take over GET_CONTENT</li>
168
+
<li>You do not wish to share the location information in the EXIF metadata in case GET_CONTENT takeover is enabled on your device.</li>
169
+
</ul>
170
+
171
+
<h4>Can we enjoy the GET_CONTENT picker without takeover?</h4>
172
+
<p>Absolutely yes! You can easily disable the GET_CONTENT takeover on your device by running a simple command. This will enable the app to display all image providers, allowing you to use them within the app.</p>
173
+
<p>To run the adb command, follow these steps:</p>
174
+
<ol>
175
+
<li>Enable developer options and USB debugging on your phone.</li>
176
+
<li>Connect your phone to your computer using a USB cable.</li>
177
+
<li>Open the terminal on your computer.</li>
178
+
<li>To ensure that your phone is connected to the adb server, run the following command:</li>
179
+
<pre><code>adb devices -l</code></pre>
180
+
<li>Once you have confirmed the connection, execute the following command to disable the takeover:</li>
181
+
<pre><code>adb shell cmd device_config put storage_native_boot take_over_get_content false</code></pre>
182
+
</ol>
183
+
<p>Now you can easily access all the image providers without losing picture locations by using the GET_CONTENT picker!</p>
109
184
110
185
<palign="right"><i><ahref="https://github.com/commons-app/commons-app.github.io/blob/master/docs.html">Edit this page</a></i></p>
0 commit comments