Skip to content

Commit fd90343

Browse files
authored
Merge pull request #67 from xSAVIKx/add-screenshots
Improve docs
2 parents 223473b + 34b2a81 commit fd90343

File tree

7 files changed

+39
-17
lines changed

7 files changed

+39
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Java CI
1+
name: CI
22

33
on:
44
push:

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AndroidScreencast
66
[![Join the chat at https://gitter.im/AndroidScreencast/Lobby][gitter_badge]][gitter] 
77
[![Apache License][license_badge]][license]
88

9-
[actions_badge]: https://github.com/xSAVIKx/AndroidScreencast/workflows/CI/badge.svg?branch=master
9+
[actions_badge]: https://github.com/xSAVIKx/AndroidScreencast/workflows/CI/badge.svg
1010
[actions]: https://github.com/xSAVIKx/AndroidScreencast/actions
1111

1212
[versioneye_badge]: https://www.versioneye.com/user/projects/58a746d8b4d2a20055fcb887/badge.svg?style=flat
@@ -43,25 +43,26 @@ This project gives the opportunity to use your phone even with a broken screen.
4343
## Configuration
4444

4545
There are 2 ways to run application:
46-
1. Run ADB server on your own
47-
2. Provide correct `app.properties` file
46+
47+
1. Run ADB server on your own.
48+
2. Provide a correct `app.properties` file.
4849

4950
### Run ADB server on your own
5051

51-
In order to run server on your own you have to run already installed (or one from our
52-
OS-specific bundle) `adb` with following command:
52+
In order to run server on your own you have to run already installed (or one from our OS-specific bundle) `adb` with
53+
following command:
5354

54-
```
55+
```bash
5556
adb start-server
5657
```
5758

5859
**Note**:
5960

60-
If `app.properties` will have `adb.path` filled - AndroidScreencast will shutdown ADB server
61-
on application termination.
61+
If `app.properties` will have `adb.path` filled, AndroidScreencast will shutdown the ADB server on application
62+
termination.
6263

63-
Additionally, in order to use, for example, remote ADB server with ssh forwarding you should not
64-
use `app.properties` or `adb.path` property should be commented.
64+
Additionally, in order to use for example remote ADB server with ssh forwarding you should not use `app.properties`
65+
or `adb.path` property should be commented.
6566

6667
### Provide correct `app.properties` file
6768

@@ -78,7 +79,7 @@ Both absolute and relative paths are supported.
7879

7980
Example of valid `app.properties` could be find [here](app.properties).
8081

81-
Also we have got some valid OS-specific examples:
82+
Also, we have got some valid OS-specific examples:
8283

8384
* [OSX app.properties](adb/macosx/app.properties)
8485
* [Windows app.properties](adb/windows/app.properties)
@@ -112,7 +113,7 @@ app.native.look=false
112113

113114
Application is available using Java web start technology via [androidscreencast.jnlp][jnlp].
114115

115-
[jnlp]: http://xsavikx.github.io/AndroidScreencast/jnlp/androidscreencast.jnlp
116+
[jnlp]: https://xsavikx.github.io/AndroidScreencast/jnlp/androidscreencast.jnlp
116117

117118
### Java security configuration
118119

@@ -136,7 +137,7 @@ replacing `VERSION` with the current version.
136137

137138
For example, `java -jar target/androidscreencast-0.0.10s-executable.jar`.
138139

139-
Additionally OS-packages would be created with ADB executables bundled:
140+
Additionally, OS-packages would be created with ADB executables bundled:
140141

141142
* `androidscreencast-VERSION-windows.zip`
142143
* `androidscreencast-VERSION-linux.tar.gz`

docs/assets/androidscreencast.mov

63.8 MB
Binary file not shown.

docs/assets/exec-command.png

251 KB
Loading

docs/assets/main.png

172 KB
Loading

docs/index.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ AndroidScreencast was developed to view and control your android device from a P
1010

1111
This project gives the opportunity to use your phone even with a broken screen.
1212

13+
The main screen:
14+
15+
![AndroidScreencast - Main screen](./assets/main.png)
16+
17+
Commands execution screen:
18+
19+
![AndroidScreencast - Execute command](./assets/exec-command.png)
20+
21+
Video recorded by the app:
22+
23+
<video src="{{ site.baseurl }}/assets/androidscreencast.mov" type="video/mp4"/></video>
24+
1325
## Features
1426

1527
- No client needed
@@ -40,15 +52,23 @@ To use JNLP, please follow this article: [How can I configure the Exception Site
4052

4153
# Requirements
4254

43-
Currently AndroidScreencast works directly with `adb input` program through `ddmlib` and abuse functionality of:
55+
Currently, AndroidScreencast works directly with `adb input` program through `ddmlib` and uses functionality of:
56+
4457
- `adb input key`
4558
- `adb input tap`
4659
- `adb input swipe`
4760

48-
Regarding this point, to use AndroidScreencast you need Smartphone running on Android with specific `input` program version. `adb input tap` and `adb input swipe` were introduced in [Android 4.1.1][Android_4_1_1_Input].
61+
Regarding this point, to use AndroidScreencast you need Smartphone running on Android with specific `input`
62+
program version. `adb input tap` and `adb input swipe` were introduced in [Android 4.1.1][Android_4_1_1_Input].
4963

5064
So, right now AndroidScreencast support all Android versions equal or greater than Android 4.1.1.
5165

5266
Also, to run AndroidScreencast you will need *adb* installed (or you can use bundled in OS bundles adb).
5367

5468
[Android_4_1_1_Input]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/com/android/commands/input/Input.java#Input
69+
70+
# More info
71+
72+
Please refer to the project's [GitHub page][github] for more detailed overview and specific instructions.
73+
74+
[github]: https://github.com/xSAVIKx/AndroidScreencast

src/main/java/com/github/xsavikx/androidscreencast/api/injector/ScreenCaptureRunnable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ private void display(final RawImage rawImage) {
117117
if (qos != null) {
118118
SwingUtilities.invokeLater(() -> {
119119
try {
120-
qos.writeFrame(image, FRAME_DURATION);
120+
if (qos != null)
121+
qos.writeFrame(image, FRAME_DURATION);
121122
} catch (IORuntimeException e) {
122123
log().error("IO exception happened during writing the video frame: {}.", image, e);
123124
}

0 commit comments

Comments
 (0)