Re: [mono-android] VS2010 4.2.1 deploy to device clears data

2012-05-18 Thread Jonathan Pobst
Tools -> Options -> Mono for Android -> Preserve. Jonathan On 5/18/2012 4:39 PM, Steve Sharrock wrote: It may be my feeble mind remembering something that never was; but, I seem to remember before 4.2.1 that deploying an app from VS2010 didn't clear any existing data (SqlLite etc). If this

Re: [mono-android] VS2010 4.2.1 deploy to device clears data

2012-05-18 Thread Wally McClure
Steve, I get confused based on platforms (MT v MfA) and versions, but I thought that the default behavior was that an app will clear existing data when it is recompiled and loaded for development. I think that there is a project setting somewhere that allows the data to be preserved between d

[mono-android] VS2010 4.2.1 deploy to device clears data

2012-05-18 Thread Steve Sharrock
It may be my feeble mind remembering something that never was; but, I seem to remember before 4.2.1 that deploying an app from VS2010 didn't clear any existing data (SqlLite etc). If this is something new, is there any setting to preserve existing application data. Thanks Steve Sharrock Archite

Re: [mono-android] Resources in Class Library project

2012-05-18 Thread Atsushi Eno
Hello, Let me explain a bit in details. We support android resources in the context that our *Java Binding Library project* supports Java "Android Library Project" [*1] (which contains not only a jar but also a set of resources, which are still outside the jar itself). It was mandatory to sup

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Chaitanya
Great! Then I shall move past that and continue on with my development with the knowledge that the issue is with the inspector. Thanks for helping me figure out what the cause was guys! You'll be seeing me more and more on here...Hopefully helping other's out too! Chaitanya Marvici -- View t

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Jonathan Pobst
On 5/18/2012 11:31 AM, Chaitanya wrote: I assume that the problem is related specifically to the inspection of the value and not to the value itself. And that the value is actually being properly set, but just not being displayed properly in the inspector. Am I correct in that statement? Yes

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Chaitanya
Whew! So I am NOT going insane! I can't tell you how much of a relief that is. I am very glad that you were able to reproduce it. I assume that the problem is related specifically to the inspection of the value and not to the value itself. And that the value is actually being properly set, b

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Jonathan Pobst
I can repro this now. I think before I was always trying with nullable variables (which work correctly) instead of properties. Filed here: https://bugzilla.xamarin.com/show_bug.cgi?id=5172 Jonathan On 5/18/2012 9:56 AM, Chaitanya wrote: I am currently using 4.2.1. Part of my attempts prior

Re: [mono-android] Resources in Class Library project

2012-05-18 Thread Jonathan Pobst
This is not currently supported. Jonathan On 5/18/2012 10:22 AM, NebulaSleuth wrote: I tried this as well with no luck. I am also running 4.2.1. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Resources-in-Class-Library-project-tp5658638p5709916.html Sent from

Re: [mono-android] Resources in Class Library project

2012-05-18 Thread NebulaSleuth
I tried this as well with no luck. I am also running 4.2.1. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Resources-in-Class-Library-project-tp5658638p5709916.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Chaitanya
I am currently using 4.2.1. Part of my attempts prior to posting anything regarding this was to uninstall and try different version of Mono For Android. So I have seen this on multiple versions. Is there any other information that I can provide to you guys that might be able to help track dow

Re: [mono-android] Weird Nullable Int32 Issue

2012-05-18 Thread Jonathan Pryor
On May 17, 2012, at 1:36 AM, Chaitanya wrote: > Not sure if anyone will be able to help me out, but I am having a weird issue > with nullable properties. Which Mono for Android version is this? It looks like you're hitting: https://bugzilla.xamarin.com/show_bug.cgi?id=2895 We haven't be

Re: [mono-android] SQLite error

2012-05-18 Thread Goncalo Oliveira
The same code works here, tried on 3 different devices; the only difference I can see offhand is the connection.CreateCommand instead of new Sqlitecommand(). You don't even have any errors on logcat? On 18 May 2012 14:02, mdurli wrote: > Tried on a Motorola ET1 Tablet and on a Motorola Droid, bo

Re: [mono-android] SQLite error

2012-05-18 Thread mdurli
Tried on a Motorola ET1 Tablet and on a Motorola Droid, both with Android 2.3. I tried other samples, and this code for example works: string dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal),"items.db3");   

Re: [mono-android] 4.2.1 - "Could not find file" ...bin\debug on deploy

2012-05-18 Thread Stuart Lodge
PLP are (I think) Portable Library Projects They're also called Portable Class Libraries At the .Net level I think they are just class libraries which come with guarantees that they will only reference certain limited framework subsets (called profiles) which means you can safely use the same bin

Re: [mono-android] SQLite error

2012-05-18 Thread Goncalo Oliveira
On what real device did you test? On 18 May 2012 12:57, mdurli wrote: > Hello, > > I tried both with emulator and with real device. > > Thanks, > Mattia > > > Il 18/05/2012 13:23, Wally McClure [via Mono for Android] ha scritto: > > Mattia, > > I haven't tried this under 4.2, but when the book

Re: [mono-android] SQLite error

2012-05-18 Thread mdurli
Hello, I tried both with emulator and with real device. Thanks, Mattia Il 18/05/2012 13:23, Wally McClure [via Mono for Android] ha scritto: Mattia, I haven't tried this under 4.2, but when

Re: [mono-android] SQLite error

2012-05-18 Thread mdurli
Yes of course this is the full code: Snippet void PullDataButton_Click(object sender, EventArgs e) { string DatabaseName = "UserData.db3"; string documents = System.Environment.GetFolderPath( System.Environment.Special

Re: [mono-android] SQLite error

2012-05-18 Thread Goncalo Oliveira
can you tell me table creation line so I can get the types descriptions? On 18 May 2012 12:12, Mattia Durli wrote: > Hello Wally, > > thanks for the quick response. > > >- On that specific example, there should be another button on that >form. IIRC, the other button should insert some

Re: [mono-android] SQLite error

2012-05-18 Thread Wally McClure
Mattia, I haven't tried this under 4.2, but when the book was written, the data readers did not work in the emulator under the 4.0x versions we tested with at the time, but worked in every physical device that we tested against. The joys of the emulator. Wally Date: Fri, 18 May 2012 13:12:04

Re: [mono-android] SQLite error

2012-05-18 Thread Mattia Durli
Hello Wally, thanks for the quick response. On that specific example, there should be another button on that form.  IIRC, the other button should insert some data into the table.  When I get down to my

Re: [mono-android] SQLite error

2012-05-18 Thread mdurli
Thanks! Il 18/05/2012 12:45, ledz [via Mono for Android] ha scritto: >  By the way, is there a way with a thirdy part software or even with vs to create a sqlite DB and deploy it with the application?  I use sqlitestudio for t

Re: [mono-android] SQLite error

2012-05-18 Thread Wally McClure
That solves the sqlite visual tools problems. Good info. Date: Fri, 18 May 2012 11:45:16 +0100 From: gonc...@minkan.net To: monodroid@lists.ximian.com Subject: Re: [mono-android] SQLite error > By the way, is there a way with a thirdy part software or even with vs to create a sqlite DB and dep

Re: [mono-android] SQLite error

2012-05-18 Thread Wally McClure
Mattia, Wow, several good questions! First off, I'm Wally. I was the lead author on that book, and that chapter is mine. I can't blame any other coauthors. A few items:On that specific example, there should be another button on that form. IIRC, the other button should insert some data into

Re: [mono-android] SQLite error

2012-05-18 Thread Goncalo Oliveira
> By the way, is there a way with a thirdy part software or even with vs to create a sqlite DB and deploy it with the application? I use sqlitestudio for this matter. Don't know if there's a better one, but this one get's the work done. http://sqlitestudio.one.pl/ On 18 May 2012 11:35, mdurli

[mono-android] SQLite error

2012-05-18 Thread mdurli
Hello, I'm having this problem with the sample code of the wrox book "Pro Android programming with Mono for Android", InternalNetworkData sample. First it creates a DB and fills it with data, with success, then tries to read the data with a SqliteDataReader. I tried to debug it and when it gets to

Re: [mono-android] Visual Studio 2010 crashes when opening a new or existing Mono for Android project after upgrade to 4.2.1

2012-05-18 Thread Fabrice
Same here, can't open a MFA project without an exception and then VS close Any ETA on the next release with the fix ? Thanks Fabrice Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object. Exception Stack Trace:at Xamarin.Android

Re: [mono-android] 4.2.1 - "Could not find file" ...bin\debug on deploy

2012-05-18 Thread James Lavery
Ah the penny has finally dropped! My referenced projects were ordinary .NET projects, not Mono For Android projects. That was my mistake. I've changed all projects to Mono For Android, and all is working fine. Apologies for being thick and wasting your time. Next thick question - what's PLP?

Re: [mono-android] M4A 4.2.1 Crashes VS2010 when device is connected before VS 2010 start

2012-05-18 Thread martze
I can reproduce this if i start VS AND open my solution via the Taskbar directly. If I start VS and then open my solution in VS nothing abnormal happens. (Phone: Samsung Galaxy S2 (I9100G)). But, actually i'm running a 4.3.0 debug build. -- View this message in context: http://mono-for-android.1