简体   繁体   English

移动开发(Android & iOS)初学者需要指导

[英]Mobile development(Android & iOS) beginner needs guidance

So, I recently took a job where I need to develop a fairly simple notification app on both iOS and Android. I've never done mobile development, besides a hello world in Android and some very basic stuff in Objective-C. I've never really programmed Java either, but it shouldn't be hard for me to learn enough to make these apps.所以,我最近接受了一份工作,我需要在 iOS 和 Android 上开发一个相当简单的通知应用程序。我从来没有做过移动开发,除了 Android 的 hello world 和 Objective-C 的一些非常基本的东西。我从来没有真正编程 Java,但我应该不难学习足够的知识来制作这些应用程序。 Here's where I need help:这是我需要帮助的地方:

I need to find the best way to get started, I want to have Android and iOS developing environments up and running by the end of the day.我需要找到最好的入门方法,我希望在一天结束时启动并运行 Android 和 iOS 开发环境。 My desktop broke leaving me with only a ubuntu system, however I can install different operating systems if need be.我的桌面坏了,只剩下一个 ubuntu 系统,但如果需要,我可以安装不同的操作系统。 Could somebody show me how to get everything set up nicely?有人可以告诉我如何很好地设置所有内容吗? I want to have both of these environments set up before I begin to learn the code necessary, this way I can determine if it will be beyond my abilities and I can tell my employer that he should find another guy.我想在开始学习必要的代码之前设置这两个环境,这样我就可以确定它是否超出了我的能力范围,并且我可以告诉我的雇主他应该另找一个人。

I am most comfortable in windows, however use ubuntu on a daily basis as well, and would consider myself averagely competent with it.我在 windows 中最舒服,但是每天也使用 ubuntu,并且我认为自己一般都能胜任。 Is iOS development impossible without running os x?如果不运行 os x,iOS 开发是不可能的吗? Could I run an os x virtual machine if need be?如果需要,我可以运行 os x 虚拟机吗?

Sorry for all the questions, I thank anybody that is willing to offer me some help.抱歉所有问题,我感谢任何愿意为我提供帮助的人。

EDIT: I am just going to add that I have an android device(Tmobile Samsung Galaxy S2), and an iOS device(Old iTouch), in case this makes any difference.编辑:我只想补充一点,我有一个 android 设备(Tmobile Samsung Galaxy S2)和一个 iOS 设备(旧 iTouch),以防这有什么不同。

Ubuntu will work just fine for Android Development. Ubuntu适用于Android开发。 You're going to need a machine with Mac OS for iOS development. 您将需要一台支持Mac OS for iOS开发的机器。

You can always run a Windows machine and get two Virtual Boxes for Mac OS and Ubuntu. 您可以随时运行Windows计算机并为Mac OS和Ubuntu获取两个虚拟机。

For Android: You'll need to download the Android SDK and then get an IDE of your choice. 对于Android:您需要下载Android SDK,然后获得您选择的IDE。 Android has a Plug in with Eclipse. Android有一个Eclipse插件。 You can use Netbeans or whatever. 你可以使用Netbeans等等。

http://developer.android.com/index.html http://developer.android.com/index.html

Go to this website and follow their instructions. 访问该网站并按照其说明操作。

For iOS you'll need to Download XCode and then they explain everything for that. 对于iOS,您需要下载XCode,然后他们会解释一切。

There's really not all that much to set up. 设置真的不是那么多。 You may want to add the SDK tools to your path so that you can run them from your command line but that's about it. 您可能希望将SDK工具添加到路径中,以便可以从命令行运行它们,但这是关于它的。

Download and code. 下载和编码。

As far as I know, for iOS development you need xcode, so on a virtual machine, yes it should work. 据我所知,对于iOS开发,你需要xcode,所以在虚拟机上,是的,它应该工作。 My first advice is to begin with the technology you know the most, which seems, in your case to be Objective-C. 我的第一个建议是从您最了解的技术开始,在您的情况下,似乎是Objective-C。 Do the first app using Objective-C and after go for Android. 使用Objective-C做第一个应用程序,然后去Android。

Windows or Ubuntu has no importance for Android development, you could use Eclipse and the emulator provided by the SDK, or better, an Android phone. Windows或Ubuntu对于Android开发并不重要,您可以使用Eclipse和SDK提供的模拟器,或者更好的Android手机。

To set up your development environment just follow : 要设置开发环境,请按以下步骤操作:

Android : http://developer.android.com/sdk/installing.html Android: http//developer.android.com/sdk/installing.html

iOS : https://developer.apple.com/devcenter/ios/index.action iOS: https//developer.apple.com/devcenter/ios/index.action

For Ios developent u require mac os on which u can need to install Xcode and ios simualtors. 对于Ios开发,你需要安装Xcode和ios simualtors的mac os。 For Android developend u need to install Eclipse and emulator sdk 对于Android开发,你需要安装Eclipse和模拟器sdk

The developer.android.com has nearly everything you need to know about android development. developer.android.com几乎掌握了有关Android开发的所有知识。 The recommended IDE is Eclipse, it has a great plugin for managing the virtual devices and using the SDK. 推荐的IDE是Eclipse,它有一个很棒的插件,用于管理虚拟设备和使用SDK。

http://developer.android.com/sdk/installing.html http://developer.android.com/sdk/installing.html

That should cover everything you need for setting up the environment for android. 这应该包括为android设置环境所需的一切。

The XCode IDE for IOS is only available for OSX. IOS的XCode IDE仅适用于OSX。

For cross development you can look at something like MonoTouch, which lets you write C# that works on both android and IOS. 对于交叉开发,您可以查看MonoTouch之类的东西,它可以让您编写适用于android和IOS的C#。

Android: 安卓:

Windows,Mac or ubuntu is ok.The Eclipse IDE will work in all. Windows,Mac或ubuntu都可以.Eclipse IDE将适用于所有。

iOS: iOS版:

Mac.The IDE xcode will work only in this OS. Mac.IDE xcode仅适用于此操作系统。

Only mac system believe me don't try the Virtual machine,stuffs like that it won't work.I've personally experienced so many problems with the VM thing 只有mac系统相信我不会尝试虚拟机,这样的东西就不行了。我个人经历过很多关于VM事情的问题

The problem is mac os needs higher configurations which our normal laptops and desktops won't support and trying hackintosh is also tiresome and eventually you'll end up wasting lots of time 问题是mac os需要更高的配置,我们的普通笔记本电脑和台式机不支持和尝试hackintosh也很烦人,最终你最终会浪费大量的时间

so if you want to spend less money only then you can try mac-mini 所以,如果你想花更少的钱,那么你可以试试mac-mini

Android & iOS: Android和iOS:

Buy Mac product this is the only reasonable way 购买Mac产品这是唯一合理的方式

Nowadays the best variant for developing for both platforms(iOS, Android) is using Mac product with MacOS where you can install necessary IDE(Xcode, Android Studio...) and simulators and emulators如今,为这两个平台(iOS、Android)开发的最佳变体是将 Mac 产品与 MacOS 一起使用,您可以在其中安装必要的 IDE(Xcode、Android Studio...)以及模拟器和仿真器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM