The moose likes Android and the fly likes One thing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "One thing" Watch "One thing" New topic
Author

One thing

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 8428

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


Never ascribe to malice that which can be adequately explained by stupidity.
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: 4875

+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
 
IntelliJ Java IDE
 
subject: One thing
 
Threads others viewed
JSP Include doesn't work
New to Servlet
Nested and Inner Class
severance question
George Bush again
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture