Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
Dani Mahardhika edited this page Sep 13, 2017 · 5 revisions

1. Download Sample Project

First you need to download sample project from here.

2. Import Project to Android Studio

Copy wallpaperboard-sample-master.zip to your Android Studio Project folder, then extract it. After that you will see wallpaperboard-sample-master folder, rename it to your project name. You may want to delete wallpaperboard-sample-master.zip.

Open Android Studio, choose File - New - Import project or Import project (Eclipse ADT, Gradle, etc.). Choose your project folder, from example on image above my project name is MyProjectName.

3. Rename Project Package Name

Take a look at Project Navigation on left side of Android Studio, expand app -> expand java -> expand com.dm.wallpaper.board.sample.

On top side of Project Navigation, choose Show Options Menu, uncheck Compact Empty Middle Packages.

For example I want to change package name to `com.mypackage.name`. Right click on `com` -> new -> package -> type `mypackage`. Right click on `mypackage` -> new -> package -> type `name`. Now it should looks like image below.

Select activities, applications, licenses, and services package (ctrl + left click). Drag to free package, choose Refactor. Now it should looks like image below.

Check Compact Empty Middle Packages and delete com.dm.wallpaper.board.sample package.

Open AndroidManifest.xml

Change package="com.dm.wallpaper.board.sample" to your package name, for example package="com.mypackage.name". Still inside AndroidManifest.xml, scroll to bottom, take a look on image below, make sure B is same to A.

Open module:app build.gradle, change applicationId "com.dm.wallpaper.board.sample" to your package name, for example applicationId "com.mypackage.name". Open Edit -> Find -> Replace in Path. Text to find import com.dm.wallpaper.board.sample.R;. Replace with import com.your.package.name.R;, example import com.mypackage.name.R;. Click Find then choose All Files.

Sync Project with Gradle Files

DONE