skip to Main Content

Android Studio – Can I make one function for all activity, to play, pause music

First Activity package com.example.birthdaywish; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.text.Editable; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public…

VIEW QUESTION
Back To Top
Search