RadaeePDF.com :: Topic: How do you delete an outline in Android? (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: How do you delete an outline in Android?

How do you delete an outline in Android? 2 years 6 months ago #8586

I have this code inside a method.... outline.RemoveFromDoc(); works in the beggining but after several times it gives me a
02-26 17:14:43.098: A/libc(5454): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1), thread 5454 (com.xxxxxx)

This is kind of the same problems I have found with iOS.... and that hopefully will be fixed in the version you just released.
@Override
public void onRemove(int outlineIndex) {
Outline outline = mBookmarkFragment.getOutline(outlineIndex);
if (outline != null) {
outline.RemoveFromDoc();
refreshOutLines();
}
}
};

thanks for your attention and good support
The administrator has disabled public write access.

How do you delete an outline in Android? 2 years 6 months ago #8594

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
seems no method mBookmarkFragment.getOutline(outlineIndex);
if u stored outlines in an array:
remove Outline object element at array.
and then modified all index value for all outlines in array.
example: 10 outlines, u removed index at 5, outline 6 to be 5, 7 to be 6 and so on.
Last Edit: 2 years 6 months ago by radaee.
The administrator has disabled public write access.

How do you delete an outline in Android? 2 years 6 months ago #8595

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
others: remove parent Outline, shall cause all children not aviable.
The administrator has disabled public write access.
Powered by Kunena Forum