Code example for Parcel

Methods: createStringArray

0
 
	private static final int PLUGIN = 1;
	private static final int INVALID_TAG = -1;
 
	private Config(Parcel in) {
		setPluginsArray(in.createStringArray());
		setPreboundPluginsArray(in.createStringArray());
	} 
 
	private String[] getPluginsArray() {
		return mPlugins.toArray(new String[mPlugins.size() - 1]);
	} 
 
	private String[] getPreboundPluginsArray() {
		return mPreboundPlugins.toArray(new String[mPlugins.size() - 1]);
	} 
 
	private void setPluginsArray(String[] plugins) {
		setStringArray(plugins, mPlugins);
	}