是否有书面的iOS,安卓(甚至是Windows Phone的)任何单一的框架?框架、书面、Windows、iOS

2023-09-05 02:30:50 作者:人帅极薄累

我想有一个跨平台的框架,因为这些平台解决方案。 我的应用程序需要定位服务,套接字编程,摄像头接入和推送通知。因此,Web应用程序是不是要走的路....是否有任何工具或框架,这样做呢?谢谢你。

I would like to have a cross platform framework as these platform solutions. My application requires location service, socket programming, camera access and push notifications. So, the web app is not the way to go.... Is there any tools or framework to doing this? Thanks.

推荐答案

由于您想访问特定平台的功能,如摄像头,GPS,通知等,你将需要调用特定平台的API。

Because you want to access platform-specific features such as camera, GPS, notifications etc., you're going to need to call platform-specific API's.

这样,至少你的一些应用程序,code将需要依赖于平台。然而,有一个很好的机会,大多数的你的应用程序的code和;逻辑可以在多个平台所共享。我强烈建议单是一个伟大的多平台开发环境。在Windows和放大器; Windows手机,你的code将在.NET运行。对于Linux和放大器; OSX,您可以使用单。对于Android和放大器; iOS上,您可以使用 Xamarin 的工具。

As such, at least SOME of your app code will need to be platform dependent. However, there's a good chance that a majority of your app's code & logic can be shared across multiple platforms. I would STRONGLY recommend Mono as a great multi-platform development environment. On Windows & Windows Phone, your code will run in .NET. For Linux & OSX, you can use Mono. For Android & iOS, you can use Xamarin's tools.

虽然这里的关键是,如果你的应用程序的逻辑打包成便携式组件(即组件内搭依赖于.NET框架提供跨CLI / CLR的所有实现的部分),那么你的code一般可以不加修改地在Windows,Windows手机,Linux和OSX,Android和iOS上运行!

The key here though is that if you package your app logic into "Portable Assemblies" (i.e. assemblies which take dependencies on parts of the .NET framework available across all implementations of the CLI/CLR), then your code can generally run without modification on Windows, Windows Phone, Linux, OSX, Android and iOS!

所有你需要做的就是搭建平台特定的炮弹,使您的应用程序看起来像一个平台的本机应用程序使用要支持典型的控制和各种平台的设计比喻。

All you need to do then is build platform-specific shells that make your app look like a platform-native app using the typical controls and design metaphors of the various platforms you want to support.

HTH。

更新2012-04-06 :如果你想利用便携式图书馆,这里有一些的在MSDN 更新的文档引用便携库的新更新的版本包含在最近发布的(和良好的价值-a-的样子)的Visual Studio 11 Beta版。的

Update 2012-04-06: If you want to take advantage of Portable Libraries, here is some updated documentation on MSDN that refer to the newly updated version of Portable Libraries included in the recently released (and well-worth-a-look) Visual Studio 11 Beta.

更新2012-04-11 :新的文章,题为的创建一个连续的客户端使用便携式类库'发表于2012年3月版的MSDN杂志,说明如何使用PL的创建为Windows Phone和Windows 8的应用程序共享相同核心业务逻辑。的

Update 2012-04-11: A new article titled 'Create a Continuous Client Using Portable Class Libraries' was published in the March 2012 edition of the MSDN Magazine that illustrates how to use PL's to create an app for Windows Phone and Windows 8 that share the same core business logic.

 
精彩推荐
图片推荐