In this example showing use of MVC Pattern to create a very basic Shopping cart. Creating very basic Controller Class and defined in application context and you can use this Controller Class as a Global class. Step : 1 – ModelProducts.java Step : 2 – ModelCart.java Step : 3 –… read more →
In this example implementing Google Cloud Messaging (GCM) for android. Using Google Cloud Messaging (GCM) sending push notification from web server to registered android devices. Using php as server side language and mysql as database. STEP 1 : Register with Google Cloud Messaging from GOOGLE API Console (Create a Google… read more →
In this example capturing video by inbuild camera in android and save captured video on sdcard. Step : 1 – AndroidManifest.xml Step 2 – VideocameraActivity.java Step : 3 – main.xml
Step : 1 – AndroidVideoPlayer.java Using VideoView class to load video from various sources (such as resources or content providers), takes care of computing its measurement from the video so that it can be used in any layout manager, and provides various display options such as scaling and tinting. Step… read more →
WebView is a View that displays web pages.If want to display html as the part of your UI then you can use WebView in your APP. Step : 1 – ShowWebView.java Step 2 : show_web_view.xml Step 3: AndroidMainifest.xml
Step : 1 – ShowWebView.java Step 2 : show_web_view.xml Step 3 : AndroidManifest.xml
You can save and retrieve key, value pair data from Shared preferences. You can get values from Shared preferences using getSharedPreferences() method. SharedPreferences Basics..
Gallery is used to show Views in a horizontal list, and user will select a view , User selected view will be shown in center of the Horizontal list Step : 1 – res/values/attrs.xml Step : 2 – res/layout/activity_main.xml Step : 3 – src/package-name/MainActivity.java Enjoy Code.