com.genexus.specific.android.ImagesPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxandroid Show documentation
Show all versions of gxandroid Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
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