yashsingh1/xdaforums huggingface dataset:
[Android Themes] SkylineHD:
Ok, thank you. I can not tell you how happy your tutorial has made me, I've already got a pack up and running! Sadly yesterday my computer crashed which means I have to re-write every activity in drawable.xml :/ I had atleast 100... Oh well, life goes on.

Thanks again and have a good Sunday! :)

---------- Post added at 01:01 PM ---------- Previous post was at 12:55 PM ----------

Sweet! Thank you very much :good:
[Android Themes] AndroidFanatix:
Errors?

im having errors in my icons.java file ive inclued screenshots can some one tell me what i did wrong and how to fix it
[Android Themes] SkylineHD:
This exact thing happened to me. What I did was copied and pasted my "iconpack.xml" "drawable.xml" and "appfilter.xml" codes in a word document (so you don't have to re-write all the codes and activities etc.) Then I deleted the entire project then re-imported iamareebjamal's scratchiconpack source code then followed from step 2.

Hopefully this makes sense and helps you. It's worth making sure you have the JDK (Java Development Kit), Eclipse with ADT Bundle and of course Java.

Good Luck,

- SkylineHD (another n00b, haha)
[Android Themes] iamareebjamal:
Go to Project>Clean and choose this project.

That should work
[Android Themes] AndroidFanatix:
stilll no luck

i tried this with no luck what should i do now?
[Android Themes] Vivek_Neel:
Make sure the package name is right

import packagename.R ;

Check that line
[Android Themes] AndroidFanatix:
no luck on this eathier

this didnt help eather what am i doing wrong
[Android Themes] iamareebjamal:
Then try what Vivek said
[Android Themes] vanessaem:
Check your xml files. There may be a mismatch with the naming or the item being named in the java file is not also named in the xml files mentioned. Do you have an "icon_pack" instance in your arrays.xml, an "icon_grid" instance in your id.xml, and an "icon_picker" instance in your layout.xml? The java file may be looking for those instances.
[Android Themes] RedSkyRoad:
[MENTION=4782403]iamareebjamal[/MENTION]

In step 3 (Renaming), I cannot find anything remotely the same in Eclipse as in the GUIDE....

PLEASE HELP

PS: This guide is riddled with errors. Even If I import the package it gives me errors...

[2014-06-21 20:05:51 - ScratchIconSource] Unable to resolve target 'android-17'
[2014-06-21 20:05:51 - ScratchIconSource] Unable to resolve target 'android-17'

And it tells me my package already exists in the "gen" folder
[Android Themes] vanessaem:
Almost every template I've ever imported had errors. Sometimes it's just a matter of having to update something or import a library or another asset into your file. It would be more helpful to all involved if you would tell us what type of errors you're getting.

Anyway, whenever you want to rename something, you right-click on the item, click Refractor, then Rename.
[Android Themes] iamareebjamal:
You'll get that error if you have a different target sdk than which the project was compiled even if you're Chuck Norris ;) . I can't do anything in it. It's not even actually an error. It's a warning and it fixes itself. You don't need to pay heed to it.

About gen folder error, Project > Clean and clean the project
[Android Themes] RedSkyRoad:
It does nothing. Can I delete the "gen" folder?
[Android Themes] vanessaem:
Right click on your project. Go to Properties. Choose Android on the left site. On the right a you can see list of Android API versions. Choose the proper version (Android API 17). Click Apply then OK.

If you don't see the proper version go to Windows then to Android SDK Manager and download Android API 17 (Android 4.2, 4.2.2). Then repeat the steps above.
[Android Themes] iamareebjamal:
Yes, you can.

Is there any red cross on your project in Package Explorer?
[Android Themes] RedSkyRoad:
I don't understand the testing part... Please explain it...
[Android Themes] Vivek_Neel:
Testing app in a sense.

You have to run the app either on to your phone or on emulator.

Also.

After selecting run configuration ..and clicking OK.

App will be compiled which you can get it (.apk)in bin directory of your workspace.

From there you can transfer it to your phone and install.

Test it on different launchers
[Android Themes] vanessaem:
Did this work for you? ^
[Android Themes] Eddicts:
Can anyone tell me how do i add the new code for GO launcher?They had updated their UI to 5.0 and til now i have no solution.
[Android Themes] Vivek_Neel:
Few pages back. Should have searched:D

Check http://xdaforums.com/showthread.php?p=53305356 and http://xdaforums.com/showthread.php?p=53309843 by vanesseam.

It works for me.
[Android Themes] jubin.mathai:
Where to put this code?

I understand that ic_allapps would be the app drawer icon. But I didn't got where to put the code and if it's complete!

It would be really great if you could explain it or point me to any thread!!

Thanks in advance
[Android Themes] vanessaem:
Put it in your appfilter.xml. It's best if placed towards the top of the document. Here's an example:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<iconback img1="iconback" />
<scale factor="1" />

<item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="allapps" />
[Android Themes] jubin.mathai:
Thanks a lot... :)
[Android Themes] 12onPaul12:
Hello,

First off, I'd like to thank you for creating this template and guide as I found them to be very helpful as a novice programmer.

I was able to go through every step in your guide and added three icons of my own to test on my device. The problem I am having is when I long-press on an icon on my homescreen and see my three icons under my icon pack name, I can select any one of them, but right after one has been selected, my screen shows only my wallpaper for two seconds before showing my original icon (not the one I designed and selected). I was wondering if anyone knew how to fix this issue.

I am on the newest version of Nova launcher if that could be an issue.

Thanks in advance.

EDIT: Solved. Icons must be the size required by the folder (i.e 144x144 in xxhdpi whereas mine were 500x500)
[Android Themes] iamareebjamal:
Check if there is all launcher intents present in AndroidManifest.xml and you have drawable.xml

It would be better if you could give what Icon Picker activity you are getting.

It happens sometimes with Nova Launcher that icon pack's Icon Picker overrides default Nova one and it doesn't work.
[Android Themes] 12onPaul12:
Thanks for the quick reply. I have the drawable.xml file and the corresponding names in the other files correct, so perhaps it is a problem with my manifest file.

Here is the (hopefully) relevant code from my manifest file:

<application
android:icon="@drawable/icon"
android:label="@string/theme_title" >
<activity
android:name="com.mypack.MainActivity"
android:label="@string/theme_title" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="com.anddoes.launcher.THEME" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme.gowidget" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="com.fede.launcher.THEME_ICONPACK" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="org.adw.launcher.THEMES" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.mypack.Icons"
android:label="@string/title_activity_icons" >
<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>

I don't see anything with "nova" in it, unless Nova Launcher is represented by the "fede.launcher." I'll keep looking.

EDIT: I've tried adding:

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.teslacoilsw.launcher.THEME" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.teslacoilsw.launcher.prime" />
</intent-filter>

but to no avail. It's either an issue with the manifest file or a problem with the most recent Nova Launcher, although other icon packs I've downloaded from the Play Store work just fine. I'll keep debugging.
[Android Themes] iamareebjamal:
Can you show the screenshot
[Android Themes] 12onPaul12:
The whole manifest would not fit in one screenshot, so I just copied it here:

<?xml version="1.0" encoding="utf-8"?>
(I removed this top line because it created a hyperlink which I could not post on the site.)
package="com.mypack"
android:installLocation="auto"
android:versionCode="1"
android:versionName="1.1" >

<uses-sdk android:minSdkVersion="4"
android:targetSdkVersion="19" />

<application
android:icon="@drawable/icon"
android:label="@string/theme_title" >
<activity
android:name="com.mypack.MainActivity"
android:label="@string/theme_title" >

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.anddoes.launcher.THEME" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.teslacoilsw.launcher.THEME" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.teslacoilsw.launcher.prime" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme.gowidget" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<category android:name="android.intent.category.INFO" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.fede.launcher.THEME_ICONPACK" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="org.adw.launcher.THEMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.mypack.Icons"
android:label="@string/title_activity_icons" >
<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

</application>

</manifest>
[Android Themes] iamareebjamal:
I'm talking about screenshot of your icon picker Activity you get in Nova Launcher.
[Android Themes] 12onPaul12:
Do you mean a screenshot from my phone of what it looks like as I'm about to choose my icon? Or do you mean something in Android Studio like from logcat or a specific activity's code? I guess I'm not understanding what you're asking (through no fault of your own, mind you). :)

EDIT: In Android Studio, when I'm editing the res/layout/icon_picker.xml, I can see the layout shows all the items stacked in a list one after the other. On my phone, however, when I click "Edit" after long-pressing an icon, it looks as I assume it should on Nova with the same icon placement as the other icon packs I have installed. I never see the same layout as the icon_picker.xml file (not that I want to, but maybe that's the issue?)

EDIT 2: Some more info: When I go into Nova Launcher's settings and set it to automatically apply icons, it successfully applies the generic mask (because of icon_back and whatnot), but it fails to automatically apply my three custom icons that I made. Therefore, the majority of the code is working, I'm guessing the issue just has to be with respect to applying my icons.

Could it be that my icons aren't the right size for the xxhdpi folder that they're in? I'll see if it makes a difference.

EDIT 3: SUCCESS! Apparently having too large of icons (mine were 500x500, ridiculous, I know, but I didn't think it would matter) in the xxhdpi folder makes it so you can't use your icons. I switched them to 144x144 and it works!

Thanks for all the help iamareebjamal! :)
[Android Themes] vanessaem:
144px goes into the xxhdpi folder and 192px goes into the xxxhdpi folder. If I were you, I'd scale to 192px instead of 144px because of the new higher res screens and developers are starting to trend towards making 192px icons. 144px should look good as well but perhaps you might want to stay ahead of the game by already having xxxhdpi scaled icons.
[Android Themes] 12onPaul12:
Good to know! I'll edit my post so anyone looking at it won't get confused.

Does that mean I can just create a drawable-xxxhdpi and drawable-xxhdpi folder since I don't already have them in my project?
[Android Themes] vanessaem:
Of course. :)

You can also probably keep your icons at the 500px and later scale all to whatever smaller size you want. When you have large icons to start, you have a lot more options.
[Android Themes] iamareebjamal:
Thank you all for that discussion.

I'd like to add something here. Since now, xxxhdpi (192 px) is the highest res available, Android on that DPI will show the icon perfectly and those on below resolutions will automatically resize them. But, for icons bigger than that, there'll be no more clarity to the image and it'll be just use progressively (meaning quality won't distort even if they are enlarged X times). So, it's wise to use icons of high res but not too much high because that won't make a difference after an extent.

Also, making icons dpi dependable by pasting in drawable-hdpi, drawable-xhdpi, etc makes it easier for android to guess its correct size and resize them for low res phones but if you want to avoid dpi dependability which causes problem like encountered today, place them in drawable-nodpi, it's the place Android recommends placing resources that aren't different for different DPI like Icon Pack icons, platlogo, etc
[Android Themes] LPirro:
Is there any way to get the ComponentInfo from android app?
[Android Themes] iamareebjamal:
Though I don't remember the complete code, it's done by using PackageManager. You can take a look at many of the open source theme templates on github. Anyone having icon request feature will have the implementation.
[Android Themes] hannooi:
wish to have full template with all icons and code to make it easy to change ...

i install the demo i didnt find the icon SIP with my apps as icon ...

if any one can share with icons and code it will be helpful
[Android Themes] iamareebjamal:
You are confused with the whole point of icon packs.

Nobody in the whole world can give you a template with all icons. There are billions of apps. Icon Pack makers choose themselves which icon to include and theme. One way will be to add popular apps as icons and appfilter but that'll defeat the purpose of providing as scratch experience as possible to the users to know the process of icon pack making rather than code copying and pasting.

Plus, there isn't any partial or demo version. If you wanted a full app with UI, you would want to look for Icon Pack Templates.
[Android Themes] SimoneSessa:
It doesn't work..

I've imported it (and ViewPagerIndicator) and i've created the apk file. I've installed it into my phone but:

- again the first installation, I choose "open" but there isn't nothing.

- the icon there isn't in apps drawer.

(sorry for my english)
[Android Themes] iamareebjamal:
It will NOT add an app UI as stated several times in this thread. Maybe, I need to add large red text in OP.

That icon chooser will show up when you try to pick any icon from Home Screen, as it's very clear name suggests.
[Android Themes] SimoneSessa:
Sorry, but there are a lot of messages. Now I try to add the icon in app drawer. (If you can suggest to me a guide, please do it. Else, I will search a guide for myself.

Yes, ok.
[Android Themes] iamareebjamal:
If you want pre-made things, search for Icon Pack Templates.

Or, if you want to learn how to do it, unfortunately there's not a specific tutorial intended just for that task. There are many Android Development tutorials though around the web.
[Android Themes] Zeph.yr:
Faster way to do appfilter?

I'm working on a gradient icon pack and I'm about 500 icons in right now. I've been using activities.droidicon.com to find the correct app activities for AppFilter.xml, however, that site is down all the time, and when it is up, it's difficult to find the correct activities. (It doesn't have new apps listed like the stock apps on the S5, for example). Is there a faster way to do the Appfilter? Is anyone willing to share their appfilter.xml?

This is a great guide, btw. Super helpful!
[Android Themes] vanessaem:
There's no fast way to do the appfilter as far as I know. In fact, other than doing the actual icons, it's the slowest part of the process. Here are three sites that may help you a bit: http://czarnomorski.pl/search.php (DCikonZ's site where you can find activity names), this site http://activities.tundem.com/ also has activities and https://github.com/a-random-package/AppFilter/blob/master/appfilter.xml (an appfilter by a-random-package). It may not have all of your apps but it has the most popular ones and it will help you get started.
[Android Themes] gkaipale:
I have faced a problem and I can't find the solution, if anybody can help me I will be deeply obliged.

Iconback.png is not applied to all launchers under the unthemed icons.

Only in Apex and Holo. In Nova and ADW only a portion of them get the iconback.png.

Any idea? Am I missing something in appfilter or other xml files? (drawable and iconpack)
[Android Themes] vanessaem:
Do you have the iconback declared in your appfilter.xml?

Ex.

<?xml version="1.0" encoding="utf-8"?>
<resources>
<iconback img1="iconback" />

The iconback does not need to be declared in your drawable and/or iconpack xml files.
[Android Themes] gkaipale:
Yes.Iconback is working perfectly in Apex.Look at the screen from Nova.Some of them are masked, other have only iconupon.jpg and other nothing.How is it possible?
[Android Themes] vanessaem:
So do you have this in the appfilter.xml?
[Android Themes] gkaipale:
Yes I am using them all, as shown in the screenshot.But In Nova and ADW they are not applied correctly.

---------- Post added at 03:05 PM ---------- Previous post was at 03:00 PM ----------

In the screenshot, Alpha bank mobile icon has iconback and iconmask applied correctly.But in the other icon, S translate, only iconmask is applied and not iconback.Next to them you can see 2 more icons that have none.And it seems random.Any idea why that happens?
[Android Themes] vanessaem:
Try deleting your icon apk from your device then in eclipse, go into your bin folder and delete the apk file you see there. Reinstall. If that doesn't work go in and delete the icons in bin > res > crunch and whichever drawable folder that contains the copy of your icons. Reinstall.
[Android Themes] gkaipale:
Found it...So stupid of me. I had added iconback2 and iconback3 in appfilter and i had only iconback.jpg in res>xxhdpi folder. That was not a problem for Apex or Holo, but for Nova and ADW was considered an empty file. So i deleted references from appfilter and all are ok now.

Thank you for your help, you are the best.
[Android Themes] OnePersonCo:
First of all, thank you for the template and all the discussion as it is very helpful.

Although I was able to successfully publish my icon pack, I have run into a problem. The issue is that I would like to implement an icon request feature into my app. I understand how to create a simple email link to my website, but I was wondering if it is possible to add a request feature like that found in The1Dynasty's template. The problematic part is that I have already published my app to the Play Store, so I am not sure if it is possible to simply switch over to the other template. Are there certain parts (like project name, version name, keystore, etc.) that have to be the same in order to "update" my current app? Or is it not possible to update my app with an entirely new template? (Meaning I would have to extract the necessary files from one template and put them into my existing code). Thanks in advance.

By the way, I mean no offense by wanting to switch to another template. I found yours to be much more straight forward and easier to understand than any other. I'm just trying to please my users. =/
[Android Themes] vanessaem:
Adding an icon request feature is a bit more involved than simply adding a website or email link. Have you tried setting up the1dynasty's template?

Also you can make as many changes as you want to your template but keep the same package name. All you'll need to do is change the android:versionCode and android:versionName numbers in your AndroidManifest.xml, and republish to update in the Play Store. No need to change the project name, version name, or keystore.
[Android Themes] OnePersonCo:
Thank you, that last bit explains everything I needed to know. I was worried Google Play would recognize that it wasn't the same project somehow and that I would be wasting my time, so thanks for assuring me that is not the case. I'll spend some time tomorrow setting up the1dynasty's template and post here if I have any further questions. Thanks again for your help.

EDIT: After rereading your post, I just want to make sure I'm understanding you correctly: So I can download the1dyansty's template, create a new project based on it (separate from my currently published apk's project files), and republish over the existing apk with the separate "the1dynasty" project, essentially abandoning the existing apk's project files?
[Android Themes] vanessaem:
As long as you keep the same package name, you can make any change you want and it won't make difference. Anything new uploaded to the Play Store will be just considered an update once you've changed the android:versionCode and android:versionName numbers in your AndroidManifest.xml.
[Android Themes] mloc33:
OK, I decided to come back and give it another go, now I`m faced with this, as far as I remember it was`nt there when I left it...

Lines 7 & 9

Should I just wait until the OP is updated??
[Android Themes] iamareebjamal:
Actually, it's not an error. It's just a warning

You don't need to worry about that. I got 1000 like those in my app

You need to worry when there is a red sign.

Edit:

But I see, you've imported your project the wrong way

The thing which you should have imported is inside another project

So, you'll have to delete this project.