Fun fact: Since Android Nougat apps cannot get the PID of other apps. This makes displaying the Memory info for apps other than Floating Info itself impossible. All other functionality will still work.
Floating Info is an Android application that displays the following in a system overlay window:
The application name, package name and process id (except on Nougat+) of the application which is currently in the device's foreground
The Global CPU utilisation with a per-core breakdown - This is not foreground application specific.
Memory usage breakdown for the currently foregrounded process - except on Nougat+ (read the notes for the caveats).
Netork information like connection type, proxy status and IP address(es). Both IPv4 and IPv6
Notes and Caveats
---
* The application will show the memory allocation of the currently foregrounded process which it gets by getting the Process Id of the currently foregrounded activity. This means that if an application has spawned multiple processes, this application will only show the memory utilisation of the main process.
* The Memory information displayed come via a Debug.MemoryInfo object, while using reflection to expose a number of hidden fields.
* Data updates happen approximately every 1 second.
Android Memory Usage
---
Memory management on Android is pretty complex and the easiest way to get started with understanding it is reading this article (https://developer.android.com/tools/debugging/debugging-memory.html) - especially the "Viewing Overall Memory Allocations" section.
GitHub Link: https://github.com/alt236/Floating-Info---Android
Thực tế thú vị: Kể từ khi ứng dụng Android Nougat không thể có được PID của các ứng dụng khác. Điều này làm cho hiển thị thông tin bộ nhớ cho các ứng dụng khác hơn là nổi Thông tin bản thân không thể. Tất cả các chức năng khác vẫn làm việc.
Nổi Info là một ứng dụng Android có hiển thị như sau trong một cửa sổ hệ thống lớp phủ:
Tên ứng dụng, tên gói và quá trình id (ngoại trừ trên Nougat +) của các ứng dụng mà hiện nay đang ở phía trước của thiết bị
Việc sử dụng CPU toàn cầu với một sự cố trên mỗi lõi - Đây không phải là tiền cảnh ứng dụng cụ thể.
sự cố bộ nhớ sử dụng cho quá trình hiện cận cảnh - ngoại trừ trên Nougat + (đọc các ghi chú cho những hãy cẩn thận).
thông tin Netork như kiểu kết nối, tình trạng proxy và địa chỉ IP (es). Cả IPv4 và IPv6
Ghi chú và Hãy cẩn thận
---
* Các ứng dụng sẽ hiển thị bộ nhớ của các tiến trình đang cận cảnh mà nó được bằng cách các Id Quy trình hoạt động hiện cận cảnh. Điều này có nghĩa rằng nếu một ứng dụng đã sinh ra nhiều quy trình, ứng dụng này sẽ chỉ cho thấy việc sử dụng bộ nhớ của các tiến trình chính.
* Các thông tin bộ nhớ hiển thị đã đi qua một đối tượng Debug.MemoryInfo, trong khi sử dụng phản ánh để lộ một số lĩnh vực tiềm ẩn.
* Cập nhật dữ liệu xảy ra khoảng mỗi 1 giây.
Sử dụng bộ nhớ Android
---
Quản lý bộ nhớ trên Android là khá phức tạp và cách dễ nhất để bắt đầu với sự hiểu biết nó đang đọc bài viết này (https://developer.android.com/tools/debugging/debugging-memory.html) - đặc biệt là các "Xem Nhìn chung bộ nhớ phân bổ " phần.
GitHub Link: https://github.com/alt236/Floating-Info---Android