• 791 阅读
  • 3 回复

mono for android 配置安装以及小测试

视频在线上传+队列转换FLV+水印+捉图+修复+获时+转3GP(API语言不限,开视频站必备!)
应导师要求,开发android 系统的C#应用 花了1天时间找资料配置 总算配置出来了,和大家分享下我的经验
            安装 JDK
            安装 Android SDK
            配置模拟器
           安装 Mono for Android Visual Studio 2010 插件

           安装过程的话 主要参考了http://hi.baidu.com/xxl_cc/blog/item/5f2e297f34e2961429388a87.html 安装配置,因为SDK版本的不同 界面可能也有些小小变动
           主要界面配置的话还是不变的

           缺失的图 我用JAVA模拟器配置来代替

            据说MONO更新要一天 我不相信、、、后来我真的信了。。


           一切都搞定哦 打开VS2010 新建项目 你会发现多了一个选项
接下来 简单介绍我的测试和分析
先分析他的目录
这是目录以及Main.axml文件 也就是布局文件



根据我个人理解  感觉MONO的主要流程应该是先加载构建器,然后通过构建器索引AXML文件,也就是布局文件,然后通过布局文件索引String.xml文件 获取里面内容,最后和事件绑定

这是String.xml 资源字典
这是RESOURCE类,里面存放控件的基本索引地址

编码不要重复
编译器会自动生成十六进制的地址码
Activity1.cs



事件的话 都是要建立一个索引对象去寻找进行处理的

点运行 自动启动android 模拟器
进行测试程序


输入文字 点test按钮


至此 测试程序完毕 。如果期间有什么问题或者错误,欢迎指正
http://blog.csdn.net/srqpoi/article/details/7027330
小鱼的淘宝店铺-多多支持哇

Mono for Android 4.0, 用 C# 开发 Android 应用

视频在线上传+队列转换FLV+水印+捉图+修复+获时+转3GP(API语言不限,开视频站必备!)

Xamarin 刚发布了 Mono for Android 4.0,该项目使得 C#/.NET 的开发者可以为 Android 设备开发应用程序。
您是游客您没有权限查看该图片

Mono for Android 4.0 提供对 Google 新的冰淇淋三明治 Android 4.0 操作系统的支持。
该项目为 Visual Studio 提供一个插件用来开发 Android 应用。
使用 Mono for Android, 你可以完全使用 C# and .NET 的便利措施:
  • LINQ Support
  • Work With XML Easily
  • Event Handling & Delegates
  • Make Use of Both Cores

Mono for Android 4.0 是一个商业软件,提供免费试用版本:
您是游客您没有权限查看该图片
Mono for Android 4.0 - C# Development on Ice Cream Sandwich

更多关于 Mono for Android 的信息:
小鱼的淘宝店铺-多多支持哇

Mono for Visual Studio 2010

视频在线上传+队列转换FLV+水印+捉图+修复+获时+转3GP(API语言不限,开视频站必备!)
Visual Studio

From $1

Table of contents

Installing Mono for Android for Visual Studio 2010 involves four steps:
  1. Install the Java SDK
  2. Install the Android SDK
  3. Configure your simulator
  4. Install the Mono for Android Visual Studio 2010 Plugin

We cannot stress enough how important it is that you have these two pieces:
  • A Windows PC
  • Visual Studio 2010 Professional, Premium, or Ultimate.

Mono for Android for Visual Studio 2010 will not work with Visual Studio Express.

Step 1 - Install the Java JDK
Download and install the Java 1.6 (Java 6) JDK. The JRE is not sufficient. The Android SDK requires the 32 bitJDK, that is, select "Windows" for your platform, not "Windows x64".

Step 2 - Install the Android SDK
Download the Android SDK from Google:

Note: If the installer does not detect your JDK click the back button and then the next button.
  • Run the SDK Manager after install.
  • Install at least:
    • Android SDK Tools, revision 10 or greater
    • Android SDK Platform-tools, revision 3 or greater

  • Install one or more SDK Platforms, such as:
    • SDK Platform Android 1.6, API 4, revision 3
    • SDK Platform Android 2.3.3, API 10, revision 1


Note: Available versions are updated frequently and these versions are just suggestions. Normally it is easiest to use the Update All... button.



If you receive an error message when opening the SDK Setup application that states "Failed to fetch URL https://...", you should check the "Force https://... sources to be fetched using http://..." option under "Misc" in the "Settings" list before returning to the "Available Packages" list.

Step 3 - Configure Your Simulator
The Android Simulator can be run in a variety of configuration to simulate different devices. You should configure at least one to get started. You do this by selecting the "Virtual Devices" option from the Android SDK installer:

Select "New" in this dialog box, and then configure your device. This is a good starting configuration:

Do not be scared by the following message, this is Android's SDK way of telling you that everything is OK, and everything will be alright:

Once you do this, you are done configuring the emulator. There is nothing left to do in the Android SDK Setup application.
Note: You should not start the emulator from the Android SDK Setup application. MonoDroid will handle this for you.

Step 4 - Install the Mono for Android Visual Studio 2010 Plugin
Once you make it this far, you are ready to install Mono for Android. Download the Mono for Android installer from:
http://mono-android.net/DownloadTrial
Note: you must close all copies of Visual Studio 2010 before installing!
Follow the prompts to install, read the carefully crafted End-User License Agreement that our lawyers wrote with all the love and dedication that a lawyer puts into writing EULAs, and once you accept the terms, Mono for Android be installed:




http://mono-android.net/Installation

http://www.mysticboy.cn/article.asp?id=270
小鱼的淘宝店铺-多多支持哇
小鱼的淘宝店铺-多多支持哇