[mono-android] Designer Error
I am getting the following error when trying to open a layout (.axml) with the new Designer: "The layout could not be loaded: PI must not start with xml (position:unknown @1:5 in java.IO.InputStreamReader@17766806)" Any help? ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Designer Error
Lluis Sanchez Gual wrote > > Make sure the initial processing instruction (the tag) is the > first one in the file, and that there is no whitespace before it. > I checked and the tag is the first one on the file and also ther is no whitespace before it. Even though the designer falied when i run the application it works on the device. Please help, i really want to use the designer!! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Designer-Error-tp5709771p5709773.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Designer Error
NebulaSleuth wrote > > I had the same problem. It was because my design file used an > statement. > > It appears that the designer doesn't like it, or has a problem resolving > the path. This is unfortunate because I use them whenever I have a > element. > Yes, my design file has the tag. I need a way to get around this because almost all of my layout files used the tag. Is there a way to solve this? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Designer-Error-tp5709771p5709776.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Designer Error
Lluis Sanchez Gual wrote > > I am unable to reproduce this problem. Can you send me a sample layout > (+included files) I could use to reproduce the error? > http://mono-for-android.1047100.n5.nabble.com/file/n5709822/tittle_header.axml tittle_header.axml http://mono-for-android.1047100.n5.nabble.com/file/n5709822/PolicyCollection.axml PolicyCollection.axml I am still trying to get it to work but it only works when I remove the tag. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Designer-Error-tp5709771p5709822.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Designer Error
Lluis Sanchez Gual wrote > > Are you using Windows or Mac? MonoDevelop or Visual Studio? > I am using Windows 7 64bits and Visual Studio 2010. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Designer-Error-tp5709771p5709827.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Visual Studio 2010 crashes when opening a new or existing Mono for Android project after upgrade to 4.2.1
keef103 wrote > > After upgrade to 4.2.1 Visual Studio 2010 crashes when I create a new Mono > for Android project or when I attempt to open an existing Mono for Android > project > I got the same problem but only when I have a device connected before opening the solution. If I disonnect the device and then open Visual Studio it works. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Visual-Studio-2010-crashes-when-opening-a-new-or-existing-Mono-for-Android-project-after-upgrade-to-1-tp5709541p5709945.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Can't debug after upgrading to version 4.6
Hi, Please help!! I upgraded Mono for Android to version 4.6 and I am using VS2010 and now I can't stop at any breakpoint. I need to solve this as soon as possible so please help! ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Sharing Code Between MonoTouch and MonoDroid
What is the best or correct way to share business logic between MonoTouch and MonoDroid. Do I need to have to different projects and maintain both? Thanks ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Being driven insane....
I got around this problem by adding a constructor with no parameters to my class. Now it's working perfect. This is working for me: [Serializable] public class MyClass { #region "Global Variables" private string mGender; private bool mSmoker; private DateTime mDOB; #endregion #region "Constructors" public Person(string Gender, bool Smoker, DateTime DateOfBirth) { mGender = Gender; mSmoker = Smoker; mDOB = DateOfBirth; } public Person() { } #endregion #region "Properties" public string Gender { get { return mGender; } set { mGender = value; } } public bool Smoker { get { return mSmoker; } set { mSmoker = value; } } public DateTime DOB { get { return mDOB; } set { mDOB = value; } } #endregion } -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Being-driven-insane-tp5016975p5033498.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Deserialize from Intent.GetStringExtra issue
This is working for me: ** My Class ** [Serializable] public class MyClass { #region "Global Variables" private string mGender; private bool mSmoker; private DateTime mDOB; #endregion #region "Constructors" public Person(string Gender, bool Smoker, DateTime DateOfBirth) { mGender = Gender; mSmoker = Smoker; mDOB = DateOfBirth; } public Person() { } #endregion #region "Properties" public string Gender { get { return mGender; } set { mGender = value; } } public bool Smoker { get { return mSmoker; } set { mSmoker = value; } } public DateTime DOB { get { return mDOB; } set { mDOB = value; } } #endregion } ** Serialization and adding the String * ... Bundle b = new Bundle(); MyClass myClass = new MyClass("M",false, new DateTime(1980, 01, 01)); b.PutString("myclass", Serialize(myClass)); Intent newIntent = new Intent(this, typeof(MyActivity)); newIntent.PutExtras(b); StartActivity(newIntent); public string Serialize(MyClass myClass) { XmlSerializer serializer = new XmlSerializer(typeof(myClass)); StringWriter writer = new StringWriter(System.Globalization.CultureInfo.InvariantCulture); serializer.Serialize(writer, myClass); return writer.ToString(); } *** Deserialization on the new Activity *** private MyClass myClass; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); ... myClass = Deserialize(Intent.GetStringExtra("myclass")); ... } public MyClass Deserialize(string serializedData) { if (string.IsNullOrEmpty(serializedData)) return new MyClass; XmlSerializer serializer = new XmlSerializer(typeof(MyClass)); StringReader reader = new StringReader(serializedData); return (MyClass)serializer.Deserialize(reader); } -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Deserialize-from-Intent-GetStringExtra-issue-tp5032637p5033595.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Mono for Android on Kindle Fire
Hi, I will like to know if an application develop with Mono for Android can be run on a Kindle Fire without a problem. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Mono for Android on Kindle Fire
HSSoftware wrote > > Yes it can, no problem. We developed our Art Authority app with M4A in > about 50 days, and it is now in Amazon's store for the Kindle Fire. > Can you install the app only from the Amazon App Store? Can you install the app directly (unknown sources)? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Mono-for-Android-on-Kindle-Fire-tp5120805p5122654.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid