Posts Tagged ‘ fragment ’

Dynamically add Fragments to an Activity in Android

June 30, 2012
By
Main Activity with a dynamically added fragment

In this article , we will create an Android application in which a fragment can be added to an activity on a button click.   1. Create an Android project namely “DynamicFragments” 2. Select Android build target 3. Enter application details   4. res/values/strings.xml 5. res/layout/hello_fragment_layout.xml 6. src/in/wptrafficanalyzer/dynamicfragments/HelloFragment.java 7. res/layout/main.xml 8. src/in/wptrafficanalyzer/dynamicfragments/MainActivity.java 9. Execute...

Read more »

A Simple Fragment Application in Android

June 30, 2012
By
Hello Fragment Featured

In this article we will create an Android application which will display the “HelloFragment” using a fragment. 1. Create a new Android project namely “HelloFragmentNew” 2. Select build target 3. Enter application details 4. res/values/strings.xml 5. res/layout/hello_fragment_layout.xml 6. src/in/wptrafficanalyzer/hellofragmentnew/HelloFragment.java 7. res/layout/main.xml 8. Application in execution 9. Download 10. Reference http://developer.android.com/guide/index.html How to hire me?I...

Read more »

A Simple Fragment Application with backward compatibility in Android

June 30, 2012
By
Hello Fragment Featured

In this article , we will create an Android application which displays a text “HelloFragment” in the screen where the text is displayed by a fragment. Actually fragments are new concepts which are supported from Android 3.0 onwards. But by using the backward compatibility library we can use fragments from Android 1.6 onwards. 1....

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner