Skip to content

Commit e50232c

Browse files
authored
Update README.md
1 parent 137662c commit e50232c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@
2121
![monitor](https://github.com/user-attachments/assets/a8eab629-cf13-4340-911c-2b5eb351926e)
2222

2323
Đến đây chỉ cần mở monitor lên và dùng thôi (nếu mở thông thường không được thì hãy thử mở bằng Administrator)
24+
25+
- Hoặc ném method này vào static class nào đó rồi gọi nó ra cũng có thể mở được Monitor lên nhé
26+
27+
```csharp
28+
public static void OpenMonitor()
29+
{
30+
string path = $"{AndroidExternalToolsSettings.sdkRootPath}/tools/monitor.bat";
31+
if (File.Exists(path))
32+
{
33+
Process process = new Process();
34+
process.StartInfo.FileName = path;
35+
process.StartInfo.Verb = "runas";
36+
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
37+
process.Start();
38+
}
39+
}
40+
```

0 commit comments

Comments
 (0)