English 中文(简体)
优化项目代码
原标题:Optimize the project code

我一直在开展一个过于复杂、空间太多、图像太多和 Java档案的项目。

某些地方 我阅读了优化守则的保障措施。

I have used it, but it s still does not have an effect on my final APK file.

我可能已经犯了一个错误。 如下:

我如何能够优化我的法典?

最佳回答

你可以将此补充到违约行为。 财产。 我是在没有问题的情况下人工添加的。

如果您加入:

保障。

如前所述,只有在出口签名的申请时才会使用ProGuard(Android Technologies => Export 签名 Application)。

如果你在安乐施会启动这一项目,则不会创建代保人档案(延伸到违约,如2.3>properties)。

为了能够自动建立这一系统,简单地更新了SDKAnders 2.3,并建立了一个有现有来源的新项目(这是你目前拥有的项目的来源)。

理论上,将设立保.。

Without optimizations the compiler produces very dumb code - each command is compiled in a very straightforward manner, so that it does the intended thing. The Debug builds have optimizations disabled by default, because without the optimizations the produced executable matches the source code in a straightforward manner.

问题回答

请参看。 页: 1

From documentation:

ProGuard is integrated into the Android build system, so you do not have to invoke it manually. ProGuard runs only when you build your application in release mode, so you do not have to deal with obfuscated code when you build your application in debug mode.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签