• Using Arrays in JavaScript – Basics

    Hi… We all know, Arrays are nothing but variables which can hold all your variable values with a single name. Let’s see some basic operations of Arrays in JavaScript. To Create a New Array. Use the following code. This code […]

     
  • How to get a selected Item from a spinner in ANDROID?

    We have come across this issue many times during programming to get a selected item in your combobox. ANDROID has built in functions to get the selected item from a spinner. Take a look at the snippet. Here my_spinner id […]

     
  • How to add more than One HTML Document in a single Browser ?

    Hi… There may arise certain situations where you need to include more than one HTML document in the same browser. But how? It’s simple. It’s by using FRAMES of HTML. FRAMES can be included inside FRAMESET. Let’s see an example. […]

     
  • ProgressBar in ANDROID…..

    Progress bars are our basic needs when we want to show something for a long time or some progress takes a long time and we want to show it’s progress. Keeping that in mind ANDROID also has built in progress […]

     
  • Toggle between Full Screen and normal Screen in Adobe AIR or FLEX.

    Hi all……… We often need to toggle between fullscreen and normal screen in our application. The following code snippet helps you to toggle between these two screens in Adobe AIR or Flex. Here I am using StageDisplayState class to do […]

     
  • How to detect shake Gesture in your iPhone Cocos2D?

    For detecting shake in a cocos2D program copy these lines to your layer class bool shaked_once; //default false self.isAccelerometerEnabled = YES; [[UIAccelerometer sharedAccelerometer] setUpdateInterval:1/60]; shaked_once = false; Then copy this function to the same file…. and you are done…….. -(void) […]

     
  • Hide and Show a Text Using jQuery – Example

    With jQuery manipulation of HTML & CSS can be done very easily. Here we are going to show how to Hide a line of text using jQuery & Show it back also. Let’s code speak first…. <html> <head> <script type="text/javascript" […]

     
  • Check whether a file exists in Objective C

    “fileExistsAtPath” is used to check whether a file exists or not at a specified path.

     
  • Preventing Overriding in Java

    Methods and variables can be ‘override’ in subclasses. (Yes, it’s a good feature too!). But what if we don’t want to ‘override’ our Methods and Variables in Java? It’s simple… Declare them using the keyword ‘final’ as modifier. That’s it. […]

     
  • Creating Exceptions in JAVA

    This is a simple custom exception in java. That is, we can create an exception by extending the exception class. The “throw new MyExcep” will throw an exception and the error message we specified will be displayed import java.lang.Exception; @SuppressWarnings(“serial”) […]

     
  • How to use MediaPlayer in ANDROID? A simple example.

    MediaPlayer class can be used to play Audio in ANDROID. See how to do this.

     
  • PHP- Warning: session_start(): Cannot sent session cache limiter-headers already sent, ERROR

    Most of the beginners in PHP while using sessions at the first time might have encountered a long error, starting with something like, Warning:session_start(): Cannot sent session cache limiter- headers already sent Fix : It’s too simple! Don’t ever leave […]

     
  • Difference between & and * operator in C

    A beginner to Pointers in C often perplexed by different operators & and * Let’s see what it really is and how simple it is. & – This operator gives ‘the address of’ a variable * – This operator gives […]

     
  • Difference between & and * operator in C

    A beginner to Pointers in C often perplexed by different operators & and * Let’s see what it really is and how simple it is. & – This operator gives ‘the address of’ a variable * – This operator gives […]

     
  • How to check whether GPS is available in ANDROID or Not?

    This code helps you to check whether the location service is available on your ANDROID Phone or not. Copy this code and paste to your file. Happy coding…..

     
  • String Functions in C

    Let’s now briefly discuss about four essential String function used in C. We are going to discuss about a) strlen() b) strcpy() c) strcat() d) strcmp() Codes speak louder than words! Let’s see what these functions do in a simple […]

     
  • Programmatically change background in Adobe AIR/FLEX.

    private function change():void { this.setStyle(“backgroundColor”,”#00FF00″); this.setStyle(“color”,”green”); }

     
  • Create PopUp Window in Adobe AIR / FLEX, A simple Example.

    Below code shows how to create a new popUp window in Adobe AIR or FLEX. To create a new window “right click on the src folder and create a new MXML Component named Here “MyLoginForm” It should be aTitleWindow for […]

     
  • FullScreen Event in Adobe AIR or FLEX

      The following simple code snippet explains how to get an eventListener for FullScreen Event in Adobe AIR or FLEX. The function “onScreenModeChange ” gets called when you maximizes your window. private function init():void { stage.addEventListener( FullScreenEvent.FULL_SCREEN, onEnteringFullScreenMode); } private function […]

     
  • Abstract Class in java

    This example shows how a simple java abstract class works Here “Shape” is the abstract class abstract class Shape { abstract void initial(); // methods only defined….. abstract void display(); } class cube extends Shape { void initial() // Abstract […]

     
  • How to create custom layout for your spinner in ANDROID? or Customizable spinner

    This code helps you to customize the spinner in ANDROID. For that you have to create an XML file inside your layout folder as shown below and name it spinner.xml. You can give all properties that are available for TextView […]

     
  • How to set an item selected in Spinner in ANDROID?

    This code helps yoy to set an item in your combobox(spinner) in ANDROID. Here my_spinner is the combobox which we call as spinner in ANDROID. Declare it in your XML file and link to it by using the following code…. […]

     
  • How to add categories / labels in your blogger?

    Unlike wordpress blogger, blogspot don’t have direct method (I said direct not ‘NO’!) to add categories to your posts. Just adding ‘Labels’ while you post your posts won’t work always. But it’s simple to categorize posts in your blogspot. Follow […]

     
  • Why don’t my player showing subtitles?

    You may be perplexed at a common situation where your movie player don’t showing up the subtitles even after you have the subtitle file! But the fix to this problem is too simple. How to fix subtitles not showing up […]

     
  • Why don’t my player showing subtitles?

    You may be perplexed at a common situation where your movie player don’t showing up the subtitles even after you have the subtitle file! But the fix to this problem is too simple. How to fix subtitles not showing up […]

     
 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.