[Android Themes] upndwn4par:
Import CM11 Template in Eclipse

IMPORT THE CYANOGENMOD TEMPLATE​

1) FIRST! We open a logcat console! xD

In Eclipse navigate to

Window --> Show View --> Other... --> Android --> Logcat --> OK!

2) Download the Official Template from here and extract it where You want:

https://github.com/CyanogenMod/android_packages_themes_Template

3) Open Eclipse

File--> Import --> Android --> Existing Android Code Into Workspace

and select the root folder where the project is located, change its name, tickmark "Copy projects into workspace" and click Finish

DONE!

4) The first thing we'll do is to change the package name in AndroidManifest.xml.

- We're going to edit and add the following lines:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="[COLOR="Red"][B]com.your.theme.template[/B][/COLOR]">
<!-- Add build version number, #=number -->
[COLOR="SeaGreen"] [B]android:versionCode="#"
android:versionName="#" >[/B][/COLOR]
<!-- To avoid compatibility & permissions problems -->
[COLOR="SeaGreen"][B]<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" />[/B][/COLOR]
<!-- Add this and your theme won't ask for strange permissions -->
[COLOR="SeaGreen"][B]<uses-permission android:name="android.permission.SET_WALLPAPER" />[/B][/COLOR]

<uses-feature android:required="true" android:name="org.cyanogenmod.theme" />

<application android:hasCode="false" android:icon="@drawable/ic_launcher" android:label="[COLOR="red"][B]Theme name[/B][/COLOR]">
</application>

<meta-data android:name="org.cyanogenmod.theme.name" android:value="[B][COLOR="red"]Theme name[/COLOR][/B]"/>
<meta-data android:name="org.cyanogenmod.theme.author" android:value="[COLOR="red"][B]Your name[/B][/COLOR]" />

</manifest>

NOTE: Do not add comments (<!-- blablabla -->)

- Navigate to

Project and

1. Clean (build only the selected projects) (disable also "build automatically")

2. Build project

As Youu can see gen files got updated :)

5) Run and try the theme!

Connect Your device and grant ADB access, then Select Your project and just press ctrl+f11or or Navigate to Run -->Run and select Your device

6) Export a Signed APK for the Google Play Store

- Right-Click on Your project and navigate to

Android Tools --> Export a signed application package

We select Create new keystore, save keystore where You want and add a password. When finished click next.

- In next screen

We add:

- Now choose a destination and a name for Your signed apk.

and click Finish

7) Oh s****! an Error during compilation process !!!!

1 - Open the LOGCAT console!

and search for the error!!

Fix it!!!!

F.A.Q.:

1 - " OMG that desktop wallpapers are awesome, can You share?? pls pls pls pls :fingers-crossed: "

Sure!

https://dribbble.com/shots/1355879-Meteor-Wallpaper

http://images8.alphacoders.com/393/393340.jpg

2 - "d***q!, dat theme/icons are too awesome :eek:"

I'm simply running Lubuntu + Numix candies:

and my personal menu icon

https://www.dropbox.com/s/u0lo7zqn7f95q3o/Senza nome.png

Credits (listed randomly):

- [MENTION=3624922]hoppermi[/MENTION] (support)

- [MENTION=4193338]CyanogenMod[/MENTION]

- [MENTION=4790327]blinqipa[/MENTION] for Android studio thread

- [MENTION=4884893]ivn888[/MENTION]

- Cristian Giordano for Theme Debugger App

- [MENTION=222739]google[/MENTION] (Eclipse ADT, SDK)

- [MENTION=318025]eclipse[/MENTION] (Eclipse IDE)

- [MENTION=3924617]iBotPeaches[/MENTION] for apktool

- [MENTION=4782403]iamareebjamal[/MENTION]

- Ivan Botty

NOTE:

Please, don't use this guide to develop another Android L Theme! :silly::silly::silly:

​