Posts

Changing screen with ViewFlipper and Animation

Image
Hello guys, today we are going to see how to change the screen with viewflipper and put animation in it. First of all we create the animation files. The animation files reside in the anim folder in the "res" directory. Download   in_from_left.xml <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">     <translate         android:fromXDelta="-100%" android:toXDelta="0%"            android:fromYDelta="0%" android:toYDelta="0%"            android:duration="1400" /> </set> in_from_right.xml <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">     <translate         android:fromXDelta="100%" android:toXDelta="0%"            android:fromYDelta="0%" a...

Creating Timer in Android

Image
Hello guys, in this tutorial we are going to see how to create a timer and to do something when the timer reaches a particular time. So lets  do it. Download Project   activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:background="#000000"     android:layout_height="match_parent" >     <TextView         android:id="@+id/timerValue"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_above="@+id/pauseButton"         android:layout_centerHorizontal="true"         android:layout_marginBotto...

Recording Sound and Saving it in Android

Image
Hey guys, in this blog we will see how to record sound in the android. The recorded sound will be saved in the "MediaRecorder" folder in your SD card. Run and test this project on the real device as it wont work on the emulator because emulators dont have mics to record. Download Project File activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context=".MainActivity" >     <Button         android:l...

Changing sound pitch with SoundPool Android

Image
Download activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context=".MainActivity"     android:orientation="vertical" >         <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Low Pitch"         ...

Working with SoundPool Android

Image
Hey Guys, Today we are going to see the usage of SoundPool in Android. So lets get started. Download   1) First of all create an Android Application Project. 2) Next go to "res/layout/activity_main.xml" and create a  button there. activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:context=".MainActivity" >     <Button         android:layout_width="wrap_content"     ...

Video tutorial on connecting Android App with mysql dataabse using pHp

Image
Hello guys, how are you today? Hope you will all in the best of your life. Today we are going to see how to connect our android app with mysql databse using php. Just follow the video and post comments if you have any problem. Download Project file For more info visit on facebook https://www.facebook.com/androidcoolstuffs Thank you

Passing value from One Activity to Other in Android

Image
Hello guys, how are you today? Its super Thursday, and hope you will be in the best of your life. Today we are going to see how to pass value from one activity to other in Android. So lets get started.   Download   1) First of all create an Android Application Project. 2) Next, go to "res/layout/activity_main.xml" and create one editText and one "send" button there. The code looks like. activity_main.xml  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     tools:c...