Skip to content

Commit

Permalink
OTG-Nilboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 11, 2022
0 parents commit 83fbe11
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 0 deletions.
7 changes: 7 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright © 2022 Nathanne Isip

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OTG-Nilboard
Android smartphone app to suppress the default keyboard.

## About the Project
This project is exclusively for Android smartphones only. I made this keyboard app the does nothing so that bluetooth and/or OTG physical keyboard users would be able to hide the Android phone's on-screen keyboard.

OTG-Nilboard keyboard literally does nothing and shows nothing, and is purposively made for bluetooth and/or OTG keyboard users as mentioned previously.

![Screenshot from settings](screenshot.png)

Check my other projects out at [nthnn.github.io](https://nthnn.github.io).
21 changes: 21 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="5"
android:versionName="one"
package="xyz.nathannestein.nilboard">

<uses-sdk android:minSdkVersion="4" />

<application android:label="OTG-Nilboard"
android:icon="@drawable/ic_launcher">

<service android:name="Nilboard"
android:permission="android.permission.BIND_INPUT_METHOD">

<intent-filter>
<action android:name="android.view.InputMethod" />
</intent-filter>
<meta-data android:name="android.view.im" android:resource="@xml/method" />
</service>
</application>
</manifest>
43 changes: 43 additions & 0 deletions app/src/main/java/xyz/nathannestein/nilboard/Nilboard.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
Copyright © 2022 Nathanne Isip
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software
and associated documentation files (the “Software”),
to deal in the Software without restriction,
including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
*/

package xyz.nathannestein.nilboard;

import android.inputmethodservice.InputMethodService;

public class Nilboard extends InputMethodService {
public boolean onEvaluateInputViewShown() {
return false;
}

public boolean onShowInputRequested(int n, boolean bl) {
return false;
}

public void onWindowShown() { }
}
Binary file added app/src/main/res/drawable/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/src/main/res/xml/method.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<input-method xmlns:android="http://schemas.android.com/apk/res/android">
</input-method>
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 83fbe11

Please sign in to comment.