android - 为什么我们必须重建应用程序才能看到设备的一些变化?

标签 android apk titanium-mobile

<分区>

但对于模拟器我们不需要重建,它会反射(reflect)变化而无需重建应用程序。只需转到后页并来到更改的页面,您就可以看到所做的更改。 我的问题是模拟器和设备是否使用不同的 apk 文件?如果不是那么为什么我们需要重建应用程序以部署在设备中?

最佳答案

这是因为 FastDev。结合 Android 模拟器 Titanium 为 Android 开发也会启动 FastDev 服务器。

什么是 FastDev?

好吧,简而言之,FastDev 允许即时替换应用程序的资源。如果您更改 *.js 文件并单击运行,则用于模拟器的文件将简单地替换为您更改的文件。这是可能的,因为在模拟器上钛是及时解释的。

The Fastdev server enables Titanium developers writing Android apps to rapidly test and see the changes they make in code. Instead of re-deploying the app after changes are made, the app requests whatever it needs under Resources from the Fastdev server. In other words, when Fastdev is running and your app requests app.js (or just about anything under Resources), the latest version of app.js on your dev machine gets served up to the app – there is no need for the full build-and-release process.

Currently Fastdev is only supported for the Android Emulator, but it will also be supported for devices in an upcoming release.

而且 FastDev - 不幸的是 - 直到今天还不能用于设备。

详细信息请访问 http://docs.appcelerator.com/titanium/latest/#!/guide/Fastdev_Reference_for_Android

关于android - 为什么我们必须重建应用程序才能看到设备的一些变化?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12635140/

相关文章:

javascript - 混合移动应用程序

javascript - 我的 iPhone 5s 无法使用钛合金进行水平旋转

java - 如何在我的 Activity map 中添加按钮?

android - 同时安装两个具有相同代码库的 Android 目标

java - 重载 APK 并创建自定义应用程序

java - dex2jar 不是内部或外部命令,也不是可运行的程序或批处理文件

javascript - 将闪烁边框应用于 appcelerator 中的 View

java - 创建新的 SoapObject 炸毁 android 应用程序

android - 如何以编程方式禁用 Android USB 调试

android - 如何在 Android Studio 中签署测试 apk?