Click here to Skip to main content
14,873,169 members
Home / Discussions / Android
   

Android

 
SuggestionRe: Globalization issues with Dates Pin
Richard Deeming7-Jan-20 9:16
mveRichard Deeming7-Jan-20 9:16 
GeneralRe: Globalization issues with Dates Pin
Exoskeletor12-Mar-20 22:58
MemberExoskeletor12-Mar-20 22:58 
QuestionFirebase infinite scroll list view Load 10 items on Scrolling using firebase realtime database "Android Project" Pin
lucas houmga19-Dec-19 22:47
Memberlucas houmga19-Dec-19 22:47 
AnswerRe: Firebase infinite scroll list view Load 10 items on Scrolling using firebase realtime database "Android Project" Pin
Exoskeletor13-Mar-20 1:58
MemberExoskeletor13-Mar-20 1:58 
QuestionHelp me with this simple app. Pin
All Matter25-Nov-19 8:02
MemberAll Matter25-Nov-19 8:02 
SuggestionRe: Help me with this simple app. Pin
David Crow30-Nov-19 4:33
MemberDavid Crow30-Nov-19 4:33 
AnswerRe: Help me with this simple app. Pin
Exoskeletor13-Mar-20 2:09
MemberExoskeletor13-Mar-20 2:09 
QuestionUnmanaged library exception handling Pin
wakeup4424-Nov-19 23:01
Memberwakeup4424-Nov-19 23:01 
Hi,

trying to figure out how exceptions propagate and should be handled.
My Visual Studio 2019 test solution consists of:
1. C++Dynamic Library (.so), Target API Level android-27, exceptions enabled with "-fexceptions" flag
2. Android 9.0 (Pie) test application using library above, in OnCreate method exception handling is added as follows:

AndroidEnvironment.UnhandledExceptionRaiser += (sender, e) => ...
TaskScheduler.UnobservedTaskException += (sender, e) => ...
AppDomain.CurrentDomain.UnhandledException += (sender, e) => ...


When I throw exception in the library:

throw 0xBEEF;


Android application ends execution. No exception is caught.
What I can see in the Android Device Monitor is:

signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '/usr/local/google/buildbot/src/android/ndk-release-r16/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type int" failed'

So it seems that all exceptions should be handled in the C++ code.
In case of external libraries I can write a wrapper and handle exceptions.
Is this is a right way, or did I miss something?
If this is the right way I am looking for a documentation reference confirming it. Assuming there is any.

My test program can be accessed here
https://github.com/wakeup44/TestSample
wakeup


modified 27-Nov-19 4:54am.

QuestionAre BroadcastReciever and ContentObserver killed If Started From Service? Pin
Django_Untaken27-Oct-19 19:15
MemberDjango_Untaken27-Oct-19 19:15 
AnswerRe: Are BroadcastReciever and ContentObserver killed If Started From Service? Pin
Richard MacCutchan27-Oct-19 22:21
mveRichard MacCutchan27-Oct-19 22:21 
QuestionDo you believe that Kotlin will become more popular than Java? Pin
Darina Smartym15-Oct-19 22:28
MemberDarina Smartym15-Oct-19 22:28 
AnswerRe: Do you believe that Kotlin will become more popular than Java? Pin
Afzaal Ahmad Zeeshan28-Oct-19 1:02
mveAfzaal Ahmad Zeeshan28-Oct-19 1:02 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
The_Arcaniac1-Feb-20 23:13
MemberThe_Arcaniac1-Feb-20 23:13 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
Afzaal Ahmad Zeeshan2-Feb-20 7:14
mveAfzaal Ahmad Zeeshan2-Feb-20 7:14 
Questionattach .jar file to already running apk in emulator Pin
Member 1457084310-Oct-19 6:41
MemberMember 1457084310-Oct-19 6:41 
AnswerRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan10-Oct-19 22:10
mveRichard MacCutchan10-Oct-19 22:10 
GeneralRe: attach .jar file to already running apk in emulator Pin
Member 1457084311-Oct-19 0:11
MemberMember 1457084311-Oct-19 0:11 
GeneralRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan11-Oct-19 0:53
mveRichard MacCutchan11-Oct-19 0:53 
AnswerRe: attach .jar file to already running apk in emulator Pin
Leanbridge Technologies21-Nov-19 19:48
professionalLeanbridge Technologies21-Nov-19 19:48 
QuestionNullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 0:52
MemberDjango_Untaken12-Sep-19 0:52 
AnswerRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 1:40
mveRichard MacCutchan12-Sep-19 1:40 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 1:44
MemberDjango_Untaken12-Sep-19 1:44 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 2:24
mveRichard MacCutchan12-Sep-19 2:24 
SuggestionRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
David Crow12-Sep-19 9:22
MemberDavid Crow12-Sep-19 9:22 
QuestionUnRegister BroadcastReceiver Dynamically While Exiting App throws IllegalArgumentException Pin
Django_Untaken12-Sep-19 0:16
MemberDjango_Untaken12-Sep-19 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.