You are here
Home > Android

Distance Calculator in Android

Hello Friends, Today I am going to share distance calculator code in android which is basically based on GPS.  In this code we are going to use GPS location so we need to take below permissions. [crayon-599b1e0648f0d923713261/] We need to use below module dependency also [crayon-599b1e0648f1e416946536/] So, Here is the code activity_main.xml [crayon-599b1e0648f24088180173/] MainActivity.java [crayon-599b1e0648f2e303057729/] AndroidManifest.xml [crayon-599b1e0648f3f196228763/] build.gradle [crayon-599b1e0648f47142528278/] Screen Shot Download Android Studio

Audio Recorder in Android

Hello Friends, Today I am going to share audio recording code in android. This code will work on latest version of android (Marshmallow) also. In this code we are going to use MediaRecorder class to record audio and MediaPlayer class to play recorded audio. activity_main.xml [crayon-599b1e064a698346001940/] MainActivity.java [crayon-599b1e064a6a7065298859/] Screen Shot Download Android Studio Project

Top