Skip to main content

Posts

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 Key Keyboard Key Home HOME Menu (left softkey) F2  or  Page-up button Star (right softkey) Shift-F2  or  Page Down Back ESC Call/dial button F3 Hangup/end call button F4 Search F5 Power button F7 Audio volume up button KEYPAD_PLUS, Ctrl-F5 Audio volume down button KEYPAD_MINUS, Ctrl-F6 Camera button Ctrl-KEYPAD_5, Ctrl-F3 Switch to previous layout orientation (for example, portrait, landscape) KEYPAD_7, Ctrl-F11 Switch to next layout orientation (for example, portrait, landscape) KEYPAD_9, Ctrl-F12 Toggle cell networking on/off F8 Toggle code profiling F9 (only with  -trace  startup option) Toggle fullscreen mode Alt-Enter Toggle trackball mode F6 Enter trackball mode temporarily (while key is pressed) Delete DPad left/up/right/down KEYPAD_4/8/6/2 DPad center click KEYPAD_5 Onion alpha increase/decrease KEYPAD_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 tab...

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(R.id.webView1); myWebView.loadUrl("file:///android_asset/Noun.htm"); } Copy and download the code and try your self.

HTML Tag - Scripting

<script> This tag is used to define a client-side script, such as a javascript. <noscript> 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>.