Posts

Showing posts from October, 2020

Intern-Koi Privacy&Policy

Privacy Policy Emon Hossain built the Intern Koi app as a Free app. This SERVICE is provided by Emon Hossain at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Intern Koi unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to we are only colle

Difference in-between getContext, getApplicationContext and getBaseContext. And When to use each of them?

What is Context actually? - context is the blueprint of activities and application, it can be used to get information regarding activity and application.  [ more on stackoverflow ] getContext - returns the context view of current or acive Activity. getApplicationContext - returns the context view of all the activities from the entire application. getBaseContext - returns the context view of an Activity to another Activity. to separate or specify those two context in an Activity BaseContext is used. When to use them: getContext - if your method only needs the context of current activity then we use get context. getApplicationContext - if your method if outside of an OnCreateMethod and you want to keep alive the context longer than getContext then you should go for getApplicationContext. getBaseContext - suppose you want to show a alert dialogue in your current activity. but the alert dialogue contain its own context so what to do? then you should go for getBaseContext otherwise it