Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coder966/androidapp
Android library to handle app upgrading events
https://github.com/coder966/androidapp
Last synced: about 4 hours ago
JSON representation
Android library to handle app upgrading events
- Host: GitHub
- URL: https://github.com/coder966/androidapp
- Owner: coder966
- License: apache-2.0
- Created: 2016-06-14T20:34:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-27T22:16:17.000Z (over 8 years ago)
- Last Synced: 2023-08-15T20:14:27.109Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
AndroidApp
===
Android library that features these extra methods for `Application` class:
* `onCreate(int, String)`
* `onUpgradeBeforeOnCreate(int, String)`
* `onUpgradeAfterOnCreate(int, String)`Installation
---
This library requires at minimum Android 2.3.**Maven**
```xmlnet.coder966.AndroidApp
library
2.0.2
pom```
**Gradle**
```gradle
compile 'net.coder966.AndroidApp:library:2.0.2'
```Usage
---
* Inherit `AndroidApp` class instead of `Application`
* Override `onCreate(int, String)` method instead of `onCreate()`
* When the application gets updated, the method `onUpgradeBeforeOnCreate(int, int)` will be called right before your `onCreate(int, String)`
* When the application gets updated, the method `onUpgradeAfterOnCreate(int, int)` will be called right after your `onCreate(int, String)`License
---
```
Copyright 2016 Khalid H. AlharisiLicensed 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 athttp://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.
```