Posts

Showing posts from April, 2014

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...

Drawing Graph in Android

Image
Hello guys, whats up?? Today in this blog we are going to see how to draw graphs in Android. For this purpose we are going to use a library called as "achartengine" . So , lets get started. Download   1) First of all  create an Android Application Project. 2) Next go to "res/alyout/activity_main.xml" and create a LinearLayout there. activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/label"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_ma...

Develop Multilingual Android Application (Hindi)

Image
Hello Guys , how are you today? Hope you will be fine. Have you ever wondered how to write in Hindi or any other language in Android. In this tutorial we are going to see how to develop multilingual android application. Download   1) First of all, create an Android Application Project. 2) Next go to "res/layout/activity_main.xml" and create a TextView there. The code looks like 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=".MainActiv...

Building SideBar or Navigation Drawer in Android

Image
Hello Guys, How are you today? Hope you all be fine.. Today we are going to see how to create sidebar or Navigation Drawer in Android. Download   1)  Go to "res/layout/activity_main.xml" and create Navigation drawer there. The code looks like <android.support.v4.widget.DrawerLayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent"> <FrameLayout         android:id="@+id/content_frame"         android:layout_width="match_parent"         android:layout_height="match_parent" /> <ListView         android:id="@+id/left_drawer"         android:layout_width="240dp"         andr...

Displaying Information In Dialog in Android

Image
Hello guys, How are you today? I hope you all be in the best of your life. Today, we are going to see how to show the information in dialog 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 for which we are going to implement OnClickListener. The code looks like <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" >  ...

Playing Video In Android

Image
Hello Guys , How are you?? Its Super Sunday, hope you guys enjoying your weekend. Today we will see how to Play Videos in Android. So lets get started. Download   1) First of all create an Android Application Project. 2) Go to "res/layout/activity_main.xml" and create a VideoView. The code looks like <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" >     <VideoView          andro...