Error using PresentationEx on runtime

PresentationEx pres = new PresentationEx(path);
ImageEx img = null;
int slideIndex = 0;
int slideCount = pres.getSlides().getCount();
Log.i(TAG, "Slide count " + slideCount);
for (int i = 0; i < slideCount; i++)
{
slideIndex++;
//Accessing the first slide
SlideEx sl = pres.getSlides().get_Item(i);
boolean flag=false;


for (int j = 0; j < sl.getShapes().getCount(); j++)
{
// Accessing the shape with picture
com.aspose.slides.ShapeEx sh = sl.getShapes().get_Item(j);

if (sh instanceof AutoShapeEx)
{
AutoShapeEx ashp = (AutoShapeEx)sh;
if (ashp.getFillFormat().getFillType() == FillTypeEx.Picture)
{
img = ashp.getFillFormat().getPictureFillFormat().getPicture().getImage();
flag=true;

}
}

else if (sh instanceof PictureFrameEx)
{
PictureFrameEx pf = (PictureFrameEx)sh;
img = pf.getPictureFormat().getPicture().getImage();
flag=true;
}
if(flag)
{
String ImageType = img.getContentType();
ImageType=ImageType.replace("image/", "");

String ImagePath = "/storage/sdcard1/bluetooth/Image_"+Integer.toString(j+1);

android.graphics.Bitmap image=img.getImage();

//create a file to write bitmap data
File f = new File(ImagePath + "_Slide_" + Integer.toString(slideIndex+1) + "." + ImageType);
try {
f.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

//Convert bitmap to byte array
ByteArrayOutputStream bos = new ByteArrayOutputStream();
image.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);
byte[] bitmapdata = bos.toByteArray();

//write the bytes in file
FileOutputStream fos = null;
try {
fos = new FileOutputStream(f);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
fos.write(bitmapdata);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
flag=false;
}
}
}
Log.i(TAG,"Success : ExtractPPTXImages..");

Hi,


I already solved the problem. It’s just the normal application has 16mb max allocation to memory. I configured the manifest file in android so that it will allow more space in memory. See attached file.

Hi Dondell,

I have observed your comments regarding setting the heap to resolve the issue on your end. As far your inquiry concerning to getting slide thumbnail, I regret to share that at present the rendering support is unavailable in Aspose.Slides for Android. An issue with ID SLIDESANDROID-19 has already been added in our issue tracking system to provide the requested support. This thread has been linked with the issue so that you may be automatically notified once the support will be available.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESANDROID-19) have been fixed in this update.