¡@

Home 

2014/10/16 ¤W¤È 08:19:32

android Programming Glossary: modular

PopupWindow not triggering sytem context dialog on EditText long-press

http://stackoverflow.com/questions/13248581/popupwindow-not-triggering-sytem-context-dialog-on-edittext-long-press

Fragments they're operating on. I know this isn't the point to fragments. I'm not really aiming to write a completely modular app right now. I just want to come out with a product the customer will be happy with. I ended up rewriting RulesDialog..

getApplication() vs. getApplicationContext()

http://stackoverflow.com/questions/5018545/getapplication-vs-getapplicationcontext

no need to subclass Application . In most situation static singletons can provide the same functionality in a more modular way. If your singleton needs a global context for example to register broadcast receivers the function to retrieve it can..

Android: how to pass ArrayList<object> from an activity to another

http://stackoverflow.com/questions/6433834/android-how-to-pass-arraylistobject-from-an-activity-to-another

declare a static singleton in some class. The docs actually recommend this over subclassing Application as being more modular. It's kind of a hack because it's basically declaring a global variable. But I suppose it's no more of a hack than putting..

Best practice: AsyncTask during orientation change

http://stackoverflow.com/questions/7128670/best-practice-asynctask-during-orientation-change

this issue. This is very bad practice. Do NOT use Activity#onRetainNonConfigurationInstance either. This is less modular and not well suited for Fragment based applications. You can read my article describing how to handle configuration changes..

Android search with Fragments

http://stackoverflow.com/questions/7230893/android-search-with-fragments

requires a bit more work than what you were probably hoping for but I'm sure there are ways that you can make it more modular and it seems like this might be the best that you can do. p.s. If you use this approach you might have to pay special attention..

Best practice: Extending or overriding an Android library project class

http://stackoverflow.com/questions/9951610/best-practice-extending-or-overriding-an-android-library-project-class

Core library classes and use if switch blocks to select behavior based on product SKU. This approach is not very modular and bloats the Core library codebase. Extend the particular Core class in a target project and override the base Core class..