Re: [mono-android] Unable to debug with physical devices in 1.9

2011-09-30 Thread Jonathan Pobst
Fixed for the next preview. Thanks again for the detective work, made it easy to find the bug! Jonathan On 9/29/2011 11:41 PM, SRI wrote: > HI, > I created a New Application Project and set a Break Point > and was able to debug on device. > > When I set the Mono Andro

Re: [mono-android] How to create "Quick Actions" and "Context Menu" for ListView

2011-09-30 Thread Jonathan Pryor
On Sep 30, 2011, at 3:55 AM, Rashmi Agarwal wrote: > Then, I tried to use Contextual Menu using the below code : > > public override void onCreateContextMenu(IContextMenu menu, View v, > IContextMenuContextMenuInfo menuInfo) { > if (v.Id == Resource.Id.lvOrders) {

Re: [mono-android] Unhandled Exception Handling

2011-09-30 Thread Jonathan Pryor
On Sep 30, 2011, at 6:23 AM, Andrew Sinclair wrote: > I get an error like: > 08-19 14:47:29.307: ERROR/mono(20475): Unhandled Exception: > System.InvalidCastException: Cannot cast from source type to destination type. Oops; mea culpa. This will be fixed in the next release. - Jon

Re: [mono-android] Implementing BaseAdapter

2011-09-30 Thread Jonathan Pryor
What's the exact exception that you're getting, complete with stack trace? Also, most code I've seen uses `LayoutInflater.Inflate(...)`, not `LayoutInflater.From(context).Inflate(...)`. Could you try skipping the `LayoutInflater.From(context)` call and use `LayoutInflater.Inflate()` instead? Th

Re: [mono-android] Trouble with Android.Graphics

2011-09-30 Thread Jonathan Pryor
The one issue I know of with HttpWebRequest is that ~everything related to it _must_ be disposed of in an orderly fashion, as having multiple requests "in flight" at once tends to make things break. See also the epic comment at: https://bugzilla.novell.com/show_bug.cgi?id=648862#c9 For

[mono-android] Implementing BaseAdapter

2011-09-30 Thread Tomasz Cielecki
Hello there, I am trying to implement the BaseAdapter to use with my Spinner, as the data I want to bind to it is not just a string array. So I am attempting to implement it, but it keeps throwing an exception that the LayoutInflaters Inflate method is an Unkown Member. My GetView method looks li

Re: [mono-android] Trouble with Android.Graphics

2011-09-30 Thread Andrew Sinclair
OK, thanks for the clarification. That freeze happens during a session of HttpWebRequests. The "stacktrace:" message shown sometimes indicates that the crash is within WebAsyncResult.AB but more usually it's within the processing (eg. decompression) of the response. So I wondered whether a stream-

Re: [mono-android] Trouble with Android.Graphics

2011-09-30 Thread Jonathan Pryor
On Sep 30, 2011, at 4:58 AM, Andrew Sinclair wrote: > Given that this is a general stream-related issue, could it be causing the > random issues I've seen around HttpWebRequests? > (http://bugzilla.xamarin.com/show_bug.cgi?id=1031) It's not stream-related, it's wrapped-java-stream related. HttpWeb

Re: [mono-android] top 5 in Honeycomb/ICS

2011-09-30 Thread musicm122
Agreed with the *Fragments *also, I love me some baked in* Action Bar *goodness. I'm not really sure what Ice cream sandwich brings to the table other then a unified UX which may or may not make the design aspect easier. -- View this message in context: http://mono-for-android.1047100.n5.nabb

Re: [mono-android] Unable to debug with physical devices in 1.9

2011-09-30 Thread Elan Hasson
I can confirm that Linking was my issue. On Fri, Sep 30, 2011 at 12:53 AM, Jonathan Pobst wrote: > Actually, this helps a lot. Building packages with linking sends things > down a very different code path. Linking is generally only used with > Release mode, so debugging with linking isn't test

[mono-android] Unhandled Exception Handling

2011-09-30 Thread Andrew Sinclair
Hello, Is anybody successfully using AndroidEnvironment.UnhandledExceptionRaiser? I get an error like: 08-19 14:47:29.307: ERROR/mono(20475): Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. 08-19 14:47:29.307: ERROR/mono(20475): at Android.Run

Re: [mono-android] Trouble with Android.Graphics

2011-09-30 Thread Andrew Sinclair
Jon, Given that this is a general stream-related issue, could it be causing the random issues I've seen around HttpWebRequests? (http://bugzilla.xamarin.com/show_bug.cgi?id=1031) Thanks, Andy -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.xim

[mono-android] How to create "Quick Actions" and "Context Menu" for ListView

2011-09-30 Thread Rashmi Agarwal
HI, I tried creating "Quick Actions" but couldn't find any helpful documentation for it. Then, I tried to use Contextual Menu using the below code : * public override void onCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) {* * if (v.Id == Resource.Id.lvO