https://bugzilla.novell.com/show_bug.cgi?id=675871
https://bugzilla.novell.com/show_bug.cgi?id=675871#c0 Summary: Android.Net.ConnectivityManager ActiveNetworkInfo.IsConnectedOrConnecting's method is crashing in P13 Classification: Mono Product: MonoDroid Version: unspecified Platform: PC OS/Version: Windows 7 Status: NEW Severity: Major Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Customer Blocker: No Created an attachment (id=416737) --> (http://bugzilla.novell.com/attachment.cgi?id=416737) Attached project of the bug report: ActiveNetworkInfo.IsConnectedOrConnecting's method is crashing in P13 Description of Problem: Sometimes when i try to read the property ActiveNetworkInfo.IsConnectedOrConnecting (bool) of the object Android.Net.ConnectivityManager, my app starts crashing.. Im trying to check if my app has internet access. The project that i attached to this bug report, the app is always crashing, i tested in the UI thread, and in a separate thread, the results are the same. Steps to reproduce the problem: 1. Compile the project attached to this bug report. 2. Run the app. (i tested in my real device without debug) 3. Click in the button with text "Hello World, Click Me!". 4. Check your device's logcat, this sample will attempt 5 times to check if the user has internet access. Actual Results: The logcat show 5 times the same error: " D/ConnectivityManager(25488): (0 attempt /5) E/mono (25488): [0x2712d8:] EXCEPTION handling: Java.Lang.SecurityException: Exception of type 'Java.Lang.SecurityExc eption' was thrown. D/ConnectivityManager(25488): Java.Lang.SecurityException: Exception of type 'Java.Lang.SecurityException' was thrown. D/ConnectivityManager(25488): at Android.Runtime.JNIEnv.CallObjectMethod (IntPtr jobject, IntPtr jmethod) [0x00000] in <filename unknown>:0 D/ConnectivityManager(25488): at Android.Net.ConnectivityManager.get_ActiveNetworkInfo () [0x00000] in <filename unkno wn>:0 D/ConnectivityManager(25488): at MonodroidConnectivityManagerBugReport.Activity1.RemoteHostStatus () [0x00000] in <fil ename unknown>:0 D/ConnectivityManager(25488): NotReachable " Expected Results: The logcat should not show any error, only the message that says if the user has internet access or not. How often does this happen? Everytime. Additional Information: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
