Share Share
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

How do you delete an outline in Android? 10 years 11 months ago #8586

  • gtoldosProton
  • gtoldosProton's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

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

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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.

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

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

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
others: remove parent Outline, shall cause all children not aviable.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum