[mono-android] API 11/12
I am going to develop an application for tablets. So my question is how long will it take until Mono for Android will support API 11 and API 12 respectively? Thanks Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/API-11-12-tp4393702p4393702.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] System.Diagnostics.Trace
Hi, I using assmblies which contain System.Diagnostics.Trace TraceInformation calls. When starting the application on the device the application crashes. Has anyone an idea why? Best Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-Diagnostics-Trace-tp4438533p4438533.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] App crashes
Hi my app crashes often when switching between activities. The logging provides the following message: InputDispatcher channel ….. ~ Consumer closed input channel or an error occurred. Events= 0x8 InputDispatcher channel ….. ~ Channel is unrecoverably broken and will be disposed! Any ideas? Best Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4642075.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] App crashes
There are two warnings: InputManagerService Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy$@41337ce8 InputManagerService Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy$@4148e610 After the tow error messages (InputDispatcher) another error message is logged: InputDispatcher Received spurious received callback for unknown input channel. fd=275, events=0x8 Best Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4642117.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] App crashes
I hope the following log message will help: 07-28 12:18:46.520: INFO/ActivityManager(3355): Starting: Intent { flg=0x1000 cmp=myapp/.activities.Activity2 } from pid 21448 07-28 12:18:47.270: INFO/ActivityManager(3355): Displayed myapp/.activities.Activity2: +744ms 07-28 12:18:48.840: INFO/ActivityManager(3355): Starting: Intent { flg=0x1000 cmp=myapp/.activities.MainActivity } from pid 21448 07-28 12:18:49.930: INFO/ActivityManager(3355): Displayed myapp/.activities.MainActivity: +1s70ms 07-28 12:18:54.610: INFO/ActivityManager(3355): Starting: Intent { act=android.intent.action.MAIN flg=0x10104000 cmp=myapp/.activities.MainActivity } from pid 3410 07-28 12:18:55.270: INFO/ActivityManager(3355): Displayed myapp/.activities.MainActivity: +635ms 07-28 12:18:59.260: WARN/InputManagerService(3355): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41337ce8 07-28 12:19:03.950: WARN/InputManagerService(3355): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4148e610 07-28 12:19:04.730: INFO/ActivityManager(3355): Starting: Intent { flg=0x1000 cmp=myapp/.activities.Activity2 } from pid 21448 07-28 12:19:05.530: INFO/ActivityManager(3355): Displayed myapp/.activities.Activity2: +791ms 07-28 12:19:06.040: INFO/ActivityManager(3355): Starting: Intent { flg=0x1000 cmp=myapp/.activities.MainActivity } from pid 21448 07-28 12:19:06.620: ERROR/InputDispatcher(3355): channel '4171a7e0 myapp/myapp.activities.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 07-28 12:19:06.620: ERROR/InputDispatcher(3355): channel '4171a7e0 myapp/myapp.activities.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 07-28 12:19:06.620: INFO/ActivityManager(3355): Process myapp (pid 21448) has died. 07-28 12:19:06.630: ERROR/InputDispatcher(3355): Received spurious receive callback for unknown input channel. fd=275, events=0x8 07-28 12:19:06.630: INFO/WindowManager(3355): WIN DEATH: Window{4171a7e0 myapp/myapp.activities.MainActivity paused=false} 07-28 12:19:06.630: INFO/WindowManager(3355): WIN DEATH: Window{4146fcb0 myapp/myapp.activities.Activity2 paused=false} 07-28 12:19:06.630: INFO/WindowManager(3355): WINDOW DIED Window{4171a7e0 myapp/myapp.activities.MainActivity paused=false} As you can see I witch between two activities and then the application crashes. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4642237.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] App crashes
I am able to reproduce the error. Following situation: The layout of a list view row is defined as followed: http://schemas.android.com/apk/res/android"; android:layout_height="wrap_content" android:id="@+Id/row" android:layout_width="match_parent" android:weightSum="15" android:orientation="horizontal"> The linear layout (grid) has to be filled dynamic - it depends on the amount of data items. Hence the view is produced somehow in the GetView method of an adapter. The view which is added to the linear layout is like a grid. A similar code like the following is used to create this layout. This layout is added to the linear layout (grid) of the list view row by calling AddView(layout);: var layout = new LinearLayout(this.context) { Orientation = Orientation.Vertical, WeightSum = rows }; for (int row = 0; row < rows; row++) { var view = new LinearLayout(this.context) { Orientation = Orientation.Horizontal, WeightSum = columns }; var layoutParameters = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MatchParent, 1f); for (int i = 0; i < columns; ++i) { view.AddView( new NoteTextView(this.context) { LayoutParameters = layoutParameters, Gravity = GravityFlags.CenterHorizontal, Text = "My text" }); } layout.AddView(view, row); } This code is executed several times but after some time it crashes at line *layout.AddView(view);*. A try catch around this line does not work - no exception. The application crashes with the log messages I posted before. Did I make a mistake? Or is this a problem of Mono for Android? Does anyone has any idea? Best Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4643594.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] App crashes
After investigated four days in finding the bug, I am quite sure that the problem is the garbage collector. After some time (memory was allocated) I tried to call the garbage collector - GC.Collect(). The result is - the application crashes. It is reproducible. I will file a bug report at bugzilla.xamarin.com. Best andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4671942.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] App crashes
When will be the update released. My app does not start any longer. It is still the same message: I am using Mono for Android as part of my master thesis. So please release as fast as you can! Best andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4727534.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] 1.9.2 Packaging - InvalidCastException
Hello, I had the same problem. In my case I added in the AndroidManifest.xml file attributes of the application like Label, Logo. However, I also implemented that information as attributes of my application class and that is the problem (twice the same attributes). So I am removed the attributes in the AndroidManifext.xml file, but you can also remove the attributes of the application class instead in the xml file, both works. Best Andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/1-9-2-Packaging-InvalidCastException-tp4947754p4948331.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] TaskScheduler.FromCurrentSynchronizationContext()
Hi folks, I am trying to use the the SynchronizationContext in order to synchronize background threads with the UI thread. There are a couple of similar examples (cf. http://reedcopsey.com/2009/11/17/synchronizing-net-4-tasks-with-the-ui-thread/ link ) like this working with WPF and Winforms (here I use m4a): Unfortunately, it does not work. The actions, which have to run on the UI thread running on background threads and the button text is not updated. Have anyone an idea? Best andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/TaskScheduler-FromCurrentSynchronizationContext-tp4990662p4990662.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] TaskScheduler.FromCurrentSynchronizationContext()
Thank you Wally, I know RunOnUIThread and of course that works. However I try to build a platform independent library in which I can use the TaskScheduler. Meanwhile I found a working solution for me: I create the TaskScheduler as followed: andi -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/TaskScheduler-FromCurrentSynchronizationContext-tp4990662p4991101.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid