Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 02-13-2009, 03:41 PM   #1
Junior Member
 
Join Date: Feb 2009
Location: Auckland, New Zealand
Posts: 2
Friends: 0
View johndeverall's Profile   View johndeverall's Photo Album   View johndeverall's Blog   View Social Groups
Send a message via MSN to johndeverall Send a message via Skype™ to johndeverall
Something I've been curious about for a while...

Why does android use the m prefix in the code so much?

For example:

mMapView = (MapView) findViewById(R.id.basic_map);

Why mMapView instead of just mapView??

Last edited by johndeverall; 02-13-2009 at 03:43 PM..
johndeverall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 02-13-2009, 04:11 PM   #2
Member
 
Ageless Stranger's Avatar
 
Join Date: Jan 2009
Location: Cambridge, UK
Posts: 74
Friends: 1
View Ageless Stranger's Profile   View Ageless Stranger's Photo Album   View Ageless Stranger's Blog   View Social Groups
Send a message via MSN to Ageless Stranger Send a message via Yahoo to Ageless Stranger
It is a standard coding convention, the m stands for member, as in member of an object or class.
Ageless Stranger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 02-13-2009, 04:46 PM   #3
Junior Member
 
Join Date: Feb 2009
Location: Auckland, New Zealand
Posts: 2
Friends: 0
View johndeverall's Profile   View johndeverall's Photo Album   View johndeverall's Blog   View Social Groups
Send a message via MSN to johndeverall Send a message via Skype™ to johndeverall
Thanks for that. The m's are suddenly useful now.

Cheers!
johndeverall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes




Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.