dot42


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 ?
Thanks.
A dot42 project is either a Visual Studio or SharpDevelop project. There is nothing preventing you to add a class library project to your solution consisting of the same C# source code that is used in your Mono project.
The .NET types are implemented on top of the Android API. For example, the .NET Dictionary class is implemented as a wrapper of java.util.Map and System.String as a wrapper of java.lang.String. In other words, we take the API from .NET but the implementation from Java. This is in contrast to Mono.
When you refer to .NET types and compile your dot42 project 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.
Here is the API reference of all .NET types that are currently supported (work in progress):
http://docs.dot42.com/Reference/NS.System
We are working on adding support for Portable Class Libraries.
Disclosure: I work at dot42

Related Links

Dot42 gives “object reference not set to an instance of an object” when inputting registration key
Get declared methods in interface
Referencing libraries from other solution
Emulator for Deploying and Debugging
Using native C libraries in dot42
Using SQLite with dot42
How to make a SOAP call with dot42?
How to handle “An Item with the same key has already been added” when adding .jar to dot42 project
How to unsubscribe an event with dot42
WaitOne() timeout parameter lost?
HOw do you uninstall Dot42
On every button click data is added to listview but in an unexpected manner . Data is repeated in the listview
Asynchronous SQLite sample with dot42?
dot42 - http POST request with parameters
Sharing code between a dot42 project and a mono desktop project

Categories

HOME
xml
azure-stream-analytics
gridview
checkstyle
developer-tools
3d
fftw
knitr
sublimetext
access
yandex
missing-data
nstableheaderview
bing-maps
rcloud
categorical-data
text-mining
redis-sentinel
datastage
jsonpath
pybossa
scrolltop
charles
spring-async
babel
postscript
epsilon
draft-js-plugins
definitelytyped
pic32
gpio
jasmine-node
subclass
comparable
failover
google-earth
magento-1.8
angularjs-material
simplecv
wacom
html-encode
getlasterror
sql-server-ce
reactivekit
protein-database
watchface
bindingnavigator
snapchat
robomongo
yii2-api
dbcontext
type-theory
d3-force-directed
offline.js
change-tracking
rocks
vulcanize
greatest-n-per-group
dup
avspeechsynthesizer
aurora
aspen
jparsec
roadkill-wiki
rubaxa-sortable
sony-lifelog-api
finalbuilder
skspritenode
pyobjc
mraid
mmwormhole
beatsmusic
rickshaw
verold
personalization
rcaller
amslidemenu
android-usb
hibernate-entitymanager
sphinxql
mysql-error-1044
jeromq
ice-cube
hidapi
tlf
mvc-editor-templates
jquery-1.9
windows-98
sqlclr
extreme-programming
garbage
josql
virtualpathprovider
apache-commons-dbutils
metaweblog
objective-j
delimited-text
folding
openfaces
opml
wcf-instancing
firefox-3
java1.4
soappy
image-capture
idatareader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App