{"id":17210685,"url":"https://github.com/justson/pixel-activity-keep-alive","last_synced_at":"2025-09-10T00:08:00.294Z","repository":{"id":86015336,"uuid":"84620651","full_name":"Justson/Pixel-Activity-Keep-Alive","owner":"Justson","description":"This is android keep alive library,Using a  pixel activity to keep process alive.","archived":false,"fork":false,"pushed_at":"2018-12-22T10:20:10.000Z","size":68,"stargazers_count":25,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T22:45:54.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Justson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-11T03:23:59.000Z","updated_at":"2023-09-08T17:22:05.000Z","dependencies_parsed_at":"2023-03-07T08:30:44.761Z","dependency_job_id":null,"html_url":"https://github.com/Justson/Pixel-Activity-Keep-Alive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Justson/Pixel-Activity-Keep-Alive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FPixel-Activity-Keep-Alive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FPixel-Activity-Keep-Alive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FPixel-Activity-Keep-Alive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FPixel-Activity-Keep-Alive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Justson","download_url":"https://codeload.github.com/Justson/Pixel-Activity-Keep-Alive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FPixel-Activity-Keep-Alive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260852152,"owners_count":23072603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T02:55:01.892Z","updated_at":"2025-09-10T00:08:00.285Z","avatar_url":"https://github.com/Justson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## \u003ccenter/\u003e通过一个像素的activity保活\n\n### 使用\n* Gradle\n\n```\ncompile 'com.just.library:pixel:1.0.0'\n```\n\n* Maven\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.just.library\u003c/groupId\u003e\n  \u003cartifactId\u003epixel\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### 引入\n```\nPixelActivityUnion\n                .with(App.mContext)\n                .targetActivityClazz(PointActivity.class)//\n                .args(null)//\n                .setActiviyManager(ActivityManager.getInstance())\n                .start();\n``` \n### 关闭\n```\n PixelActivityUnion.quit();\n```\n\n\n### 别忘了配置AndroidManifest\n```\n\u003cactivity\n            android:name=\".pixelsdk.PointActivity\"\n            android:launchMode=\"singleTop\"\n            android:theme=\"@style/PointActivityStyle\"\n            \u003e\u003c/activity\u003e\n```\n\n### 自定义IActivityManager和Activity\nIActivityManager是对Activity进行管理的一个接口, 比如启动和销毁,所以根据自己需要重写Add和Remove.\nActivity 最好让用户无法感知整过过程, 所以建议Activity尽量小化和透明化.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustson%2Fpixel-activity-keep-alive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustson%2Fpixel-activity-keep-alive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustson%2Fpixel-activity-keep-alive/lists"}