This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes One thing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "One thing" Watch "One thing" New topic
Author

One thing

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11161
    
  16

If you could only tell someone ONE thing about starting programming in Android (i.e. the biggest 'gotcha'), what would it be?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

Permissions, Permissions, Permissions....

Can't tell you how many times I've been bitten by it. If you are lucky the logcat will give you the reason, but more often than not, code would simple fail without the right permissions in the manifest file.


"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

+1 to Nidhi's comment. And the worst part about many examples and tutorials (including the SDK itself) is that they neglect to tell you which permissions are required to get the code to work.

The next thing is to understand layouts, activities, intents and adapters. And understand the activity lifecycle.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: One thing
 
Similar Threads
JSP Include doesn't work
New to Servlet
Nested and Inner Class
severance question
George Bush again