Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Free 1 Day Android Programming Course 2012, Learn to write your first Android App

views
     
SonnyCooL
post Jun 1 2011, 11:44 PM

Web Bastard
*******
Senior Member
5,957 posts

Joined: Sep 2004
From: www.bitching.asia


Do u available for android app project? Hehehehehehe
SonnyCooL
post Jun 4 2011, 05:39 PM

Web Bastard
*******
Senior Member
5,957 posts

Joined: Sep 2004
From: www.bitching.asia


agree with TS, someone with C+ but doubt abt their ability on java script .....
i bet most them dont even understand what they study smile.gif
SonnyCooL
post Jun 5 2011, 10:43 PM

Web Bastard
*******
Senior Member
5,957 posts

Joined: Sep 2004
From: www.bitching.asia


[quote=kent_lau7,Jun 5 2011, 08:23 AM]
Javascript and Java is totally different things.
Javascript cannot run on its own. Java can be a stand alone application.

Btw, those who truly want to learn Android programming require the knowledge of Type Inference.

You know how to declare variable, but now...you need to know what is Type Inference...

Map<String, List<String>> myMap = new HashMap<String, List<String>>();

CODE


   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);

       GridView gridview = (GridView) findViewById(R.id.gridview);
       gridview.setAdapter(new ImageAdapter(this));

       gridview.setOnItemClickListener(new OnItemClickListener() {
           public void onItemClick([COLOR=blue]AdapterView<?> parent[/COLOR], View v, int position, long id) {
               Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show();
           }
       });
   }


Read this
http://download.oracle.com/javase/tutorial...e-instantiation

cheers to my new 5 students...
*

[/quot

That not much different with high level language vs low level smile.gif


 

Change to:
| Lo-Fi Version
0.0156sec    0.37    7 queries    GZIP Disabled
Time is now: 16th December 2025 - 05:03 PM