Re: [mono-android] Getting the xml file for a view resoruce

2011-11-30 Thread Atsushi Eno
Our XmlReader-based mapping will be available *after* the next release. Though there are things to note; we cannot provide features that Android does not provide. For example, I noticed that GetLayout() returns an XmlResourceParser implementation that does not support lots of namespace processi

Re: [mono-android] PropertyInfo on a public property coming back as read only?

2011-11-30 Thread Josh Handel
Thank you! That was it.. looking at the UI project it was somehow set to Link all assemblies.. backed it off to SDK only and all we well again :-). Josh -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor S

Re: [mono-android] PropertyInfo on a public property coming back as read only?

2011-11-30 Thread Jonathan Pryor
On Nov 30, 2011, at 10:04 PM, Josh Handel wrote: > Would return false to PropertyInfo.CanWrite in Mono for Android when using > reflections like this? I'm going to guess that this is a Release build. If that's the case, then the setter was removed by the linker (because it wasn't used from anywh

[mono-android] PropertyInfo on a public property coming back as read only?

2011-11-30 Thread Josh Handel
So anyone have any idea why this object public class UserCode { public int UserCodeId { get; set; } public int UserId { get; set; } public int EventId { get; set; } public string Code { get; set; } } Would return false to PropertyInfo.CanWrite in Mono for A

Re: [mono-android] Is it possible to use java.util.concurrent.CountDownLatch in Mono for Android?

2011-11-30 Thread Jonathan Pryor
On Nov 8, 2011, at 1:48 AM, Builder wrote: > Thanks for answer. Can you direct me to some example how to use > Android.Runtime.JNIEnv? Unfortunately I haven't published any significant demos of JNI use, but I can refer you to: http://docs.xamarin.com/android/advanced_topics/api_design#

Re: [mono-android] fragments

2011-11-30 Thread Wally McClure
Thanks Jon. Yeah, I resolved this. Basically, the next morning, when I came in, it all worked. The only conclusion I could come to was "user error." Wally > From: j...@xamarin.com > Date: Wed, 30 Nov 2011 19:11:45 -0500 > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] fragments

Re: [mono-android] What Debugger isn't Slow?

2011-11-30 Thread Sayed Arian Kooshesh
also, what kind of hard drive do you use? How much ram do you have. The hd speed can vastly effect such things as can the quality of your ram. Trying looking at gaming machines. They are built for speed, and coincidentally, faster debugging. I know the "freeze" in normal development all too well.

Re: [mono-android] Resource Question

2011-11-30 Thread Jonathan Pryor
On Nov 16, 2011, at 5:28 PM, Aaron Knabb wrote: > So I have a library responsible for switching from activity to activity > within my application. Thing is, I can't figure out a way to define > animations for those activities within that library. If I try to use xml to > define them, I cannot cr

Re: [mono-android] fragments

2011-11-30 Thread Jonathan Pryor
You may have figured this out already, but... On Nov 17, 2011, at 12:25 PM, Wally McClure wrote: > I'm doing some stuff in Honeycomb and have run into two issues with > fragments. > • RunOnUIThread. Is this available in a fragment? There's a Fragment.Activity property: http://a

Re: [mono-android] What Debugger isn't Slow?

2011-11-30 Thread Jonathan Pobst
The speedup fixes that were done will speed up debugging on the emulator the same as the device. However, running an app without debugging on the emulator is nearly unbearable, and debugging will always be slower, so there's not much room to work with. Jonathan On 11/30/2011 5:23 PM, Josh Ha

Re: [mono-android] What Debugger isn't Slow?

2011-11-30 Thread Josh Handel
So 45 seconds per press of f10 and longer to see my local variables is the best I can expect moving forward when debugging in the emulator? Josh -Original Message- From: Jonathan Pobst [mailto:mon...@jpobst.com] Sent: Wednesday, November 30, 2011 5:22 PM To: Discussions related to Mono

Re: [mono-android] What Debugger isn't Slow?

2011-11-30 Thread Jonathan Pobst
The upcoming release (soon!) should have all known instances of the debugger being slow fixed. If you still have a test case where the debugger is slow on it, please let us know. Note this is for debugging on devices. Doing *anything* is slow on the emulator, and debugging has to do a lot of

[mono-android] What Debugger isn't Slow?

2011-11-30 Thread jhandel
Guys, Which of the versions of Mono for Android on VS2010 or Windows MonoDevelop aren't slow? I heard that some are speed up.. but 1.9.2 is Crazy crazy slow.. so if I don't want to wait a minute or more between presses of f10 what version should I be using? Thanks! Josh -- View this message in

Re: [mono-android] Strange InvalidCastException

2011-11-30 Thread Jonathan Pryor
This has been filed as: http://bugzilla.xamarin.com/show_bug.cgi?id=2147 Thanks, - Jon On Nov 18, 2011, at 6:34 AM, uh wrote: > Hello, > > I receive a InvalidCastException, that I cannot understand in the following > codes: > > try > { > Android.Runtime.JavaList> jl = new > And

[mono-android] occasionally something falls my way

2011-11-30 Thread Wally McClure
FYI, a while back, I was asking a lot of questions regarding not being able to get my android device to connect to my macbook pro. After much searching, I found the issue. Easy tether was the problem. Basically, here's the solution - http://www.intohand.com/blog/?p=116. Many thanks to a fri

Re: [mono-android] Events for date and time picker

2011-11-30 Thread Jonathan Pryor
On Nov 19, 2011, at 8:38 PM, Paul F. Johnson wrote: > Should I still be using a listener and if so, how? Yes, set via the DatePicker.Init() method: http://androidapi.xamarin.com/monodoc.ashx?link=M%3aAndroid.Widget.DatePicker.Init(System.Int32%2cSystem.Int32%2cSystem.Int32%2cAndroid.Widg

Re: [mono-android] I'm just not getting this - why is it a null reference?

2011-11-30 Thread Jonathan Pryor
On Nov 20, 2011, at 6:13 PM, Paul F. Johnson wrote: > I then try and retrieve the data using the following and it gives me a > null reference... > > EditText editText = FindViewById(Resource.Id.tempSurround); > if (editText.Text == "") > { > // fail > } FindViewById() will return null if you have

Re: [mono-android] Drag and Drop a graphical object sample code/tutorial?

2011-11-30 Thread Jonathan Pryor
On Nov 19, 2011, at 8:27 AM, Amir Waldman wrote: > I'm looking for a piece of code that shows how to easily drag a graphical > object with your finger from point A to point B while having a background > image behind. All I can suggest is porting the tutorial to C#: http://developer.and

Re: [mono-android] Stacktrace generated from System.IO.Stream.CopyTo with 1.9.2

2011-11-30 Thread Jonathan Pryor
On Nov 18, 2011, at 7:49 AM, HSSoftware wrote: > *This is probably related to other stream issues reported, but it would be > very interesting to know why a 'Stacktrace:' is being generated at line 282 > of System.IO.Stream.cs (in 1.9.2).* Given the plethora of varying stack traces, let's go with

Re: [mono-android] tabbed interface with fragment

2011-11-30 Thread Wally McClure
Thanks Jon. I was able to get this working. Wally> From: j...@xamarin.com > Date: Wed, 30 Nov 2011 14:07:35 -0500 > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] tabbed interface with fragment > > Any chance you could file a bug with the project? I don't know what Frag1 or > F

Re: [mono-android] SocketError.TimedOut

2011-11-30 Thread tsukrov
Thanks for the answer. Nope, it's not a HTTP-connection. It's a custom socket connection. It's something like that (pseudo code): {... socket.Completed += OnRecv; socket.ReceiveAsync(); ..} void OnRecv(args) { if(args.SocketError != NoError) { HandleData(); socket.ReceiveAs

Re: [mono-android] tabbed interface with fragment

2011-11-30 Thread Jonathan Pryor
Any chance you could file a bug with the project? I don't know what Frag1 or Frag2 are supposed to be, nor do I know what Resource.Layout.ab is supposed to be, etc. Thanks, - Jon On Nov 21, 2011, at 11:06 AM, Wally McClure wrote: > I'm trying to write a simple example using a tabbed interface

Re: [mono-android] Passing a class between classes

2011-11-30 Thread Jonathan Pryor
Just to get the answer on the mailing list: http://stackoverflow.com/a/8221373/83444 On Nov 21, 2011, at 1:51 PM, Paul F. Johnson wrote: > I have a standard winform which looks like this (in part) > > namespace marker > { > public class xmlhandler : Form, Isettings > { >

Re: [mono-android] CommonApplicationData Access Denied

2011-11-30 Thread Jonathan Pryor
On Nov 22, 2011, at 11:55 AM, Steve Sharrock wrote: > I'm trying to write a common file that three of our MonoDroid applications > can all read/write. I tried the following directory: > > string p = System.Environment.GetFolderPath( > System.Environment.SpecialFolder.CommonApplicationData ); A

Re: [mono-android] Startup Performance

2011-11-30 Thread Jonathan Pryor
On Nov 24, 2011, at 6:36 AM, Steven Pack wrote: > Splash screen helps, but it really gives a bad impression for a user (and > client!). Any tips for how to minimise startup time? Do as little as possible within Activity.OnCreate(). :-) The next release will help with startup time, trimming off o

Re: [mono-android] IntentFilter to match Intents from hrefs of the form blah

2011-11-30 Thread Jonathan Pryor
On Nov 20, 2011, at 8:13 AM, Steven Pack wrote: > I have an activity defined thus: > > > [Activity (Label = "My App")] > [IntentFilter (new[]{Intent.ActionView}, > DataScheme="", > DataHost="", > DataPath="/")] > public class MyActivity : Activity > {}

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Yes. I am using ThreadPool.QueueUserWorkItem to do the work in the background while I show a progress bar. Wow, glad to hear. What is the issue? When is the next release. Thanks Jonathon!!! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Exceptions-not-gettin

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread Jonathan Pryor
On Nov 30, 2011, at 11:21 AM, klimaye wrote: > Here is what the app is doing in Pseudo code > > a. Get list of tables to create from web service (json) > b. For every table in the list ( > i. Create the table > ii. Pull the records (also json string) > iii. save records to db Q: Do

Re: [mono-android] Remote Service Invocation

2011-11-30 Thread Jonathan Pryor
On Nov 24, 2011, at 9:50 AM, Venky wrote: > I search a lot and found this example. > http://stackoverflow.com/questions/6365273/monodroid-for-android-service > > How can another apk consume the music service? Depends on how, exactly, you want to consume the Service. For the sample code at [0], y

Re: [mono-android] Test on Real Device before paying for a licence?

2011-11-30 Thread Jonathan Pryor
On Nov 25, 2011, at 6:46 AM, was wrote: > Well, my app takes 6 secs to start up on my ZTC San Francisco. How long does a Release build of HelloWorld [0] take to launch for you? This is the minimum startup time you can expect to see. For example, on my Nexus One, Mono for Android 1.2: I/

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Jonathon thanks for the response. Here is what the app is doing in Pseudo code a. Get list of tables to create from web service (json) b. For every table in the list ( i. Create the table ii. Pull the records (also json string) iii. save records to db What I am noticing is that

Re: [mono-android] Test on Real Device before paying for a licence?

2011-11-30 Thread Jonathan Pryor
On Nov 22, 2011, at 3:30 PM, adshead wrote: > Is there any way to test the performance of Monodroid on a real device BEFORE > paying for a full licence? Not at this time, but it is something we are considering for a future version of Mono for Android. Thanks, - Jon ___

Re: [mono-android] SocketError.TimedOut

2011-11-30 Thread Jonathan Pryor
On Nov 28, 2011, at 6:41 AM, tsukrov wrote: > Acer A500 Android 3.2 - TimeOut Error after 5-10 seconds. No matter how > Socket was configured. > Is it a bug in Mono? > Or Acer Drivers? I would suggest that you try the same URL within Browser, and see how that works. If it's an https URL, it could

Re: [mono-android] SocketError.TimedOut

2011-11-30 Thread Jonathan Pryor
On Nov 25, 2011, at 8:23 AM, tsukrov wrote: > I'm receiving often a *SocketError.TimedOut* from *ReceiveAsync* in a > multi-threaded Mono App on Android 3.2. > Android 2.1 & Android 2.3 works fine. Have you tried opening the same URL from Browser? Does it load in Browser as well? I'm not aware o

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread Jonathan Pryor
On Nov 21, 2011, at 11:15 AM, klimaye wrote: > I am trying to download json data in a background task. I am noticing that > when I get the following exception, the control never comes in the > ContinueWith block and the progress dialog is stuck making the app unusable. > I have tried using the Th

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

2011-11-30 Thread Jonathan Pryor
On Nov 24, 2011, at 7:44 AM, Narcís Calvet wrote: > Has this been fixed? I'm having problems compressing a bitmap as shown in > the method below. DecodeStream returns null and I wonder if it's due to: It's a bug in your code. When you write to a stream, the Position of the stream is at end-of-str

Re: [mono-android] Exceptions not getting caught on thread

2011-11-30 Thread klimaye
Guys, Is any work being done in the 2.0 release to make sure framework level exceptions get caught in the catch blocks? Currently I have the StringBuffer and ASCII.Encoding.GetString method intermittently throwing unnamed exceptions and freezing the app. Please help and advice. http://stackover

Re: [mono-android] addins to VS

2011-11-30 Thread klimaye
using Resharper with Monodroid. Have noted that VS crashes intermittently and restarts. I do all my debugging via logcat and not the VS debugger so not sure what causes it crash and restart. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/addins-to-VS-tp5033329p5

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

2011-11-30 Thread Narcís Calvet
Any update on the email below? Thanks in advance, Narcís Calvet -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Narcís Calvet Sent: dijous, 24 / novembre / 2011 13:45 To: 'Discussions related to Mono for Android' Subject