Review: Music Player & HD Video Player – Android App + Admob Integration
Introduction:
I recently had the opportunity to review the Music Player & HD Video Player – Android App + Admob Integration, and I must say that it’s a comprehensive and feature-rich application that can play a wide range of audio and video files. In this review, I’ll go over the app’s key features, design, and functionality, as well as its integration with Admob for revenue generation.
Design and User Interface:
The app’s design is sleek and modern, with a user-friendly interface that makes it easy to navigate and manage your music and video files. The app’s layout is clean and intuitive, with clear labels and icons that make it easy to find what you’re looking for.
Key Features:
The app supports a wide range of audio and video formats, including MKV, MP4, M4V, AVI, MOV, 3GP, FLV, WMV, RMVB, and TS. It also supports ultra HD video playback, making it one of the best HD video players for Android tablets and phones. Other key features include:
- Automatic identification of video files on your device and SD card
- Easy volume, brightness, and playback control
- Playback options such as auto-rotation
- Support for both Android tablets and phones
- Ability to change theme colors
Admob Integration:
The app comes with Admob integration, which allows you to monetize your app through online advertising. This feature is easy to set up and customize, and it provides a revenue stream through interstitial ads, native ads, and other ad formats.
Documentation and Support:
The app comes with comprehensive documentation and support, including a user manual, design files, and demo APK. The seller also provides support for installing the code on your machine and offers a 30-day money-back guarantee.
Pros and Cons:
Pros:
- Comprehensive audio and video playback capabilities
- Easy to use and navigate
- Admob integration for revenue generation
- Comprehensive documentation and support
Cons:
- None notable
Conclusion:
Overall, I’m impressed with the Music Player & HD Video Player – Android App + Admob Integration. It’s a feature-rich app that provides a great user experience and comes with comprehensive documentation and support. The Admob integration is a great way to monetize your app, and the app’s design and layout are modern and intuitive. I would highly recommend this app to anyone looking to create a music and video player app for Android.
Score: 5/5
User Reviews
Be the first to review “Music Player & HD Video Player – Android App + Admob Integration”
Introduction
Are you looking to create a music player and HD video player app for Android with AdMob integration? Look no further! In this tutorial, we will guide you through the process of creating a comprehensive music player and HD video player app for Android, complete with AdMob integration. We will cover the following topics:
- Creating a new Android project and setting up the necessary dependencies.
- Designing the user interface for the music player and HD video player.
- Implementing the music player and HD video player functionality.
- Integrating AdMob into the app.
- Testing and debugging the app.
Step 1: Creating a new Android project and setting up the necessary dependencies
To start, create a new Android project in Android Studio. Choose "Empty Activity" as the project template and name your project "MusicPlayerAndVideoPlayer".
Next, add the necessary dependencies to your project. You will need to add the following dependencies:
com.android.support:appcompat-v7:28.0.0
for the Android Support Librarycom.google.android.gms:play-services-ads:18.3.0
for AdMobcom.google.android.exoplayer:exoplayer:2.12.1
for the ExoPlayer library
To add these dependencies, open your project's build.gradle
file and add the following lines:
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.android.gms:play-services-ads:18.3.0'
implementation 'com.google.android.exoplayer:exoplayer:2.12.1'
}
Step 2: Designing the user interface for the music player and HD video player
For the user interface, we will create two separate layouts for the music player and HD video player. Create a new layout file called activity_music_player.xml
and add the following code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/music_player_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/music_player_play"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Play" />
<Button
android:id="@+id/music_player_pause"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Pause" />
<Button
android:id="@+id/music_player_stop"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Stop" />
</LinearLayout>
<ListView
android:id="@+id/music_player_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
Create another layout file called activity_video_player.xml
and add the following code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/video_player_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:textStyle="bold" />
<VideoView
android:id="@+id/video_player_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/video_player_play"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Play" />
<Button
android:id="@+id/video_player_pause"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Pause" />
<Button
android:id="@+id/video_player_stop"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Stop" />
</LinearLayout>
</LinearLayout>
Step 3: Implementing the music player and HD video player functionality
Create a new Java class called MusicPlayerActivity
and add the following code:
public class MusicPlayerActivity extends AppCompatActivity {
private ListView musicPlayerList;
private Button musicPlayerPlay, musicPlayerPause, musicPlayerStop;
private MediaPlayer mediaPlayer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_music_player);
musicPlayerList = findViewById(R.id.music_player_list);
musicPlayerPlay = findViewById(R.id.music_player_play);
musicPlayerPause = findViewById(R.id.music_player_pause);
musicPlayerStop = findViewById(R.id.music_player_stop);
musicPlayerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// Play the selected music file
mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("path/to/music/file.mp3");
mediaPlayer.prepare();
mediaPlayer.start();
}
});
musicPlayerPlay.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Play the music
mediaPlayer.start();
}
});
musicPlayerPause.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Pause the music
mediaPlayer.pause();
}
});
musicPlayerStop.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Stop the music
mediaPlayer.stop();
}
});
}
}
Create another Java class called VideoPlayerActivity
and add the following code:
public class VideoPlayerActivity extends AppCompatActivity {
private VideoView videoPlayerView;
private Button videoPlayerPlay, videoPlayerPause, videoPlayerStop;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video_player);
videoPlayerView = findViewById(R.id.video_player_view);
videoPlayerPlay = findViewById(R.id.video_player_play);
videoPlayerPause = findViewById(R.id.video_player_pause);
videoPlayerStop = findViewById(R.id.video_player_stop);
videoPlayerPlay.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Play the video
videoPlayerView.start();
}
});
videoPlayerPause.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Pause the video
videoPlayerView.pause();
}
});
videoPlayerStop.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Stop the video
videoPlayerView.stopPlayback();
}
});
}
}
Step 4: Integrating AdMob into the app
To integrate AdMob into the app, you will need to add the AdMob SDK to your project. Follow these steps:
- Create a new AdMob account and create a new ad unit.
- Download the AdMob SDK for Android and add it to your project.
- Add the following code to your
MusicPlayerActivity
andVideoPlayerActivity
classes:import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView;
//...
private AdView adView;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_music_player);
//...
adView = findViewById(R.id.ad_view);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
}
Add the following code to your `activity_music_player.xml` and `activity_video_player.xml` files:
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/ad_view" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adSize="BANNER" ads:adUnitId="YOUR_AD_UNIT_ID" />
**Step 5: Testing and debugging the app**
To test and debug the app, you can use the Android emulator or a physical device. Make sure to test the app on different devices and screen sizes to ensure that it works correctly.
That's it! You have now created a music player and HD video player app for Android with AdMob integration.
Here is a complete settings example for configuring the Music Player & HD Video Player - Android App + Admob Integration:
Google AdMob Setup
To set up AdMob in your app, follow these steps:
- In the Google AdMob dashboard, create a new app and enter your app's details.
- Create a new ad unit for each type of ad you want to display (e.g. banner, interstitial, rewarded video).
- Replace the
ADMOB_APP_ID
andADMOB_BANNER_AD_UNIT_ID
variables in thestrings.xml
file with your actual AdMob app ID and banner ad unit ID.
AndroidManifest.xml Configuration
In the AndroidManifest.xml
file, add the following permissions and declare the AdMob activities:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
Activity Configuration
In the MainActivity.java
file, initialize the AdMob SDK and display the ads:
public class MainActivity extends AppCompatActivity {
private static final String ADMOB_APP_ID = "your_admob_app_id";
private static final String ADMOB_BANNER_AD_UNIT_ID = "your_admob_banner_ad_unit_id";
private AdView mAdView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Initialize AdMob SDK
MobileAds.initialize(this, ADMOB_APP_ID);
// Create and load the banner ad
mAdView = new AdView(this);
mAdView.setAdSize(AdSize.SMART_BANNER);
mAdView.setAdUnitId(ADMOB_BANNER_AD_UNIT_ID);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
params.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
mAdView.setLayoutParams(params);
((LinearLayout) findViewById(R.id.linearLayout)).addView(mAdView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
// Load interstitial ad
InterstitialAd interstitial = new InterstitialAd(this);
interstitial.setAdUnitId("your_admob_interstitial_ad_unit_id");
AdRequest interstitialRequest = new AdRequest.Builder().build();
interstitial.loadAd(interstitialRequest);
// Load rewarded video ad
RewardedVideoAd rewardedVideoAd = new RewardedVideoAd(this);
rewardedVideoAd.setAdUnitId("your_admob_rewarded_video_ad_unit_id");
AdRequest rewardedVideoRequest = new AdRequest.Builder().build();
rewardedVideoAd.loadAd(rewardedVideoRequest);
}
}
Here are the key features of the Music Player & HD Video Player - Android App with Admob Integration:
- Supports all video formats: including MKV, MP4, M4V, AVI, MOV, 3GP, FLV, WMV, RMVB, TS, etc.
- Ultra HD video player: supports 4K playback.
- Automatic file detection: identifies all video files on the device and SD Card.
- Easy control: controls volume, brightness, and playing progress.
- Playback options: includes auto-rotation and more.
- Support for both tablets and phones: suitable for both Android tablets and phones.
- Theme color customization: allows users to change the theme color.
Additional features:
- Music player: a professional music player that combines built-in great sound effects to improve musical experience.
- Supports multiple audio formats: supports MP3, MIDI, WAV, FLAC, and raw AAC files, among others.
- Powerful music improver: enhances musical experience with professional audio decoding technology.
- Admob integration: adds revenue through online advertising.
- Full source code: provides full access to the app's source code.
- Documentation: includes detailed documentation on how to install and use the app.
- Demo APK: provides a demo APK file to test the app.
Requirements:
- Android Studio: to build and modify the app.
- Admob Account: to integrate Admob ads.
- Playstore Account: to publish the app on the Play Store.
Instructions:
- Built on Android Studio: the app is built using Android Studio.
- Easy reskin: allows easy customization of colors and design.
- Admob configuration: requires replacing Admob App ID, Native ads id, and Interstitial ids.
- Icon, title, and package name customization: allows changing the app's icon, title, and package name.
- Generate signed APK: allows generating a signed APK file.
$19.00
There are no reviews yet.