[mono-android] getting a picture from the camera

2011-07-26 Thread Wally McClure
I'm trying to start the camera application and get an image back. I think I should be able to get the image back in the OnActivityResult method. Unfortunately, I am missing something as I don't seem to get anything back. All of what look to be the interesting pieces of the data Intent see

[mono-android] Mono Track at Philly.NET Code Camp

2011-07-26 Thread Brian Donahue
Hello everyone, I'm the organizer of the Philly ALT.NET group and we run a track at the semi-annual Philly.NET Code Camp which is one of the largest - if not the largest - code camps in the US, with 800+ registrants, and 500+ attendees. I'm always looking to "push the envelope" at code camp since

Re: [mono-android] install mono on device error

2011-07-26 Thread Wally McClure
Yes, thanks. I found a SO answer by Jon Pryor that lead me to that as well. Problemo solved! Wally > Date: Tue, 26 Jul 2011 19:51:59 -0500 > From: mon...@jpobst.com > To: monodroid@lists.ximian.com > CC: theevilprogram...@hotmail.com > Subject: Re: [mono-android] install mono on device error >

Re: [mono-android] install mono on device error

2011-07-26 Thread Jonathan Pobst
I think it means there is not enough free space on the device, nor is there an SD Card where the runtime can be installed. (The runtime is now marked as can be placed in internal memory or the sd card.) Jonathan On 7/26/2011 7:25 PM, Wally McClure wrote: > I'm getting this strange error when

[mono-android] install mono on device error

2011-07-26 Thread Wally McClure
I'm getting this strange error when I try to install mono on a device. Hopefully someone has seen it and can point me in the correct direction. Error:MonoDroid.InstallFailedException pkg/data/local/tmp/Mono.Android.DebugRuntime-debug.apkFailure [INSTALL_FAILED_MEDIAL_UNAVAIABLE]

Re: [mono-android] Sync Adapter and Account Authenticator Services

2011-07-26 Thread BarryJohnston
OK, next problem in this never ending saga: I managed to solve my resource issue and then the next issue that came up after that, but now I'm stuck again. I'm trying to add an account using the Dev Tool / Account Tester. I can select my Account Type but when I choose the Add button, I get the fo

[mono-android] File viewer

2011-07-26 Thread Tim Kelly
Ok, this might to oblivious, but I cannot seem to be able to figure it out. My application writes information to a file, so I want to view the contents of that file. So how do you view files in the emulator?? Thanks Tim ___ Monodroid mailing list

Re: [mono-android] ID

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 11:17 AM, Tim Kelly wrote: > I created a static class that has a property call serialNumber. I make > the call and just stick the serial number into the static class. That > shouldn't be an issue, there's not issues with static classes are there? That should be fine. The iss

Re: [mono-android] ID

2011-07-26 Thread Tim Kelly
I created a static class that has a property call serialNumber. I make the call and just stick the serial number into the static class. That shouldn't be an issue, there's not issues with static classes are there? Thanks -Original Message- From: monodroid-boun...@lists.ximian.com [mailt

Re: [mono-android] Auto start

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 10:46 AM, Tim Kelly wrote: > Does anyone have an example of starting an application automatically? I've > built an application that has a service but I need to start it automatically > when the device starts. Can this be done using the Mono environment? Yes, this can be don

Re: [mono-android] ID

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 10:56 AM, Tim Kelly wrote: > Ok, I'll look at that. I called it when the application starts and > stuck it in a static class for now. Thanks, I'll look at passing it. DO NOT stick an Activity into a static variable -- that way leads to memory leaks. If you need a static Con

Re: [mono-android] ID

2011-07-26 Thread Tim Kelly
Ok, I'll look at that. I called it when the application starts and stuck it in a static class for now. Thanks, I'll look at passing it. Thanks -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor Sent: Tuesda

Re: [mono-android] ID

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 10:35 AM, Tim Kelly wrote: > And what if I'm outside these, which seems to be my issue. I have the > Activity call a service class which starts a background tread. In this > background I'm calling another class to populate properties and > ContentResolver gives me an error 'And

[mono-android] Auto start

2011-07-26 Thread Tim Kelly
Does anyone have an example of starting an application automatically? I've built an application that has a service but I need to start it automatically when the device starts. Can this be done using the Mono environment? Thanks. Tim ___ Monodroid m

Re: [mono-android] Mono code as Android Service and IPC speed estimations

2011-07-26 Thread Igor Russkih
> > > Mono runs threads by using the Linux kernel (pthread_create(), etc.). > > Thanks, the above statement actually answers my question. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listi

Re: [mono-android] ID

2011-07-26 Thread Tim Kelly
And what if I'm outside these, which seems to be my issue. I have the Activity call a service class which starts a background tread. In this background I'm calling another class to populate properties and ContentResolver gives me an error 'Android.Content.ContentResolver' is a 'type' but is used l

Re: [mono-android] Previews

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 8:32 AM, milop wrote: > What preview is this product currently at? Mono for Android is no longer releasing previews, we have actual releases. The current release is 1.0.1. - Jon ___ Monodroid mailing list Monodroid@lists.ximian.co

Re: [mono-android] ID

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 9:31 AM, Tim Kelly wrote: > Android.Provider.Settings.Secure.GetString( , > Android.Provider.Settings.Secure.AndroidId); > > What actually goes where the are? `` is a ContentResolver instance, which you can obtain via the Context.ContentResolver pr

[mono-android] ID

2011-07-26 Thread Tim Kelly
Android.Provider.Settings.Secure.GetString( , Android.Provider.Settings.Secure.AndroidId); What actually goes where the are? I can not seem to figure this out. I have a class build and I need to populate a unique serial number for the device. Thanks, Tim

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 9:25 AM, Jeff Stedfast wrote: > This was something we discussed fixing last week. I think Kumpera committed a > few fixes related to this (to at least spew an exception to the console or > something) instead of just abort()ing. Our abort() code also prints a stack trace/etc.

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Jeff Stedfast
This was something we discussed fixing last week. I think Kumpera committed a few fixes related to this (to at least spew an exception to the console or something) instead of just abort()ing. My memory is a bit vague, but I think the situation will be improving in the next MonoTouch and Mono-for-An

Re: [mono-android] profiling and other tools in monotouch/droid

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 9:14 AM, Wally McClure wrote: > What types of tools are available for monotouch/droid beyond just using > VS/monodevelop for debugging? While I was at monospace, there was talk about > being able to profile. There was talk of Mono 2.10 having profiling _support_ -- it has th

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Greg Shackles
I've seen crashes like this as well. Redoing the same sequence of events after restarting the app won't repro the error. Judging from the error messages I've seen, it looks to be GC related (for mine at least, but it seems to line up with what you're saying too). I talked to some of the guys on the

[mono-android] profiling and other tools in monotouch/droid

2011-07-26 Thread Wally McClure
What types of tools are available for monotouch/droid beyond just using VS/monodevelop for debugging? While I was at monospace, there was talk about being able to profile. Are you able to use the apple tools for profiling? I thought that the apple tools were incompatible with monotouch due t

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Greg Shackles
I've run into a situation where I've seen mono abort due to a failed assertion, and in logcat I was able to see the error message along with the C file/line where the assertion failed, so you definitely get some log help there (at least in what I've seen). I'll be filing a bug with a repro case for

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Wally McClure
Absolutely. The problem I have run into is getting the repro case. I get situations where things "die." I'll restart debugging the application and it will work other times. Basically, I think that there are a bunch of things going on that are leading to the app being aborted. Wally > From:

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 8:30 AM, Wally McClure wrote: > To add to this, I have also seen issues where something happens in the try > part of the try-catch and nothing is caught. The explanation for this is straightforward: the mono runtime aborted. No exception is thrown for most of mono's abort co

Re: [mono-android] ZeroConfig in Monodroid

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 4:12 AM, was wrote: > My Android app is now complete except fror the ability to transfer an SQLite > file to/from PC's. Any update to the inclusion of this capability in Xamarin > V1? Are some Android APIs missing that permit this functionality? Aside from setting up directory

Re: [mono-android] Mono code as Android Service and IPC speed estimations

2011-07-26 Thread Jonathan Pryor
On Jul 26, 2011, at 4:12 AM, Igor Russkih wrote: > BTW, could you give some insight into System.Threading.Thread usage.. As I > understand monodroid arch now - for dalvik its a kind of JNI layer (working > eventually as a .net vm). How then its possible to run native .net threads in > there? How

[mono-android] Previews

2011-07-26 Thread milop
Hello, What preview is this product currently at? Would it be possible to put timelines on them? Thank you, Mike -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Previews-tp4634600p4634600.html Sent from the Mono for Android mailing list archive at Nabble.com. __

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Wally McClure
To add to this, I have also seen issues where something happens in the try part of the try-catch and nothing is caught. Unfortunately, I've never been able to find repeatable bug on this, so I'm still on the lookout for it myself. Wally From: theevilprogram...@hotmail.com To: monodroid@lists.x

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Jonathan Pryor
On Jul 25, 2011, at 1:00 PM, Andrew Sinclair wrote: > I've found 2 things that made my app more reliable (NB. "more reliable" not > "totally reliable")... > > · I had a tight loop calling RunOnUiThread to update an activity when > performing a background task. For a long-running task this

Re: [mono-android] Runtime reliability?

2011-07-26 Thread Andrew Sinclair
Hello Carlo, Yes, that’s exactly the sort of thing I did however, I only noticed an improvement in reliability when I commented out the code to remove the activity from the cache in OnDestroy (ie. I leave the activity reference there until after OnDestroy and then remove it when I know t

Re: [mono-android] Mono code as Android Service and IPC speed estimations

2011-07-26 Thread Igor Russkih
> > Our current idea is to keep this library running in monodroid as an > android service (and by this share the main "heavy" buisness logic code > between WM/android projects), and to create a UI wrapper. (it most probably > will be in native java). > Using Mono for Android to create a UI wrapper

Re: [mono-android] ZeroConfig in Monodroid

2011-07-26 Thread was
My Android app is now complete except fror the ability to transfer an SQLite file to/from PC's. Any update to the inclusion of this capability in Xamarin V1? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ZeroConfig-in-Monodroid-tp4531166p4634004.

Re: [mono-android] Runtime reliability?

2011-07-26 Thread cbolz
Hello Andrew, how did you implement the activity stuff? I´ve a MainApplication instance which is reachable via TinyIoC.TinyIoCContainer.Current.Resolve(). I´ve added List Activities to he IMainApplication interface. In each activity I´ve add mainApp.Activites.Add(this) into the O