How to Define Menu Hierarchy in XML in Android

Here is source code of the Program to Demonstrate Defining Menu Hierarchies in XML in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.menuhirachies;   import android.os.Bundle; import android.app.Activity; import android.view.Menu;   public class MainActivity extends Activity { … Read more

advertisement

How to Create a Menu Group in Android?

Here is source code of the Program to Demonstart Menu Groups in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.menugroup;   import android.os.Bundle; import android.app.Activity; import android.view.Menu;   public class MainActivity extends Activity {   @Override protected … Read more

advertisement

Android Program to Get More Geo Location of a Place

Here is source code of the Program to Get more than one Geo location of a Place in Android using Java. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.geocode;   import java.io.IOException; import java.util.List; import java.util.Locale;   import … Read more

advertisement

Geo Coding in Android with Example

Here is source code of the Program to Demonstrate Geo Coding in Android using Java. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.geocode;   import java.io.IOException; import java.util.List; import java.util.Locale;   import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import … Read more

advertisement

IntentServices with Example in Android

Here is source code of the Program to Demonstrate IntentServices in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.intentservices;   import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.Button;   public class MainActivity extends … Read more

advertisement

How to Create Preference Activity in Android?

Here is source code of the Program to Demonstrate Preferenece Activity in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.preferenceactivity;   import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.Menu; import android.view.View; import android.widget.Button; … Read more

advertisement

Android Tip Calculator Source Code

Here is source code of the Program to Demonstrate Tip Calculator. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. The following code teaches u how to change the color of a component’s text and change the background color of the component. Main … Read more

advertisement

Android Program to Demonstrate a Video View

Here is source code of the Program to Demonstrate a Simple Video View. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.videoview;   import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.Menu; import android.widget.MediaController; import android.widget.VideoView;   public class MainActivity … Read more

advertisement

Play Sound using SoundPool in Android

Here is source code of the Program to Play Sound Using Sound Pool in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.playsound;   import android.app.Activity; import android.content.Loader.OnLoadCompleteListener; import android.media.AudioManager; import android.media.SoundPool; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; … Read more

advertisement

Android Program to Record Media using Media Recorder

Here is source code of the Program to Record Media Using Media Recorder in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below. Main Activity package com.example.record_video;   import java.io.File; import java.io.IOException;   import android.app.Activity; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Intent; import … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.