[HTC Sensation] mikrosmile:
Theming thread

How to make icon pack for DarkSense ROM.

There are two ways of creating Icons pack. I prefer Eclipse way, because you dont need to rely on existing apk.​

In VTS (Virtuous Ten Studios)

1. Download Sample.apk and create new project:

View attachment 1825967

2. Open source folder. go to - yourproject/apkname/Data/smali/com/darksense/rosie/theme/Sample

Change folder name "Sample" to whatever icon's pack name. so it should be like this :

com/darksense/rosie/theme/YourNewName/

Refresh project in vts.

3. Open Manifest and

change package name -

package="com.darksense.rosie.theme.Sample"

to -

package="com.darksense.rosie.theme.YourNewName"

4. Then change activity info

android:name="com.darksense.rosie.theme.Sample.MainActivity"

to

android:name="com.darksense.rosie.theme.YourNewName.MainActivity"

Folder, package name and activity name should be the same

Refresh project.

5. Go to string and change names to yours

6. Open drawable-hdpi and add , change icons to your new icons with keeping the icons name as in the sample.​

In Eclipse

1.Create new project. name package like this

com.darksense.rosie.theme.YourIconsName

2. After creating project go to MainActivity and replace class MainActivity with this:

here your package name and imports..

public class MainActivity extends Activity {
public void onCreate(Bundle bundle)
{
super.onCreate(bundle);
}

}

3. Open manifest and look for line

<action android:name="android.intent.action.MAIN" />

under this line add this

<action android:name="darksense.rosie.launcher.THEME" />

and remove this

<category android:name="android.intent.category.LAUNCHER" />

4. Open strings and replace data with this

<string name="theme_title">YourIcon name</string>
<string name="theme_description">YourName DarkSense Icon pack</string>

5. Go back to manifest and change (two times) from

app_name

to

theme_title

6. Go to values and create new xml file called arrays

paste this data into arrays resources

<string-array name="icon_pack">
<item>com_mikrosmile_store_mainactivity</item>
</string-array>

7. Add your icons in drawable-hdpi.

Refrsh project and try it. If everything is good, then export it as apk.​

If you are developer of existing icons for other ROMs

Open manifest and change:

<action android:name="****.rosie.launcher.THEME" />

to

<action android:name="darksense.rosie.launcher.THEME" />

How to add more icons for more applications​

In both ways you can add as many modified icons for apps as you want. Just in case of VTS you cannot remove existing icons.

To find the icon name install app Android System Info (from Google Play)

Open application and go to Apps tab.

Click on application you want to modify, open its AndroidManifest and look for

1. Package name - at the top of manifest = android: package = "com.***.***.***"

2. activity - Look for line with android.intent.action.MAIN and just few lines above it you will find <activity android:name=".***"

sometimes there will be .MainActivity sometimes can be like .xx.xx.Main and exaclty with dot before name.

if activity name here <activity android:name=".***" starts without dot, try to use this name for icon, without package name.

Example AdAway application.

Package name - org.adaway

main activity - .ui.BaseActivity

together org.adaway.ui.BaseActivity convert it to org_adaway_ui_baseactivity and name the icon exactly like that.

Example 2 in case of if.

main activity - ui.BaseActivity

your icons name - ui_baseactivity

You finish? Send me pm and i will add it to DarkSense Store.