All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.specific.android.ImagesPath Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.0
Show newest version
package com.genexus.specific.android;

import java.io.InputStream;

import com.artech.base.services.AndroidContext;
import com.genexus.common.interfaces.IExtensionImagesPath;

public class ImagesPath implements IExtensionImagesPath {

	@Override
	public InputStream getInputStream(String kBId) {
		InputStream is = null;
		String fileName = com.genexus.ImagesPath.RESOURCENAME.replace(".", "_").toLowerCase();
		int id = AndroidContext.ApplicationContext.getResource(fileName, "raw"); //$NON-NLS-1$
		if (id != 0)
			is = AndroidContext.ApplicationContext.openRawResource(id);
		else	
			is = AndroidContext.ApplicationContext.getResourceStream(fileName, "raw"); //$NON-NLS-1$
		return is;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy