On Sat, Jan 21, 2012 at 10:29 AM, Pratik Prajapati <[email protected]> wrote: > I want to keep my piece of software Independent of android architecture. I > still need android for market apps, games and its cool GUI as my base > platform. but my jars and libraries should not depend on android. (or very > less dependent).
And that's fine, in the abstract. > e.g. There is bound/unbound services in Android for doing background task. > Is there any other way to achieve the same thing i.e. my java code runs in > background and if some app wants to use it, then it would do some IPC rather > than AIDL? means an alternative solution to bound/unbound services of > android? None that will work and be secure. Now, a talented programmer would not be worrying about things at this level. A talented programmer would realize that things like IPC and process management will be very different on an Android device than it will be on a Java ME phone, a Java Web app container, a Java Swing desktop app, etc. A talented programmer, therefore, will work to make the bulk of her code **independent of IPC and process management entirely**. Rather than trying (and failing) to force one type of app to work like another type of app (e.g., hacking a Web server's IPC and process management onto Android), the talented programmer would allow each app environment to handle IPC and process management in a way that is native to that environment. The talented programmer would put **pure business logic** in a reusable JAR that is ignorant of IPC, processes, etc., but simply performs that pure business logic. The talented programmer would reuse said JAR in projects that couple that business logic to the environment-specific IPC and process management code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

