- Posts: 1
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
onDestroy callback
IP: 49.36.107.163
4 years 9 months ago #15507
by harkuk1
onDestroy callback was created by harkuk1
Need a onDestroy callback whenever the RadeePdf Activity is destroyed
IP: 111.196.244.51
4 years 9 months ago #15508
by radaee
Replied by radaee on topic onDestroy callback
dear user,
we did not get your mean.
you know, Activity class for Android can Override method onDestroy().
example codes:
we did not get your mean.
you know, Activity class for Android can Override method onDestroy().
example codes:
Code:
@Override
protected void onDestroy() {
RadaeePluginCallback.getInstance().willCloseReader();
if (m_controller != null)
m_controller.onDestroy();
if (m_doc != null) {
m_view.PDFClose();
m_doc.Close();
m_doc = null;
}
if (m_asset_stream != null) {
m_asset_stream.close();
m_asset_stream = null;
}
if (m_http_stream != null) {
m_http_stream.close();
m_http_stream = null;
}
Global.RemoveTmp();
super.onDestroy();
RadaeePluginCallback.getInstance().didCloseReader();
}
IP: 49.36.105.101
4 years 9 months ago #15509
by harkuk2
Replied by harkuk2 on topic onDestroy callback
Okay soo whenever i open a pdf onCreate function is called so i am performing some task and also when I kill the pdf onDestroy method is not being called I need to perform some operation on these 2 methods Like invoke a method from android to react native but onDestroy is not getting called whenever i kill the pdf from the Recent Apps. I checked this method but it is not being called when i kill. The method is called when i press the back button.
IP: 2.234.168.74
4 years 9 months ago #15510
by support
Replied by support on topic onDestroy callback
Dear harkuk2, I suggest also to look at this:
developer.android.com/reference/android/...vity#onDestroy%28%29
developer.android.com/reference/android/...vity#onDestroy%28%29
Time to create page: 0.418 seconds