Update to follow API.

Also a new list demo.

Change-Id: I0c59fc6f50009fcba183f0b5af61ec50d5888240
This commit is contained in:
Dianne Hackborn
2010-10-26 12:47:13 -07:00
parent ca04e3adec
commit b252273014
3 changed files with 65 additions and 1 deletions

View File

@@ -118,7 +118,7 @@ public class ClipboardSample extends Activity {
void updateClipData() {
ClipData clip = mClipboard.getPrimaryClip();
String[] mimeTypes = clip != null ? clip.filterMimeTypes("*/*") : null;
String[] mimeTypes = clip != null ? clip.getDescription().filterMimeTypes("*/*") : null;
mMimeTypes.setText("");
if (mimeTypes != null) {
for (int i=0; i<mimeTypes.length; i++) {