Free Education

Online Education

Android Studio

android simple notification example

XML (activity_main.xml) <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:id=”@+id/rl” android:layout_width=”match_parent” android:layout_height=”match_parent” android:padding=”16dp” tools:context=”.Notification”> <Button android:id=”@+id/btn” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_centerInParent=”true” android:text=”Notification” /> </RelativeLayout> JAVA (MainActivity.java)

Read More
Android Studio

make mp3 player in android studio source code

XML (activity_main.xml) <android.support.constraint.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_gravity=”center” android:gravity=”center” android:orientation=”vertical” tools:context=”.Mp3MediaPlayer”> <TextView android:id=”@+id/textView5″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginTop=”32dp” android:gravity=”center” android:text=”PLAY/STOP SONG.\nSCRUB

Read More