android - Factors to consider to choose among client-side application or web application -
it seems there 2 choices develop solution android platform : client-side application , web application.
according http://developer.android.com/guide/webapps/index.html
the approach choose application depend on several factors...
but tutorial doesn't mention factors should consider. may know factors need consider? or in word, what pros , cons of each solution?
p/s : when talk web application, mean solution provided http://www.phonegap.com/ well. seems able pack html, javascript , css single package looks native app. (i haven't try out)
go native if...
- you need capabilities cannot achieved such accelerometer
- you need run processes in background, such polling servers updates, downloading information in background, listening changes made on device
- you need know orientation of device, such locking user portrait or landscape or if need alerted when changes
- you need access system services such sound manager
- it's important have launcher icon
- you need high performance stuff (image editing, playing preloaded sounds, etc)
- you need absolute control of caching strategies performance reasons. example, if need download information web or preload lot of images, want control on browser doesn't flush stuff without control , have make user wait things download again , again
- (via greg's comment) want app work while offline
go web app if...
- your requirements light , want can cross platform compatible (same app running on iphone, etc)
- (via greg's comment) don't mind app require active network connection (will not work on subway!)
Comments
Post a Comment