Make an Android App to Upload Your Music
Developing a cute user interface for Android apps tin can be a time-consuming endeavour. Hither are some of the steps we typically go through to design an app:
- We brainstorm to brainstorm then describe (with paper and pen) what the UI should await like. In other words, nosotros do a wireframe of the app.
- Nosotros create the actual design of the UI from the wireframe in design software similar Photoshop or Sketch.
- Nosotros translate the UI blueprint to bodily lawmaking in Android Studio. Here nosotros code the business logic. Information technology'due south recommended we also adhere to the material design principles.
And this is only the tip of the iceberg—designing an app is a lot of work! All these tasks can be time-consuming—especially if you're the merely one doing them.
Yet, in this already highly competitive app marketplace, y'all accept to move fast and brand sure your app has a beautiful user interface (in addition to making certain your code is bug-free) or else users will go and install your competitors' apps.
Fortunately, CodeCanyon offers a broad range of beautiful application templates to kickstart your mobile app project. In this tutorial, I'll help you go started with 1 such template, called Android Textile UI Template 3.0. We are going to build a material design music role player for Android using this template and also explore some of its useful functionality.
If music be the food of love, play on. — William Shakespeare
Prerequisites
To be able to follow this tutorial, you'll need Android Studio iii.0 or higher.
i. Get the Template
To brainstorm building the music app, yous'll need an account with Envato Market. And so sign upwardly if you haven't already, and purchase the Android Material UI Template three.0 on CodeCanyon. Yous'll see how much work it saves y'all!
After y'all've successfully purchased the template, the template's source lawmaking is available in a Goose egg file—so make sure you download that ZIP file to your computer.
ii. Unzip the File
Now visit the folder where the ZIP file was downloaded and unzip or extract information technology.
When you enter the root folder and click on the Project folder, you'll run into a list of template folders. Hither is what I have on my Windows 10 motorcar after extracting it. Note that when you purchase this template, you lot have access not merely to theMusic App template merely likewise to eight other templates (as you can see in the image to a higher place).
3. Import the Template
Burn up Android Studio three and select File>New>Import project...
Make sure to navigate to the binder where the extracted template is located and select the Music App template to import.
After a successful import, an Android Gradle plugin update dialog will popular up. It's recommended you lot click on the Update button—to allow Android Studio to upgrade our Gradle plugin to the latest version (3.0.0
) for us.
When Gradle has finished syncing your projection automatically, you lot'll run across this mistake in Android Studio because nosotros accept successfully upgraded our Gradle dependency to iii.0.0
.
To resolve this, visit the projection app's module build.gradle file and useoutputFileName
instead ofoutput.outputFile
within the release build type configuration settings. Make sure yours is like to the 1 in the screenshot below.
Inside the same build.gradle file, also exercise the following:
- Update your
buildToolsVersion
to'26.0.ii'
. - Fix
targetVersion
andcompileSdkVersion
to26
. - Make sure the Android artifacts are updated likewise.
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:26.1.0' compile 'com.android.back up:cardview-v7:26.1.0' compile 'com.android.support:recyclerview-v7:26.1.0' compile 'com.android.support:blueprint:26.one.0' compile 'com.squareup.picasso:picasso:2.v.two' compile 'com.android.support:back up-v4:26.1.0' compile 'com.balysv:cloth-ripple:1.0.two' }
These Android artifacts are available at Google'southward Maven repository. So visit your project's build.gradle file to include information technology.
allprojects { repositories { jcenter() google() } }
Past adding the artifacts, we have taught Gradle how to detect the library. Make certain you recollect to sync your project afterward calculation them.
Notice that this template uses the Picasso artifact to load and display the images. You tin easily swap it for Glide instead if you want.
Now, if yous run the projection, y'all'll get an fault displayed on Android Studio Logcat.
To resolve this error, go to /data/Tools.java
and remove thegetAPIVersion()
method. Brand sure you alter the following methods—in the screenshot below—in your code to exist similar to what we have here.
Yous can come across how well structured the project files are. You're brash to dive in and take a expect at the source code (it's easily understandable). While there, y'all can freely modify any part of the code to suit your needs.
For instance, if you don't similar the colour choices used for the template, nothing is stopping you from visiting the colors . xml resource and modifying them to suit your taste.
4. Examination the App
Finally, y'all can run the app!
You can tell that this music app interface is well designed. Past default, the starting time tab is selected—information technology shows a listing of songs available. Click on whatsoever of the songs and enjoy the music that'due south being played (though just one song is bachelor in the app).
Annotation that this template doesn't list the songs available on the host device. Instead, it comes with its own dummy data (for sit-in purposes). So you'll need to code the functionality for listing the songs on the host device. The dummy data class generator is located at /information/Constant.java
.
If you click the caret inside the electric current playing song container (located at the bottom of the screen), it will open up a overnice-looking detail activity about the current song playing. Here we can easily implement more functionalities such as shuffle, echo, and movement to the next or previous song. Note that these functionalities aren't implemented by default in the template.
Detect that this beautiful template interface is an Android tabbed interface using ViewPager
. If y'all swipe right, you'll meet the list of albums with pictures in the tab.
If yous swipe correct again, you'll encounter the listing of artists displayed in the current tab.
Swiping to the last tab shows the playlists. Hither, yous can even add a new playlist by clicking the "+" toolbar menu.
Call back, if yous want to make some money from this app by displaying ads, yous can easily integrate it with AdMob. To learn about how to integrate AdMob with an Android app, check out my tutorial hither on Envato Tuts+.
More Amazing Music App Design Templates From CodeCanyon
Y'all'll save a lot of time by creating with music app design templates. If you want to see other options you have, I've grabbed a some of the best music apps to create for music streaming on Android from CodeCanyon.
one. Android Music Player—Online MP3 (Songs) App
Of all the music app design templates constitute on CodeCanyon, this is the all-time seller. Users can stream songs also as playing music on their phones. Songs can be filtered past category through the app. Unlike an Android music player template that's free, the UI also includes dark manner. The Android Music Player template is one of the all-time choices for code beginners, experts, and everyone in between.
ii. Your Radio App
The name "Your Radio App" is fitting for this Android music template. Users can find and listen to the music that interests them thanks to unlimited categories. It besides supports a sleep timer, favorites, sharing, and more than personalized features. Endeavor it out if you want a material design music player for Android.
three. Android Online Radio
With a more than four.5 rating on CodeCanyon, Android Online Radio is one of the acme music app blueprint templates available. The UI is sleek and modern, and information technology comes in dark mode. Take advantage of Google AdMob to monetize your piece of work. If yous've been searching for a material blueprint music thespian for Android, you'll like this template.
4. Blood-red—Android Online Music Player With Admin Panel
Cherry rounds out our listing of music app design templates from CodeCanyon. This music Android app theme supports both online and offline listening. Users can run Cherry in the background while they apply other apps. It even supports multiple languages, and then y'all tin reach a larger audience. Very few Android music player templates that are free can say that.
Larn to Code Android With Envato Tuts+ Tutorials
Learning how to code is a useful skill, but it does take time to pick upwards. If you're prepare to start learning, you lot'll want to bank check out the Envato Tuts+ YouTube channel. You'll find useful coding video courses and tutorials. There are even links to full Envato Tuts+ coding courses!
You tin go started with this free course on becoming a spider web developer:
Written Android Tutorials From Envato Tuts+
Head over to Envato Tuts+ for even more helpful Android and coding tutorials! Learn everything from converting WordPress websites into mobile apps using AJAX in PHP and jQuery, and a lot more. Here are a few tutorials to get yous started:
Keep Coding, Keep Learning!
App templates are a great style to jump-first your next development project or to acquire from other people'south work. This commodity showed you how we quickly created a nice-looking music app using Android Fabric UI Template 3.0 on CodeCanyon. We also went through some of the all-time apps to create for music streaming on Android. Remember, if you're looking for inspiration or you're building an application and need aid with a particular feature, then yous may observe your answer in some of these templates.
Envato Market has hundreds of other Android app templates that yous can cull from. There are templates for games and consummate applications, likewise as comprehensive starter templates like the one we used in this mail. Then take a expect, and you simply might save yourself a lot of piece of work on your next Android app.
If you desire to explore more iOS apps and templates, then bank check out some of our other posts on CodeCanyon app templates!
This postal service has been updated with contributions from Nathan Umoh. Nathan is a staff writer for Envato Tuts+.
Source: https://code.tutsplus.com/tutorials/build-a-music-app-with-an-android-app-template--cms-29966
0 Response to "Make an Android App to Upload Your Music"
Post a Comment