Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/afkT/DevUtils
/ getContext
Method
getContext
lib/DevApp/src/main/java/dev/DevUtils.java:149–151 ·
view source on GitHub ↗
获取全局 Context @return Context
()
Source
from the content-addressed store, hash-verified
147
* @
return
{@link Context}
148
*/
149
public
static
Context getContext() {
150
return
DevUtils.sContext;
151
}
152
153
/**
154
* 获取 Context ( 判断 null, 视情况返回全局 Context )
Callers
15
getAuthority
Method · 0.95
getVideoDuration
Method · 0.95
getVideoSize
Method · 0.95
getAdvancedProtectionManager
Method · 0.95
getSystemService
Method · 0.95
getWallpaperManager
Method · 0.95
getPackageManager
Method · 0.95
getCurrentWindowMetrics
Method · 0.95
getMaximumWindowMetrics
Method · 0.95
getApplicationInfo
Method · 0.95
getPackageInfo
Method · 0.95
getSharedPreferences
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected