Tuesday 18 October 2011

android : Open folder with default application using Intents without Mime Types

Two ways to do do so.
1)
                String path="File Path";
                Intent intent = new Intent();
                intent.setAction(android.content.Intent.ACTION_VIEW);
                File file = new File(path);
               
                intent.setData(Uri.fromFile(file));
               
                startActivity(intent);

Monday 3 October 2011

Burning Sand 2 Hello World Example

WRITE ELEMENT:Earth 210 230 40 CENTER TEXT "Hello World!"

Brainfuck Hello World Example

++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.

boo Hello World Example

print "Hello, world!"

BlooP, FlooP Hello World Example

 DEFINE PROCEDURE ''HELLO-WORLD''[N]:
   BLOCK 0: BEGIN
       PRINT['Hello, world!'];
   BLOCK 0: END.

BlitzBasic Hello World Example

Print "Hello, world!"
WaitKey

BLISS Hello World Example

%TITLE 'HELLO_WORLD'
MODULE HELLO_WORLD (IDENT='V1.0', MAIN=HELLO_WORLD,
        ADDRESSING_MODE (EXTERNAL=GENERAL)) =
BEGIN

    LIBRARY 'SYS$LIBRARY:STARLET';

    EXTERNAL ROUTINE
       LIB$PUT_OUTPUT;

GLOBAL ROUTINE HELLO_WORLD =
BEGIN
    LIB$PUT_OUTPUT(%ASCID %STRING('Hello, world!'))
END;

END
ELUDOM

BITGGAL Jihwaja Hello World Example

J( 1 TM 5 ZV 3 "Hellow, world" )

BITGGAL AgileDog Hello World Example

T 
 1 "Hellow, World"
 0

Befunge Hello World Example

"!dlrow olleH">v
               :
               ,
              ^_@

BCPL Hello World Example

GET "LIBHDR"

LET START () BE
$(
    WRITES ("Hello, world!*N")
$)

bc Hello World Example

"Hello, world!"

Batch Hello World Example

echo hello world

BASIC Hello World Example

10 REM Hello World in BASIC
20 PRINT "Hello World!"

Bash or sh Hello World Example

echo 'Hello, world!'

Ball Hello World Example

write Hello, *s world *n

Baan Tools Hello World Example

function main()
{
    message("Hello, world!")
}

B Hello World Example

main( ) {
  extrn a, b, c;
  putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';
c 'orld';

Sunday 2 October 2011

AWK Hello World Example

BEGIN { print "Hello, world!" }

AviSynth Hello World Example

BlankClip()
Subtitle("Hello, world!")

Avenue - Scripting language for ArcView GIS Hello World Example

MsgBox("Hello, world!","aTitle")

AutoLisp Hello World Example

(print "Hello, world!")

AutoIt Hello World Example

MsgBox(0,'','Hello, world!')

AutoHotkey Hello World Example

MsgBox, Hello, world!

ASSEMBLER x86 (DOS, MASM) Hello World Example

.MODEL Small
.STACK 100h
.DATA
   db msg 'Hello, world!$'
.CODE
start:
   mov ah, 09h
   lea dx, msg ; or mov dx, offset msg
   int 21h
   mov ax,4C00h
   int 21h
end start

ASSEMBLER x86 (DOS, FASM) Hello World Example

; FASM example of writing 16-bit DOS .COM program
; Compile: "FASM HELLO.ASM HELLO.COM" 
  org  $100
  use16    
  mov  ah,9
  mov  dx,xhello
  int  $21    ; DOS call: text output
  mov  ah,$4C
  int  $21    ; Return to DOS
xhello db 'Hello world !!!$'

ASP.NET Hello World Example

// in the code behind using C#
protected void Page_Load(object sender, EventArgs e)
{
  Response.Write("Hello, world!");
}

ASP Hello World Example

<% Response.Write("Hello, world!") %>

ASCII Hello World Example

48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21 0D 0A

ARC Hello World Example

(prn "Hello, world!")

AppleScript Hello World Example

return "Hello, world!"

APL Hello World Example

\nabla  \mathrm {R} \leftarrow \mathrm {HW} \Delta\mathrm{PGM}  
\left [ 1 \right ] \mathrm {R}\leftarrow \mathrm {'HELLO} \; \mathrm {WORLD!'} 
    \nabla 

Android Hello World Example

package com.android.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       TextView tv = new TextView(this);
       tv.setText("Hello, Android");
       setContentView(tv);

   }
}

AMX NetLinx Hello World Example

program_name = 'Hello'
define_start
send_string 0,'Hello World!'

AmigaE Hello World Example

PROC main()
   WriteF('Hello, world!');
ENDPROC

ALGOL 68 Hello World Example

begin
    printf($"Hello, world!"l$)
end

Alef++ Hello World Code Example

 use java.lang.*;
 main
 {
     System->out->println[ 'Ofin al3alam!' ];
 }

Ada Hello World Code Example

with TEXT_IO;
 
procedure HELLO is
begin
    TEXT_IO.PUT_LINE ("Hello, world!");
end HELLO;

ActionScript 3 Hello World Code Example

package
{
    import flash.display.Sprite;
    public class HelloWorld extends Sprite
    {
        public function HelloWorld()
        {
            trace("Hello, world!");
        }
    }
}

ActionScript 1.0 and 2.0 Hello World Code Example

trace("Hello, world!");

Action Hello World Code Example

; Hello world in Action! programming language for the Atari 8-Bit computers

PROC Main()
 PrintE("Hello World!")
RETURN

ABC Hello World Example

WRITE "Hello, world!"

ABAP Hello World Example

PROGRAM TEST.
WRITE 'Hello World'.

A++ Hello World Example

#include <A++.h>   // this is included in every A++/P++ application
int main(int argc,char** argv) 
{ 
// We are instancing the doubleArray object.  Though it looks like a
// standard Fortran array, it's not  
doubleArray A(10); 
doubleArray B(10); 

// Initialize A and B 
A=2;  
B=3; 

Illustration of the methods associated with doubleArray Objects
``display'' is used to show the values of the Object 

A.display(``This is the doubleArray Object A''); 
B.display(``This is the doubleArray Object B'') 

// We can add to array objects with the ``+'' operator 
A=A+B; 
A.display(``Addition of A and B'');
}

A+ Hello Wold Example

[]<-’Hello World!’

A# .Net Hello World Example

with Ada.Text_IO;
use Ada.Text_IO;
procedure Hello_Dotnet is 
begin
Put_Line(Item => “Hello .NET world!”);
end Hello_Dotnet;