Click here to Skip to main content
15,795,233 members
Home / Discussions / Android
   

Android

 
SuggestionRe: Globalization issues with Dates Pin
Richard Deeming7-Jan-20 10:16
mveRichard Deeming7-Jan-20 10:16 
GeneralRe: Globalization issues with Dates Pin
Exoskeletor12-Mar-20 23:58
Exoskeletor12-Mar-20 23:58 
QuestionFirebase infinite scroll list view Load 10 items on Scrolling using firebase realtime database "Android Project" Pin
lucas houmga19-Dec-19 23:47
lucas houmga19-Dec-19 23:47 
AnswerRe: Firebase infinite scroll list view Load 10 items on Scrolling using firebase realtime database "Android Project" Pin
Exoskeletor13-Mar-20 2:58
Exoskeletor13-Mar-20 2:58 
QuestionHelp me with this simple app. Pin
All Matter25-Nov-19 9:02
All Matter25-Nov-19 9:02 
SuggestionRe: Help me with this simple app. Pin
David Crow30-Nov-19 5:33
David Crow30-Nov-19 5:33 
AnswerRe: Help me with this simple app. Pin
Exoskeletor13-Mar-20 3:09
Exoskeletor13-Mar-20 3:09 
QuestionUnmanaged library exception handling Pin
wakeup4425-Nov-19 0:01
wakeup4425-Nov-19 0: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:

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


When I throw exception in the library:

C++
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 20:15
Django_Untaken27-Oct-19 20:15 
AnswerRe: Are BroadcastReciever and ContentObserver killed If Started From Service? Pin
Richard MacCutchan27-Oct-19 23:21
mveRichard MacCutchan27-Oct-19 23:21 
QuestionDo you believe that Kotlin will become more popular than Java? Pin
Darina Smartym15-Oct-19 23:28
Darina Smartym15-Oct-19 23:28 
AnswerRe: Do you believe that Kotlin will become more popular than Java? Pin
Afzaal Ahmad Zeeshan28-Oct-19 2:02
professionalAfzaal Ahmad Zeeshan28-Oct-19 2:02 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
The_Arcaniac2-Feb-20 0:13
The_Arcaniac2-Feb-20 0:13 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
Afzaal Ahmad Zeeshan2-Feb-20 8:14
professionalAfzaal Ahmad Zeeshan2-Feb-20 8:14 
AnswerRe: Do you believe that Kotlin will become more popular than Java? Pin
Alicia Lim12-Jan-22 0:21
professionalAlicia Lim12-Jan-22 0:21 
Questionattach .jar file to already running apk in emulator Pin
Member 1457084310-Oct-19 7:41
Member 1457084310-Oct-19 7:41 
AnswerRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan10-Oct-19 23:10
mveRichard MacCutchan10-Oct-19 23:10 
GeneralRe: attach .jar file to already running apk in emulator Pin
Member 1457084311-Oct-19 1:11
Member 1457084311-Oct-19 1:11 
GeneralRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan11-Oct-19 1:53
mveRichard MacCutchan11-Oct-19 1:53 
AnswerRe: attach .jar file to already running apk in emulator Pin
Leanbridge Technologies21-Nov-19 20:48
professionalLeanbridge Technologies21-Nov-19 20:48 
QuestionNullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 1:52
Django_Untaken12-Sep-19 1:52 
AnswerRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 2:40
mveRichard MacCutchan12-Sep-19 2:40 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 2:44
Django_Untaken12-Sep-19 2:44 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 3:24
mveRichard MacCutchan12-Sep-19 3:24 
SuggestionRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
David Crow12-Sep-19 10:22
David Crow12-Sep-19 10:22 

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.