<commit_before>OpenTok Android Network Test Sample
===================================

This sample shows how to use this OpenTok Android SDK to determine the appropriate audio and video
settings to use in publishing a stream to an OpenTok session. To do this, the app publishes a test
stream to a test session and then uses the API to check the quality of that stream. Based on the
quality, the app determines what the client can successfully publish to an OpenTok session:

* The client can publish an audio-video stream at the specified resolution.

* The client can publish an audio-only stream.

* The client is unable to publish.

The sample app only subscribes to the test stream. It does not subscribe to other streams in the
test session. Do not use the test session for your actual call. Use a separate OpenTok session
(and session ID) to share audio-video streams between clients.

## Testing the app

To configure the app:

1. In Android Studio, select the File > Import Project command. Navigate to the root directory of
   this project, select the build.gradle file, and then click the OK button. The project opens in a
   new window.

   The Java code for the application is the MainActivity class in the
   com.tokbox.qualitystats.sample package.

2. Download the [OpenTok Android SDK](https://tokbox.com/opentok/libraries/client/android/).
   This sample requires version 2.5.0 or later.

3. Locate the opentok-android-sdk-2.x.x.jar file in the OpenTok/libs directory of the OpenTok
   Android SDK, and drag it into the app/libs directory of the project.

4. Locate the armeabi and x86 directories in the OpenTok/libs directory of the OpenTok
   Android SDK, and drag them into the app/jniLibs directory of the project.

5. In the com.opentok.qualitystats.sample.MainAcdtivity.java class, set the following properties
   to a test OpenTok session ID, token, and API key:
<commit_msg>update Android Readme to stay updated with main readme<commit_after>OpenTok Android Network Test Sample
===================================

This sample shows how to use this OpenTok Android SDK to determine the appropriate audio and video
settings to use in publishing a stream to an OpenTok session. To do this, the app publishes a test
stream to a test session and then uses the API to check the quality of that stream. Based on the
quality, the app determines what the client can successfully publish to an OpenTok session:

* The client can publish an audio-video stream at the specified resolution.

* The client can publish an audio-only stream.

* The client is unable to publish.

The sample app only subscribes to the test stream. It does not subscribe to other streams in the
test session. Do not use the test session for your actual call. Use a separate OpenTok session
(and session ID) to share audio-video streams between clients.

## Testing the app

To configure the app:

1. In Android Studio, select the File > Import Project command. Navigate to the root directory of
   this project, select the build.gradle file, and then click the OK button. The project opens in a
   new window.

   The Java code for the application is the MainActivity class in the
   com.tokbox.qualitystats.sample package.

2. Download the [OpenTok Android SDK](https://tokbox.com/opentok/libraries/client/android/).
   This sample requires version 2.7.0 or later.

3. Locate the opentok-android-sdk-2.x.x.jar file in the OpenTok/libs directory of the OpenTok
   Android SDK, and drag it into the app/libs directory of the project.

4. Locate the armeabi and x86 directories in the OpenTok/libs directory of the OpenTok
   Android SDK, and drag them into the app/jniLibs directory of the project.

5. In the com.opentok.qualitystats.sample.MainAcdtivity.java class, set the following properties
   to a test OpenTok session ID, token, and API key:

{'fraction_non_alphanumeric': 0.061442332725852644, 'fraction_numerical': 0.005727675084613382, 'mean_word_length': 4.022222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '737214', 'n_tokens_mistral': 1009, 'n_tokens_neox': 974, 'n_words': 570}