You are here
Home > Android

File Uploading in Android using Web Service in PHP

Hello Friends, Today I will tell you file uploading in android using web service in PHP. Basically we will call web service developed in PHP using AsyncTask in android to upload file and we will get file name and file type in response. PHP Code for Web Service config.php [crayon-59ed8850b00ab715988603/] user.php [crayon-59ed8850b00bb813226845/] Android Code AndroidManifest.xml [crayon-59ed8850b00c7887340153/] activity_main.xml [crayon-59ed8850b00cf637370883/] FilePath.java (getting selected

Android Camera 2 Api Example With & Without Preview

Hi, Friends today I am going to share code by which you can use android camera 2 api to click picture. I'd created two classes named as CameraControllerV2WithPreview for taking picture with preview and another one is CameraControllerV2WithoutPreview for taking picture without preview. Camera 2 Api is latest Api introduced

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-59ed8850b2bf6437195488/] We need to use below module dependency also [crayon-59ed8850b2c02589203940/] So, Here is the code activity_main.xml [crayon-59ed8850b2c08755365536/] MainActivity.java [crayon-59ed8850b2c11204613166/] AndroidManifest.xml [crayon-59ed8850b2c23654993917/] build.gradle [crayon-59ed8850b2c2b329998022/] Screen Shot Download Android Studio

Creating 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-59ed8850b3ad4543975414/] MainActivity.java [crayon-59ed8850b3ae3130795227/] Screen Shot Download Android Studio Project

Top