[TIMOB-15750] Android: Enable Android Hardware Acceleration by default in tiapp.xml
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-09-02T05:58:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | SupportTeam |
Reporter | Justin Toth |
Assignee | Eric Merriman |
Created | 2013-11-19T21:16:24.000+0000 |
Updated | 2017-03-21T22:52:48.000+0000 |
Description
By default Titanium apps don't come with Android hardware acceleration enabled. This causes apps to be significantly slower, especially on Android tablets.
Native Android projects with newer SDK's enable hardware acceleration by default. I propose that Titanium do the same thing, when a new Titanium project is created, add into the tiapp.xml to enable hardware acceleration.
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>11</tool-api-level>
<manifest android:versionCode="1" android:versionName="1.0">
<supports-screens android:anyDensity="true"
android:largeScreens="true" android:normalScreens="true" android:smallScreens="false"/>
<uses-sdk android:minSdkVersion="8" targetSdkVersion="14" />
<application android:hardwareAccelerated="true">
<!--activities go here-->
</application>
</manifest>
</android>
The implication of not doing this is that you're leaving it up to the developer to know that they should enable hardware acceleration for Android. Titanium developers without native Android experience will not know to do this, and then will be wondering why their Titanium apps don't perform as well on Android as native apps do.
Perhaps a duplicate of TIMOB-7508?
Looks like it. Maybe the tiapp.xml sample above could be added to that other ticket, as it doesn't show how to enable it.
Dupe of TIMOB-7508.
Closing ticket as duplicate with reference to the above comments.