- Using Normal Class Constructor To Init Lib
- Using Normal Class Init Function To Init Lib
- Using LifecycleObserver To Init Lib
- Using Singleton To Init Lib
- Using ContentProvider To Init Lib
- Using AndroidX Startup
-
Question: Is a ContentProvider's
onCreate()
called before the Application'sonCreate()
?Ans: Yes.
Example app: Application Class Init Vs ContentProvider Init
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
-
Match coding style (braces, spacing, etc.) This is best achieved using
Reformat Code
feature of Android StudioCMD
+Option
+L
on Mac andCTRL
+ALT
+L
on Linux + Windows . -
If its a feature, bugfix, or anything please only change code to what you specify.
-
Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
-
Pull requests must be made against
develop
branch. Any other branch (unless specified by the maintainers) will get rejected. -
Check for existing issues first, before filing an issue.
-
Make sure you follow the set standard as all other projects in this repo do
-
Upgrade your gradle wrapper to the one all other apps are using. Use the below command at root of your project
./gradlew wrapper --gradle-version <version_name>
i.e
./gradlew wrapper --gradle-version 6.5
-
Use the package name of the format
github.nisrulz.example.*
where*
is the example you are adding to the repo. I am trying to follow a set standard in the repo, please adhere to that.
-
-
Have fun!
Copyright 2020 Nishant Srivastava
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.