Java tutorial
//package com.java2s; //License from project: Apache License import android.content.ClipData; public class Main { /** Empty String array */ public final static String[] EMPTY_STR_ARRAY = new String[0]; private static ClipData emptyClip; /** * Return an instance of {@link ClipData} with empty data. * @return empty ClipData instance */ public static ClipData getEmptyClipData() { if (emptyClip == null) { ClipData.Item item = new ClipData.Item((String) null); emptyClip = new ClipData(null, EMPTY_STR_ARRAY, item); } return emptyClip; } }