Skip to main content


Showing posts from September, 2013

Using Html Styles And Colors

Using html Styles and Colors :
This post will help you to understand the use of div element and using styles and color elements perfectly.
Copy the code and try... <html> <body> HTML STYLES AND COLORS Text with space Spannable Text </body> </html>

Android using Bundle for sharing variables

Sharing variables between Activities is quite important point during development time of your Application. This  Example suppose Activity1 from where you run up other Activity2 .  
We gonna share variable myValue.

In Activity1 : myValue="string values"; Intent intent = new Intent(MainActivity.this,NewClass.class); Bundle bundle = new Bundle(); bundle.putString("myValue", myValue); intent.putExtras(bundle); startActivity(intent); or

Intent intent = new Intent(MainActivity.this,NewClass.class); intent.putExtra("myValue",AnyValue); startActivity(intent);
In Activity2 :
Bundle bundle = getIntent().getExtras(); String value= bundle.getString(“myValue“); or

Intent intent=getIntent(); Bundle bundle=intent.getExtras(); String value= bundle.getString(“myValue“);

Android Emulator Shortcuts

Emulated Device KeyKeyboard KeyHomeHOMEMenu (left softkey)F2 or Page-up buttonStar (right softkey)Shift-F2 or Page DownBackESCCall/dial buttonF3Hangup/end call buttonF4SearchF5Power buttonF7Audio volume up buttonKEYPAD_PLUS, Ctrl-F5Audio volume down buttonKEYPAD_MINUS, Ctrl-F6Camera buttonCtrl-KEYPAD_5, Ctrl-F3Switch to previous layout orientation (for example, portrait, landscape)KEYPAD_7, Ctrl-F11Switch to next layout orientation (for example, portrait, landscape)KEYPAD_9, Ctrl-F12Toggle cell networking on/offF8Toggle code profilingF9 (only with -trace startup option)Toggle fullscreen modeAlt-EnterToggle trackball modeF6Enter trackball mode temporarily (while key is pressed)DeleteDPad left/up/right/downKEYPAD_4/8/6/2DPad center clickKEYPAD_5Onion alpha increase/decreaseKEYPAD_MULTIPLY(*) / KEYPAD_DIVIDE(/)

Android JellyBean new features

# WI-Fi Direct
# 1080p video recording for stock Android devices
# Improved error correction on the keyboard
# You can directly access the apps from the lock screen
# Upgraded copy and paste functionality
# Support for the WebP image format
# Hardware acceleration of the universal Interface
# Soft buttons from Android 3.x are now available for use on phones
# Widgets in a new tab can be separated, listed in a similar manner to apps
# Folders can easily be created with a drag-and-drop style
# Launcher Customizer
# Enhanced visual voicemail with the ability to speed up or slow down voicemail messages
# Pinch-to-zoom functionality in the calendar
# Integrated screenshot capture (accomplished by holding down the Power and Volume-Down buttons)
# Improved voice integration and continuous, real-time speech to text dictation
# Face Unlock, a feature that allows users to unlock handsets using facial recognitionsoftware
# New tabbed web browser under Google’s Chrome brand, allowing up to 16 tabs
# Automatic sy…

Tables In Corona

The table constructor is written using braces
(curly brackets) as in { }
t = {} -->create a table k = "x" t[k] = "tabvalue" --new table entry, -->with key="x" and value=2.4 print( t[k] ) --> 2.4 print( t["x"] ) --> 2.4 print( t.x ) --> 2.4 t[2] = "tabval2" --new table entry, -->with key=2 and value="tabval2" t[3]= 2.4 print( t[2] ) --> "tabval2" print( t[3] )

Load html file to WebView from assets in Android

Put the html file inside asset folder and
use the code given below :
public class MainActivity extends Activity { WebView myWebView; TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myWebView=(WebView) findViewById(; myWebView.loadUrl("file:///android_asset/Noun.htm"); }
Copy and download the code and try your self.

HTML Tag - Scripting

This tag is used to define a client-side script, such as a javascript.
This tag is used to define an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support script.The <noscript> can be used in both <head> and <body>.