ProcessPhoenix

Process Phoenix facilitates restarting your application process.

  • Owner: JakeWharton/ProcessPhoenix
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Process Phoenix

Process Phoenix facilitates restarting your application process.

This should only be used for things like fundamental state changes in your debug builds (e.g.,
changing from staging to production).

Usage

Start the default activity in a new process:

ProcessPhoenix.triggerRebirth(context);

Or, if you want to launch with a specific Intent:

Intent nextIntent = //...
ProcessPhoenix.triggerRebirth(context, nextIntent);

To check if your application is inside the Phoenix process to skip initialization in onCreate:

if (ProcessPhoenix.isPhoenixProcess(this)) {
  return;
}

Download

implementation 'com.jakewharton:process-phoenix:2.0.0'

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2015 Jake Wharton

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.

Main metrics

Overview
Name With OwnerJakeWharton/ProcessPhoenix
Primary LanguageJava
Program languageJava (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2015-07-08 05:39:28
Pushed At2025-09-02 21:12:32
Last Commit At
Release Count11
Last Release Name3.0.0 (Posted on 2024-03-25 11:47:30)
First Release Name1.0.0 (Posted on 2015-07-08 01:49:19)
用户参与
Stargazers Count2.1k
Watchers Count36
Fork Count138
Commits Count164
Has Issues Enabled
Issues Count32
Issue Open Count10
Pull Requests Count109
Pull Requests Open Count1
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private