简体   繁体   English

在android上开发android

[英]developing for android on android

I want to be able to develop and immediately run android apps on my device. 我希望能够在我的设备上开发并立即运行Android应用程序。 I've played with sl4a and a bluetooth keyboard, but the app and ide weren't designed for what I want to do with them. 我玩过sl4a和蓝牙键盘,但应用程序和ide不是为我想用它们而设计的。 what are my options? 我有什么选择?

clarification : I want a mobile dev env that doesn't involve any computer (other than my android device). 澄清 :我想要一个不涉及任何计算机的移动开发环境(除了我的Android设备)。 I'd like a simple code editor, like emacs or scite ideally, and some kind of complete interpreter or compiler for the full android api that runs on the device . 我想要一个简单的代码编辑器,比如emacs或scite,以及某种完整的解释器或编译器,用于在设备上运行的完整android api。 I'm dreaming, clearly, but how close can I get to that today? 我清楚地在做梦,但今天我能接近多少?

I've gotten Vim working really well in ConnectBot on my Milestone. 我已经让Vim在我的里程碑上的ConnectBot中工作得非常好。 I needed root privileges because of where I put the files, but you might be able to find a work around without it. 我需要root权限,因为我放置文件的地方,但你可能找不到它的工作。

See this link: Native Vim for Android 查看此链接: Native Vim for Android

See also my comment after the post. 在帖子之后另见我的评论。 I've got $HOME setup on my sdcard, and a bunch of Python plugins and colorschemes in ~/.vim/ and everything just works. 我在我的SD卡上设置了$ HOME,在〜/ .vim /中有一堆Python插件和colorschemes,一切正常。

Of course this requires you to be comfortable working in Vim... I've gone back and forth with it several times in the past. 当然这要求你在Vim工作很舒服......过去我曾经多次来回走动。 It is very strange, but once you pick up a few habits and figure out its odd vocabulary it is very nice to use! 很奇怪的,但一旦你拿起几个习惯,并找出其古怪的词汇是非常不错的使用!

I got a pure python version of Mercurial working on Android too. 我在Android上也有一个纯粹的python版Mercurial。 It was a pain, but now I can push and pull code from my repositories and keep my /sdcard/sl4a/scripts/ folders in sync with my latest changes. 这是一个痛苦,但现在我可以从我的存储库中推送和提取代码并使我的/ sdcard / sl4a / scripts /文件夹与我的最新更改保持同步。 I documented some of what was necessary in a bug report to py4a . 我在py4abug报告中记录了一些必要的内容

Like FrinkTheBrave said, you can use an ide (Eclipse is perfect, because of the Android Development Tools, but you could use any other program. If you work on Windows, and after installing the USB driver , you only need to plug your phone to the usb and hit Run (or debug), and Eclipse will copy the apk into your Android and start running. It takes less than 5 seconds. If you work on a Mac, you don't need to install anything, just plug in the phone and it works =D. Well, in Linux it is a bit more complicated ( though not impossible , I actually work with Linux), but you can still develop there =). 就像FrinkTheBrave说的那样,你可以使用ide(Eclipse是完美的,因为Android开发工具,但你可以使用任何其他程序。如果你在Windows上工作,并且在安装USB驱动程序后 ,你只需要将手机插入usb并点击Run(或debug),Eclipse会将apk复制到你的Android中并开始运行。只需不到5秒。如果你在Mac上工作,你不需要安装任何东西,只需插入电话和它的工作= D.好吧,在Linux中它有点复杂( 虽然并非不可能 ,我实际上使用Linux),但你仍然可以在那里开发=)。

Cheers 干杯

BIG BIG EDIT 大大的编辑

I've seen today just what you asked few time ago. 我今天看到你刚才的问题。 Here, take it: https://play.google.com/store/apps/details?id=com.aide.ui It's obviously hard to type on a smartphone, but it could do the trick on an EEEPad transformer. 在这里,请注意: https//play.google.com/store/apps/details? id = com.aide.ui显然很难在智能手机上打字,但它可以在EEEPad转换器上完成。 Have a good day 祝你有美好的一天

Canonical just announced that they will be bringing Ubuntu to android devices. Canonical刚宣布他们将把Ubuntu带到Android设备上。 Hopefully this will help.... 希望这会有所帮助......

http://www.engadget.com/2012/02/21/ubuntus-full-desktop-os-coming-to-multi-core-android-devices/ http://www.engadget.com/2012/02/21/ubuntus-full-desktop-os-coming-to-multi-core-android-devices/

I'm not sure about developing on Android, but you can use one of the sdks available to write your code, then copy the apk onto the device via usb and install and run it. 我不确定在Android上开发,但是您可以使用其中一个可用的sdks来编写代码,然后通过usb将apk复制到设备上并安装并运行它。

It takes less than a minute from saving the source code to running on the target hardware. 从保存源代码到在目标硬件上运行只需不到一分钟。

I use the sdk at developer.android.com and eclipse on windows xp, and use AndroZip on my phone to install the sdk. 我在developer.android.com上使用sdk,在windows xp上使用eclipse,并在手机上使用AndroZip来安装sdk。 simples ;-) 简单;-)

I've not looked into using usb debugging, but that could be even better. 我没有考虑使用USB调试,但这可能会更好。

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

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