Questions tagged [dot42]

Development environment for writing Android apps in C#.

dot42 is a development environment for writing Android apps in C#. The core of dot42 consists of a cross compiler that compiles IL to DEX. Because dot42 compiles to DEX (Dalvik executable format), no runtime is required. C# language features such as delegates, LINQ, generics, events and lambda expression are supported.

dot42 integrates with the following IDEs:

  • SharpDevelop 4.3 (installs with dot42)
  • Visual Studio 2010 Professional
  • Visual Studio 2012 Professional

The Android API is available without limitations as if it were a .NET assembly added as a reference to your project. A large part of the .NET framework is available.

Here is the API reference of all .NET framework types that are currently supported (work in progress): http://docs.dot42.com/Reference/NS.System

When you refer to .NET framework types and compile to an APK, the .NET types compile to a minimum amount of wrapper DEX code that invokes the Android framework. It therefore does not require an extra runtime and makes the APKs really small.

You may import JAR files and access them from your C# code as if they were .NET assemblies. During compilation, your C# code is combined with the JAR file into a single APK.

Official website: dot42.com

All sources are available on https://github.com/dot42.

59 questions
1
vote
1 answer

Sharing code between a dot42 project and a mono desktop project

The idea is to share code between a desktop app using Mono and a dot42 app. So my question is: Is there any way to import a Portable Class Library or even a common library in a dot42 ? If not, is there any way to share code at all between them ?…
1
vote
2 answers

Unknown extern method T System.Nullable`1::get_Value()

I've run into a problem with my dot42 C# project: Unknown extern method T System.Nullable`1::get_Value() at System.Void NokiaStyleProfiles.AddDialogue::btnAdd_Click(System.Object,System.EventArgs) (c:\Users\STO\Documents\Visual Studio…
YaD
  • 59
  • 6
0
votes
1 answer

Dot42 gives "object reference not set to an instance of an object" when inputting registration key

Dot42 gives "object reference not set to an instance of an object" when inputting registration key. Manual activation from the website is not working... screenshot: https://i.stack.imgur.com/oB3MJ.jpg [edit 1] Currently using Windows 7 [edit 2] Can…
0
votes
2 answers

Is there a way to get rid of the (by dot42) using community licence?

I have started using the community licence of dot42 to make a small free app for android. I see the string "by dot42" in the app name, is this by design and will remain forever? or is it waiting for me to make modify some setting to remove it?
sprocket12
  • 5,368
  • 18
  • 64
  • 133
0
votes
1 answer

Definitions for Dot42 vs standard Android definitions

This may or may not be a very straightforward question. I've very recently decided to create a number of applications with the android platform in mind, and as such installed Dot42, since C# is the language I'm most proficient in. I noticed that…
Wolfish
  • 960
  • 2
  • 8
  • 34
0
votes
1 answer

using reflection with dot42 project

I am using dot42 with vs2010. i tried to get the list of fields for a class. i got 0 element in the list of fields. Does dot42 support reflection? any example or help will be appreciated. best regards
0
votes
1 answer

how to create an asset folder in a dot42 project?

I am trying to write my first application in dot42. i am using vs2010. How to create an asset folder in dot42 project? i need to use the asset folder to copy my own sqlite database. any idea? any help will be appreciated. thank you in advance.
0
votes
0 answers

Get declared methods in interface

If I declare my own interface I can't get declared methods public interface ITest { string TestProp { get; set; } void TestMethod(); } MethodInfo[] declaredMethods = typeof(ITest).GetDeclaredMethods(); //declaredMethods.Length ==…
gregorj
  • 33
  • 4
0
votes
1 answer

Referencing libraries from other solution

I have custom library that is located in a separate solution. When I reference that library in a new solution everything works fine, except when I try to build it. I get the error: Error 1401 Failed to load assembly Utilities, Version=0.0.0.0,…
gregorj
  • 33
  • 4
0
votes
1 answer

change size of imagebutton when clicked

I have an imagebutton which size I would like change when I click it. I'm working with dot42 where you can develop android apps in C# I've tried this, but it didn't work: button1.Click += delegate { button1.Height = 25; };
Kim Andersson
  • 251
  • 2
  • 4
  • 15
0
votes
1 answer

Android on dot42 - setting the "largeHeap" property, and memory constraints

I am creating a small Android app. It is vital that all the images that are used as Bitmap resources are all loaded into memory at once so they can be drawn on the screen at any given time. The grand total of all the images as they appear on my…
Eudaimonium
  • 93
  • 1
  • 6
0
votes
2 answers

Setting background in XML format in Visual Studio 2010

I asked this question in chat rooms tagged with Android but it turns out they didn't encounter this before, and I cannot find specific question either on Google so I think this is a valid point to post this as a question here. The problem is, if I…
mr5
  • 3,438
  • 3
  • 40
  • 57
0
votes
2 answers

Setting up Android DE in Visual Studio

I'm working on an alien environment where most things I search in Google about Android Development does not apply immediately, there's a work around I must do first before I get it to work. I use dot42 (I don't know what to call it) integrated in VS…
mr5
  • 3,438
  • 3
  • 40
  • 57
0
votes
2 answers

How to include a string resource in XML format accessible in every *.cs file?

As my title says, how do I include a resource string in XML format that I can access by its id? This id is auto generated in dot42 but I can't find any teachings in Google.
mr5
  • 3,438
  • 3
  • 40
  • 57
0
votes
1 answer

Anyone have working code showing how to get a simple widget to display using dot42 for android?

I am new to dot42 (liking it so far) but cannot get a simple widget to work. Rather than get into specific issues I am hitting, does anyone know of sample code showing a working widget using dot42? Just looking for a hello world widget using…
Jon
  • 13
  • 3