getApplicationContext() Application context is associated with the Applicaition and will always be the same throughout the life cycle.
getBasecontext() should not be used, just use Context instead of it which is associated with the activity and could possible be destroyed when the activity is destroyed.
getApplication() is available to Activity and Services only. Although in current Android Activity and Service implementations, getApplication() and getApplicationContext() return the same object, there is no guarantee that this will always be the case (for example, in a specific vendor implementation). So if you want the Application class you registered in the Manifest, you should never call getApplicationContext() and cast it to your application, because it may not be the application instance (which you obviously experienced with the test framework).
getParent() returns object of the activity if the current view is a child..In other words returns the activity object hosting the child view when called within the child.
String Calss 란?
class loader
http://m.blog.naver.com/choigohot/40192701035
Parcelable.Creator
public static interface Parcelable.Creator
android.os.Parcelable.Creator<T> |
Interface that must be implemented and provided as a public CREATOR field that generates instances of your Parcelable class from a Parcel.
Summary
Public methods | |
---|---|
abstract T | createFromParcel(Parcel source) Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by |
abstract T[] | newArray(int size) Create a new array of the Parcelable class. |
git rebase
reflog
'모바일 > Android' 카테고리의 다른 글
InfalteException (0) | 2017.01.04 |
---|---|
mpchart 창고 (0) | 2017.01.03 |
깨달음 (2016.12.30) (0) | 2016.12.29 |
TOUCH_EXPLORATION_ENABLED 관련 (0) | 2016.12.29 |
getInfo from settings (0) | 2016.12.29 |