[mono-android] Networking

2011-08-05 Thread Tim Kelly
Not sure if this has solved the issue, but it seems more stable since I added ((HttpWebRequest)webRequest).KeepAlive = false; private string getData(string url, Boolean postData, String xmlData) { String responseFromServer=string.Empty; try {

Re: [mono-android] Files

2011-08-05 Thread Jonathan Pobst
You can thank those that came before you, and threatened to show up at my house and rough me up if I didn't give them that option. ;) Hope it makes your life easier! Jonathan On 8/5/2011 10:39 PM, Tim Kelly wrote: > You are so on my Christmas Card List!!! > Preserve data/cache between applica

Re: [mono-android] Files

2011-08-05 Thread Tim Kelly
You are so on my Christmas Card List!!! Preserve data/cache between application deploys <<= That was what I needed. Thanks, Tim -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pobst Sent: Friday, August 0

Re: [mono-android] MonoDroid Mac Setup

2011-08-05 Thread Miguel de Icaza
> > >> I have followed (to the letter) the instructions for installing MonoDroid >> on >> the Mac and am coming up on issues when I try to build the MonoCross demo >> for the Android emulator. >> > > Could you send me a link of the actual sample that you downloaded, so we > try to replicate this bu

[mono-android] The program 'Mono' has exited with code 255 (0xff).

2011-08-05 Thread chobo2
Hi I get this error when I am debugging in VS 2010 and MonoDorid. the debugger detaches it self and I get that error. Apparently it should be https://bugzilla.novell.com/show_bug.cgi?id=687521 fixed but guess not. ISharedPreferences mySharePrefernces = settingsActivity.GetSharedPrefere

Re: [mono-android] View Swiper?

2011-08-05 Thread chobo2
Jonathan Pryor-2 wrote: > > On Aug 3, 2011, at 1:36 PM, chobo2 wrote: >> I am wondering if there is any plugin to make a view swiper for >> monodroid. >> >> I found this but I am unsure if I can just import this java file into >> monodroid and use it? >> >> https://github.com/commonsguy/cwac-vi

Re: [mono-android] View Swiper?

2011-08-05 Thread Jonathan Pryor
On Aug 3, 2011, at 1:36 PM, chobo2 wrote: > I am wondering if there is any plugin to make a view swiper for monodroid. > > I found this but I am unsure if I can just import this java file into > monodroid and use it? > > https://github.com/commonsguy/cwac-viewswiper I wasn't able to figure out h

Re: [mono-android] Files

2011-08-05 Thread Tim Kelly
This is the flakiest thing I've seen. It works and then doesn't work. I'm almost at the point to tell management to scrap using this product. I really like the C# and concept but I cannot spend this amount of time one each start/stop reboot, works, doesn't work, errors, painfully slow, impossible

Re: [mono-android] HTTP issues

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 4:44 PM, Tim Kelly wrote: > I do see these messages in the log once in a while too: > > 08-05 20:42:28.872: DEBUG/SntpClient(59): request time failed: > java.net.SocketException: Address family not supported by protocol That's not directly related to Mono for Android: the proce

Re: [mono-android] Files

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 4:19 PM, Tim Kelly wrote: > Secondly, I would like to have TWO applications share (read/write) the same > file? In production? There are two ways this can work: 1. Ensure that one of your apps is always used first, and have it call Context.GetDir(string, FileCreationMode)[0

Re: [mono-android] HTTP issues

2011-08-05 Thread Tim Kelly
I do see these messages in the log once in a while too: 08-05 20:42:28.872: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.co

Re: [mono-android] HTTP issues

2011-08-05 Thread Tim Kelly
Flaky is correct. Works and doesn't work. Seems that I get the DNS error and then it will recover then fail and recover and then fail for the rest of eternity. When this happens I cannot even start a web browser. It just opens and closes. If I reboot the emulator, once again I get flaky result

Re: [mono-android] HTTP issues

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 4:30 PM, Tim Kelly wrote: > Ok, I just got back to this. After a clean install 'wipe' the same > behavior occurs. In the emulator, I always have a network connection so > there's no reason to check if one is available. This is counter to my experience with the emulator, in whi

Re: [mono-android] HTTP issues

2011-08-05 Thread Tim Kelly
Ok, I just got back to this. After a clean install 'wipe' the same behavior occurs. In the emulator, I always have a network connection so there's no reason to check if one is available. However, in production that is exactly what we'd do. The only thing consistent is it is constantly inconsi

Re: [mono-android] Files

2011-08-05 Thread Jonathan Pobst
Go to Tools->Options->Mono for Android and try turning on: Preserve data/cache between application deploys and see if that helps. Jonathan On 8/5/2011 3:19 PM, Tim Kelly wrote: > Can someone point me to where I can install a public file or where the > documentation is?? > > I want to read a co

[mono-android] Files

2011-08-05 Thread Tim Kelly
Can someone point me to where I can install a public file or where the documentation is?? I want to read a configuration file but every time I rebuild the application it wipes out the user data thereby making me have to rebuild the configuration all over again. During testing this is a pain.

Re: [mono-android] ListView ItemClick Bug?

2011-08-05 Thread BarryJohnston
I was adding the handler in the wrong place in my code. My bad. Thanks for looking at it. NOT a bug. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ListView-ItemClick-Bug-tp4659588p4670710.html Sent from the Mono for Android mailing list archive at Nabble.com. _

Re: [mono-android] ScrollView Makes my background image bigger why?

2011-08-05 Thread chobo2
WyrmUK wrote: > > Won't the background be scaled to fit the whole of the scrollview, > including the part that's off the bottom of the screen? I would suggest > setting the orange background on a view inside the ScrollView and not on > the scroll view itself, the scroll view background can then b

[mono-android] ScrollView Makes my background image bigger why?

2011-08-05 Thread chobo2
I am trying to make a scroll view that has a nested relativeLayout view. The realative layout has a background image. When the realativeLayout is the only layout the background image is the size I want it to be. When I add scroll view it makes the image bigger and I am not sure why and what proper

[mono-android] View Swiper?

2011-08-05 Thread chobo2
Hi I am wondering if there is any plugin to make a view swiper for monodroid. I found this but I am unsure if I can just import this java file into monodroid and use it? https://github.com/commonsguy/cwac-viewswiper https://github.com/commonsguy/cwac-viewswiper -- View this message in context:

Re: [mono-android] How to have monodroid project in same soultion with windows 7 phone?

2011-08-05 Thread chobo2
Anthony.Coqui wrote: > > Hi Chobo2, > > I may be wrong but it's worth a try :) > > Right click on the Android project and go to properties. > Select [Mono Android Options] > Ensure that "Use Shared Runtime" is checked. > > I currently have a Mono for Android project in the same solution as a W

[mono-android] Section List in Monodroid

2011-08-05 Thread Nilesh
Hi, I am new to the Monodroid development. I wanted to create a section list like the contact list present in android device or the one shown below http://mono-for-android.1047100.n5.nabble.com/file/n4661739/listwithheaders1.png I got various samples for implementing the section list in androi

Re: [mono-android] ListView ItemClick Bug?

2011-08-05 Thread Jonathan Pryor
On Aug 2, 2011, at 1:23 PM, BarryJohnston wrote: > I have an activity derived from ListActivity and a delegate click handler > defined for the List. It appears the the click handler is being called three > times. I'm not able to reproduce this: 1. Run: git clone g...@github.com:mono/monodroid

Re: [mono-android] Consumer closed input channel

2011-08-05 Thread Jonathan Pryor
On Jul 30, 2011, at 4:08 PM, SplendidCRM wrote: > My app seems to crash randomly. It can occur when a new activity is created > or when the device changes orientation. Here is the log: Unfortunately I can't tell what's wrong from that log. :-( Could you please file a bug at bugzilla.xamarin.com

Re: [mono-android] MonoDroid Mac Setup

2011-08-05 Thread Miguel de Icaza
> > > I have followed (to the letter) the instructions for installing MonoDroid > on > the Mac and am coming up on issues when I try to build the MonoCross demo > for the Android emulator. > Could you send me a link of the actual sample that you downloaded, so we try to replicate this bug? I have

Re: [mono-android] Five questions, if some kind sole would help?

2011-08-05 Thread Jonathan Pryor
On Jul 30, 2011, at 4:23 PM, Tim Kelly wrote: > 1. I'm not sure what permission that would be. This is what's being logged: > > E/DroidAgent: 7/30/2011 4:18:37 PM [ERROR GetCpuInfo:]( 303): getifaddrs That's not a permission problem, it's https://bugzilla.novell.com/show_bug.cgi?id=661106. A

Re: [mono-android] Cannot stop and restart AndroidGameView run loop successfully

2011-08-05 Thread Jonathan Pryor
On Jul 29, 2011, at 9:44 PM, bitjockey wrote: > Just wondering if this could be the result of a bug in AndroidGameView or if > I am just using it incorrectly. It is very probably a bug in AndroidGameView; we know of an issue in which the underlying GraphicsContext disappears on e.g. screen rotati

Re: [mono-android] App crashes

2011-08-05 Thread Jonathan Pryor
On Jul 28, 2011, at 2:06 PM, andi wrote: > I am able to reproduce the error. Could you please file a bug report with the sample app at bugzilla.xamarin.com so that we can investigate? Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.co

Re: [mono-android] HTTP issues

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 12:41 PM, Tim Kelly wrote: > But during testing, I shouldn't have an issue. Again, in my experience ~1/3-1/2 of the times I start up the Android emulator, the emulator doesn't have internet connectivity. I haven't tried to figure out why. - Jon _

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

2011-08-05 Thread Jonathan Pryor
On Jul 26, 2011, at 5:46 PM, BarryJohnston wrote: > 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 following > errors (warnings actually, but my account activity never displays): > >

Re: [mono-android] HTTP issues

2011-08-05 Thread Tim Kelly
I eventually will look for hotspots and call only when one is detected and online. Thanks for that bit of information and code. But during testing, I shouldn't have an issue. I've decided to take your thoughts to heart on the emulator and decided to nuke it. I'm building a clean emulator(what

[mono-android] cameras...................again

2011-08-05 Thread Wally McClure
I'm trying to display the image that I just took with the camera. I have the following codevar dataUri = data.ToURI(); var imageView = FindViewById(Resource.Id.takepic); imageView.SetImageURI(Android.Net.Uri.Parse(dataUri)); I have the folling v

Re: [mono-android] HTTP issues

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 11:31 AM, Tim Kelly wrote: > However, during on C# testing, this attached routine is called every minute > and after a short period of time it causes the networking in the emulator to > stop requiring a reboot. > > We've determined nothing from the logs other than it seems

[mono-android] HTTP issues

2011-08-05 Thread Tim Kelly
FYI, not sure if this will happen in production. But, we cannot get webRequest to work in a loop after several iterations. Our business requirement is to post/get sales data on an hourly (or some interval) keeping a local cache. Also, to check for version updates. We've scrapped SOAP and devel

Re: [mono-android] ScrollView Makes my background image bigger why?

2011-08-05 Thread WyrmUK
Won't the background be scaled to fit the whole of the scrollview, including the part that's off the bottom of the screen? I would suggest setting the orange background on a view inside the ScrollView and not on the scroll view itself, the scroll view background can then be set to the yellow colour

Re: [mono-android] Mono for Android for Students?

2011-08-05 Thread Jeff Stedfast
Hi Neal, I've updated the website to say supp...@xamarin.com instead of mono-andr...@novell.com, thanks for the catch! As far as Student licenses, I don't know the details but I know we want to offer that. Your best bet would be to email supp...@xamarin.com to ask about it. Hopefully Joseph can h

Re: [mono-android] System.NullReferenceException

2011-08-05 Thread Andrew Sinclair
Hi Jon, Sounds good. Do you have a rough (== we won't hold you to it) idea of when the next release will be out? (eg. next few days, a few weeks, 2+ months etc) Thanks, Andy -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf

Re: [mono-android] System.NullReferenceException

2011-08-05 Thread Greg Shackles
Awesome! That would have saved me a ton of time when building my app, so I look forward to hopefully having a fix for the next one :) - Greg On Fri, Aug 5, 2011 at 10:29 AM, Jonathan Pryor wrote: > On Aug 5, 2011, at 10:09 AM, Greg Shackles wrote: > > Yeah it's failing when building your resour

Re: [mono-android] System.NullReferenceException

2011-08-05 Thread Jonathan Pryor
On Aug 5, 2011, at 10:09 AM, Greg Shackles wrote: > Yeah it's failing when building your resources. Unfortunately I don't think > there's (currently) a good way of getting the actual error if it's not > already being surfaced in the build output or error message. In those cases I > usually end u

Re: [mono-android] System.NullReferenceException

2011-08-05 Thread Greg Shackles
Yeah it's failing when building your resources. Unfortunately I don't think there's (currently) a good way of getting the actual error if it's not already being surfaced in the build output or error message. In those cases I usually end up pulling things out and rebuilding until I can locate where

Re: [mono-android] System.NullReferenceException

2011-08-05 Thread Wally McClure
Nevermind. I had an error in my layout file. Wally From: theevilprogram...@hotmail.com To: monodroid@lists.ximian.com Date: Fri, 5 Aug 2011 09:58:21 -0400 Subject: [mono-android] System.NullReferenceException http://pastebin.com/JnS2vcgG I'm getting a null reference exception. I'm not q

[mono-android] System.NullReferenceException

2011-08-05 Thread Wally McClure
http://pastebin.com/JnS2vcgG I'm getting a null reference exception. I'm not quite sure where its specifically coming. I think its to be coming from aresgen. I have put the build output into pastebin and was hoping that another set of eyes might be able to see what is going on. Any ideas, s

[mono-android] MonoDroid Mac Setup

2011-08-05 Thread ben.bre...@codethink.co.uk
Firstly forgive me for being New to Mac and Mono/C#, I know I'm not the ideal user for this situation but I am an experienced C developer and I have considerable experience setting up development environments for various embedded devices. I have followed (to the letter) the instructions for instal

[mono-android] SurfaceHolder AddCallback random errors

2011-08-05 Thread WyrmUK
Hi. I'm trying to implement an activity which previews the camera and allows a picture to be taken. However I get rather mixed results with each build. One time it will work fine, but I might make a change such as adding a comment and re-compile and I get an error when setting the ISurfaceHolderCal