File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Mobile » Android
Bookmark "One thing" Watch "One thing" New topic

One thing

fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

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
Peter Johnson

Joined: May 14, 2008
Posts: 5852

+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
I agree. Here's the link:
subject: One thing
It's not a secret anymore!