Re: [mono-android] Issue with Visual Studio 2010, combining different platforms
Problem appears if i have TWO application projects with the same name. If i would rename android app from Test to Test for Android, the column Deploy comes back in Configuration Manager. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Issue-with-Visual-Studio-2010-combining-different-platforms-tp5710418p5710419.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] Issue with Visual Studio 2010, combining different platforms
Hi. Im now have a solution in visual studio and i have 4 projects in it: Classic .net framework projects: class library TestLib application Test Mono for android 2.3.3 projects: class library TestLib application Test. when i open Configuration Manager in this solution, i dont see a column Deployment, i.e. i see only column Build. And Debug buttons are not enabled, they are gray, i cant debug my mono android app when i combine classic .net projects and mono projects. when i open project Test (for mono) as independent project, Visual Studio creates temp solution for me and i see column Deployment in Configuration Manager. Is this issue real or it is my mistake? Can you help me? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Issue-with-Visual-Studio-2010-combining-different-platforms-tp5710418.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] System.Attribute for Activity class methods
Hi all. Is System.Attribute and custom attributes work in Mono for android? I create class LayoutTestAttribute like this: [System.AttributeUsage(AttributeTargets.All)] public class LayoutTestAttribute : System.Attribute { public LayoutTestAttribute() { //this. } } and try to use it like this: [Activity(Label = "TestMono", MainLauncher = true, Icon = "@drawable/icon")] public class Activity1 : Activity { ... [Core.Android.LayoutTest()] private void TestMethod(object sender) { } ... } and when i add a breakpoint in constructor LayoutTestAttribute i dont see anything. Looks like problem is not in breakpoints - they are works well. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-Attribute-for-Activity-class-methods-tp5710454.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] Issue with Team Foundation server in VS 2010 SP1
Hi. Im new in Mono, but see a little bug in VS when using TFS 2010. When im trying to build Mono for Android Application project, i see an error in output screen: C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: непредвиденная ошибка при выполнении задачи "CopyIfChanged". C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: System.UnauthorizedAccessException: Отказано в доступе по пути "Resources\Resource.Designer.cs". C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Xamarin.Android.Tasks.CopyIfChanged.Execute() C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(489,2): error MSB4018: в Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) Looks like problem in Resource.Designer.cs, becouse this file is read-only when its state is check-out. When i check it in to change, problem is disappears. Correct way is to check in this file automatically when it changes, i think. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Issue-with-Team-Foundation-server-in-VS-2010-SP1-tp5710524.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] Issue with Team Foundation server in VS 2010 SP1
And i have the same problem with file "Properties/AndroidManifest.xml". It is the file which is merged with generated AndroidManifest until building project (as i understand). And when im changing some options on project property window, on tab "Android Manifest" (for example, some new permissions), i have the same problem, becouse this file is checked out and it need to be checked in to change it. Tossing, Chris: yes, your workaround is a way to work, but im not sure that it is a correct way. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Issue-with-Team-Foundation-server-in-VS-2010-SP1-tp5710524p5710592.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] How to use "dip" or "dp" layout dimension for LayoutParams width and height?
Sorry about my question, but i dont see any information in google. How can i set width like "30dp" for dynamically created label in my custom view? For example: var label1 = new TextView(this.Context); label1.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent, 30); label1.Gravity = GravityFlags.CenterVertical; label1.SetText("test", TextView.BufferType.Normal); this.AddView(label1); But this height of 30 is set with normal pixels and looks different on emulator and real device (screen dimensions is different). And i dont see any way to set a type of pixels for layoutparams. How can i do this? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-use-dip-or-dp-layout-dimension-for-LayoutParams-width-and-height-tp5710626.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] Settings and layouts in libraries
Hi everybody. I have an mono for android application that have some basic functionality with modules/plugins which expands it. For example, one module can have its own settings, forms and other. How can i create custom layouts and settings in modules? I know that mono is not supports library resources, but it is a VERY important thing that i cant replace. Probably it have another way to use custom forms in libraries? For example, i have xml file which describes my library own settings. What whould i do to open preferences activity for it? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Settings-and-layouts-in-libraries-tp5711077.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