Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
The checkbox to make the attachment private isn't there. Can you make the full item private for me? Van: monodroid-boun...@lists.ximian.com [monodroid-boun...@lists.ximian.com] namens Jonathan Pryor [j...@xamarin.com] Verzonden: woensdag 10 augustus 2011 1

Re: [mono-android] How to connect Sqlite Database with Monodroid?

2011-08-10 Thread vsr28
I have created one new folder of name "files" and put database in it. Now i am able to connect with database but when i tries to select rows from table, it shows error like SQLite Error:no such table:TBLUNIT. But this table is present in dadabase. Also tried with SqliteDataAdapter but still got the

Re: [mono-android] How to connect Sqlite Database with Monodroid?

2011-08-10 Thread vsr28
I was giving complete physical path as connection string(where i have copied already created SQLite database) like string dbPath = @"D:\Monodroid Samples\ndcdshrunk.db"; In your case where should i place my database copy? In Which folder of our application hierarchy? -- View this message in conte

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

2011-08-10 Thread Jonathan Pryor
On Aug 5, 2011, at 5:34 PM, chobo2 wrote: > I get this error when I am debugging in VS 2010 and MonoDorid. the debugger > detaches it self and I get that error. Could you please file a new bug with a testcase (particularly one which creates values for the ISharedPreferences value)? When I do:

Re: [mono-android] Auto start

2011-08-10 Thread Jonathan Pryor
On Jul 30, 2011, at 1:53 AM, Tim Kelly wrote: > Ok, I got it coded and it starts, but crashes. It looks like it calls > [BroadcastReceiver] > > But, the emulator says it stopped. I tried to put some logging in to see > where it dies. However, it never gets there. It seems to crash before.

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-10 Thread chobo2
Hi I don't loathe to do it the Resource.Id way it's because unless someone can tell me another way I have to do it this way. My application will talk to a webservice. It will send data to the phone. One of these pieces of data is the image that I must display to the user(I have 20 or some images)

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-10 Thread Karl Heinz Brehme Arredondo
A personal "why" for that is a validation module of mandatory fields on a form/view/activity. The server can send to device which fields are mandatory and a validation method can search ID names sent from server to do an automatic validation. So if 2 clients has different rules, server will say wha

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 7:23 PM, chobo2 wrote: > I need to find the id by name then use that int value to set a image. Why do you need to do this? > I found this method that seems to be what I need(it says I should not use > this method if possible but not sure what other method I could use then). T

Re: [mono-android] How to get id by name instead of passing in number?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 6:56 PM, chobo2 wrote: > I am wondering if you know the name of something how do you find the id > number? > > TextView lblToday = FindViewById(Resource.Id.lblToday); > > above is how you normally do it. But I am wondering how could I do something > like > > TextView lblTod

[mono-android] How to use Resources.GetIdentifier()?

2011-08-10 Thread chobo2
Hi I need to find the id by name then use that int value to set a image. I found this method that seems to be what I need(it says I should not use this method if possible but not sure what other method I could use then). int result = Resources.GetIdentifier("my_image, "drawable",null); I was

[mono-android] How to get id by name instead of passing in number?

2011-08-10 Thread chobo2
Hi I am wondering if you know the name of something how do you find the id number? TextView lblToday = FindViewById(Resource.Id.lblToday); above is how you normally do it. But I am wondering how could I do something like TextView lblToday = FindViewById("lblToday"); I think this is what I need

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread Karl Heinz Brehme Arredondo
Jonathan Pryor says: Please unsubscribe me!! (Just kidding, hehe) Karl From: Jonathan Pryor Reply-To: "monodroid@lists.ximian.com" Date: Wed, 10 Aug 2011 17:15:25 -0400 To: "monodroid@lists.ximian.com" Subject: Re: [mono-android] System.Runtime.Serialization.Json in Monodroid? On Aug 10

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 5:11 PM, chobo2 wrote: > So you can add it either by System.Runtime.Serialization.dll or > System.ServiceModel.Web.dll in Wp7 and silverlight? MSDN only mentions System.ServiceModel.Web.dll in Silverlight and WP7 for the System.Runtime.Serialization.Json.DataContract type.

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread chobo2
Jonathan Pryor-2 wrote: > > On Aug 10, 2011, at 4:44 PM, chobo2 wrote: >> Jonathan Pryor-2 wrote: >>> >>> On Aug 10, 2011, at 4:30 PM, chobo2 wrote: Does "System.ServiceModel.Web.dll (v2.0.5.0)" come with monotouch as well(I am trying to build a shared library). >>> >>> Yes, and

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 4:44 PM, chobo2 wrote: > Jonathan Pryor-2 wrote: >> >> On Aug 10, 2011, at 4:30 PM, chobo2 wrote: >>> Does "System.ServiceModel.Web.dll (v2.0.5.0)" come with monotouch as >>> well(I >>> am trying to build a shared library). >> >> Yes, and Silverlight/WP7 also have it in System

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread chobo2
Jonathan Pryor-2 wrote: > > On Aug 10, 2011, at 4:30 PM, chobo2 wrote: >> Does "System.ServiceModel.Web.dll (v2.0.5.0)" come with monotouch as >> well(I >> am trying to build a shared library). > > Yes, and Silverlight/WP7 also have it in System.ServiceModel.Web.dll: > > > http://msdn.microsof

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 4:30 PM, chobo2 wrote: > Does "System.ServiceModel.Web.dll (v2.0.5.0)" come with monotouch as well(I > am trying to build a shared library). Yes, and Silverlight/WP7 also have it in System.ServiceModel.Web.dll: http://msdn.microsoft.com/en-us/library/system.runtime.se

Re: [mono-android] System.Runtime.Serialization.Json in Monodroid?

2011-08-10 Thread chobo2
One more question. Does "System.ServiceModel.Web.dll (v2.0.5.0)" come with monotouch as well(I am trying to build a shared library). -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-Runtime-Serialization-Json-in-Monodroid-tp4679047p4687178.html Sent from the

Re: [mono-android] Monodroid - How to include layouts?

2011-08-10 Thread Jonathan Pobst
That's just a warning generated by the XML Editor due to our Schema we ship for Intellisense and won't actually cause any problems. Jonathan On 8/10/2011 11:30 AM, chobo2 wrote: > > Well I will check but I would figure if you make a ".axml" file it would be > that by default. > > > This is what

Re: [mono-android] Monodroid - How to include layouts?

2011-08-10 Thread chobo2
Jonathan Pryor-2 wrote: > > On Aug 10, 2011, at 12:30 PM, chobo2 wrote: >> This is what I get in my main.axml when I try to add the inlude. > > I'm not sure what's generating that warning, the Android SDK or some piece > of Mono for Android. ;-( > > Where did you find the original Java sample t

Re: [mono-android] Monodroid - How to include layouts?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 12:30 PM, chobo2 wrote: > This is what I get in my main.axml when I try to add the inlude. I'm not sure what's generating that warning, the Android SDK or some piece of Mono for Android. ;-( Where did you find the original Java sample that used and ? Could you also file a b

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 12:54 PM, Willem Meints wrote: > I can do that, can you make sure it will be a private bug in that case? > There's some code in there that I would not like to share with the general > public :) On the Add an attachment screen, there should be a "Privacy: [ ] Make attachment a

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
I can do that, can you make sure it will be a private bug in that case? There's some code in there that I would not like to share with the general public :) -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 12:45 PM, Willem Meints wrote: > Sure, I can do that. Here's the URL for the bug: > http://bugzilla.xamarin.com/show_bug.cgi?id=257 > Not sure if it belongs to the runtime or the development tools, but I guess > you can sort that out for me :) Could you attach your project t

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
Sure, I can do that. Here's the URL for the bug: http://bugzilla.xamarin.com/show_bug.cgi?id=257 Not sure if it belongs to the runtime or the development tools, but I guess you can sort that out for me :) -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-bou

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 12:33 PM, Willem Meints wrote: > Meh, still got the problem after the upgrade. Something is seriously off :( Could you please file a bug at bugzilla.xamarin.com? Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
Meh, still got the problem after the upgrade. Something is seriously off :( -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Willem Meints Sent: woensdag 10 augustus 2011 18:13 To: 'Discussions related to Mono for Android

Re: [mono-android] Monodroid - How to include layouts?

2011-08-10 Thread chobo2
Well I will check but I would figure if you make a ".axml" file it would be that by default. This is what I get in my main.axml when I try to add the inlude. Warning 1 The element 'RelativeLayout' has invalid child element 'include'. List of possible elements expected: 'GLSurfaceView, A

Re: [mono-android] Monodroid - How to include layouts?

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 12:16 PM, chobo2 wrote: > I am looking at android documentation and if I want to use include and merge. ... > Yet when I try to do this in monodroid I get errors saying it can't find > merge and include. Did you set the Build action for the layout\progressbar.axml and the other

[mono-android] Monodroid - How to include layouts?

2011-08-10 Thread chobo2
I am looking at android documentation and if I want to use include and merge. So I opened up eclipse and got it to extract some of the code out and it made in my layout this and another file with http://schemas.android.com/apk/res/android";> Yet when I try

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
No I'm not using mono for android 1.0.2 yet. Let me upgrade my code and check it out. It looks like the java class is indeed missing. Weird stuff is going on :S -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan

Re: [mono-android] How to connect Sqlite Database with Monodroid?

2011-08-10 Thread Jonathan Pryor
Obviously I need to write a Sqlite sample... On Aug 10, 2011, at 10:58 AM, vsr28 wrote: > Can any one say , how to connect a sqlite database with monodroid? When i > try to connect it showing some errors like, “Unable to open database” in the > con.Open line. So what's your connection string? I

Re: [mono-android] Problem using a class from an external library

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 10:54 AM, Willem Meints wrote: > I’m experiencing a weird problem with an external library I have. > > I/MonoDroid( 332): UNHANDLED EXCEPTION: Java.Lang.NoClassDefFoundError: > Excepti > on of type 'Java.Lang.NoClassDefFoundError' was thrown. > I/MonoDroid( 332): at Andro

Re: [mono-android] Slow launch

2011-08-10 Thread Jonathan Pryor
On Aug 10, 2011, at 7:50 AM, BluePosition wrote: > Whenever I start an activity the ActivityManager logs the following: > Launch timeout expired, giving up wake lock I suspect you're on the emulator. When I run monodroid-samples/HelloWorld [0] on an N1, this is the `adb logcat` output I get:

[mono-android] How to connect Sqlite Database with Monodroid?

2011-08-10 Thread vsr28
Hello Guys.. Can any one say , how to connect a sqlite database with monodroid? When i try to connect it showing some errors like, “Unable to open database” in the con.Open line. So i want to know the exact location of the sqlite database file in android mobile [Connection String]. If can plea

[mono-android] Problem using a class from an external library

2011-08-10 Thread Willem Meints
Hi, I'm experiencing a weird problem with an external library I have. The app I'm building uses a library I made that contains some code to abstract platform specific stuff so I can use the same API on WP7, iPhone and Android. When I use the external library from my app I get the following error

[mono-android] Slow launch

2011-08-10 Thread BluePosition
Hello, Whenever I start an activity the ActivityManager logs the following: Launch timeout expired, giving up wake lock I noticed that every time I lauch the application the app is not fully loaded before several seconds. How do we increase the performance? Cheers, Nicklas -- View this message