Free Education

Online Education

Android Studio

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
Android Studio

admob rewarded video ads android example

XML (activity_main.xml) <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:ads=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”.after32.Rewardvideoads”> <TextView android:id=”@+id/text” android:gravity=”center” android:layout_marginTop=”50dp” android:layout_centerHorizontal=”true” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”hello_world” /> <Button android:layout_width=”match_parent”

Read More
Android Studio

How to Make an Android Studio Calling App

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:id=”@+id/activity_main” android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” android:gravity=”center_horizontal|center_vertical” > <EditText android:id=”@+id/et_phone_no” android:layout_width=”match_parent” android:layout_height=”wrap_content”

Read More