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 Need help breaking down this comparison of Intents and API Calls 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 "Need help breaking down this comparison of Intents and API Calls" Watch "Need help breaking down this comparison of Intents and API Calls" New topic
Author

Need help breaking down this comparison of Intents and API Calls

John Quach
Ranch Hand

Joined: Sep 28, 2011
Posts: 50
Hi! I just read this excerpt from a blogger in the link below and I'm trying to make sense out of it.

http://saigeethamn.blogspot.com/2009/08/android-developers-tutorial-for.html

Intents are messages that are passed between components. So, is it equivalent to parameters passed to API calls? Yes, it is close to that. However, the fundamental differences between API calls and intents' way of invoking components is
1. API calls are synchronous while intent-based invocation is asynchronous (mostly)
2. API calls are bound at compile time while intent-based calls are run-time bound (mostly)


From what I can tell, the API calls are calls directly from the Java classes itself.
1. The CPU needs to focus all its attention on API calls. I know Synchronization is necessary in games to prevent coordinate variables from getting mixed up with other variables. Is this the same concept?
2. I never fully understood compiling and run-time. From what I can tell, the API calls while its being built up and Intent calls are fired while the program is executing.

Please tell me if any of that or all of that is wrong.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help breaking down this comparison of Intents and API Calls
 
Similar Threads
Passed Part One with 87%
AppWidget problem
Passed SCJP5 finally
Passed OCMJEA
passed SCJD with 360/400