Today, I've released a new open source project that has help me build my latest app. I needed an EditText with full capabilities, except for the keyboard showing up. All of the possible answers that I found on StackOverflow and GitHub all had their limitations, especially the lack of native editing (cut/copy/select/paste) options.
All of the problems have been abstracted out to a simple subclass of EditText that you can use easily in any project.
You can try it out on GitHub now: https://github.com/danialgoodwin/android-widget-keyboardless-edittext
Or, you can go directly to test the APK: https://play.google.com/store/apps/details?id=net.simplyadvanced.simplytonegenerator
If you have any questions or need clarifications on how to use the project, then please let me know.
~ Danial Goodwin ~
Showing posts with label keyboard. Show all posts
Showing posts with label keyboard. Show all posts
2014-06-04
2014-01-29
Level Up - Android: How To Connected a Full-Sized Keyboard to Android Device?
In this post, I will walk you through connecting a computer keyboard to an Android phone or tablet, via WiFi (or USB cable).
Estimated time of completion: About five to ten minutes the first time, and less than minute after your first run through.
Why is this useful?
There are many great apps on smartphones, but some people find it much more comfortable to use a full-sized keyboard for typing, especially for long periods of time. After going through this post, you will be able to use your computer keyboard like an advanced user:
1. For text messages (SMS), WhatsApp, and any other app with an input field.
2. You will be able to copy&paste text.
3. Speeddial. You can set the function keys on keyboard to open any app on the phone.
and more..
You will need:
- A Telnet program, like PuTTY
- A app on your device, called "Remote Keyboard" created by Onyxbits.
- A WiFi connection
Step 1: Download app to your Android device
1.1. Link: https://play.google.com/store/apps/details?id=de.onyxbits.remotekeyboard
1.2. When you open the app, it should look something like the following. Note the host address on there, it will be different for you.
1.3. Click the "Select Keyboard" button on the Action Bar, at the top of the screen and choose "Remote Keyboard"
Step 2: Download PuTTY to your computer
2.1. Link: http://www.putty.org/
2.2. When you open PuTTY, change your configurations in three different places: Host, Port, and Connection type. You will get the port number and host address from the Remote Keyboard app. The connection type should be set to Telnet.
2.3. Click Open.
Step 3: Connect to device via Telnet on the computer
3.1. You should now see a window that looks like the following. And, you when you type into this window, key presses will go straight to your device rather than showing up on this window. Just click on any input field on Android to have the key presses sent there.
Notes:
- For step 3, if you only see a blank screen, then wait a little longer for the connection. Then, possibly try sending a few keystrokes into the window and the Enter key.
- Windows does have a Telnet client, but I didn't get it to work. Using PuTTY was much simpler.
- Telnet connections are not secure. Each input is sent unencrypted.
- To connect more securely over USB, here are some instructions.
~ Danial Goodwin ~
Estimated time of completion: About five to ten minutes the first time, and less than minute after your first run through.
Why is this useful?
There are many great apps on smartphones, but some people find it much more comfortable to use a full-sized keyboard for typing, especially for long periods of time. After going through this post, you will be able to use your computer keyboard like an advanced user:
1. For text messages (SMS), WhatsApp, and any other app with an input field.
2. You will be able to copy&paste text.
3. Speeddial. You can set the function keys on keyboard to open any app on the phone.
and more..
You will need:
- A Telnet program, like PuTTY
- A app on your device, called "Remote Keyboard" created by Onyxbits.
- A WiFi connection
Step 1: Download app to your Android device
1.1. Link: https://play.google.com/store/apps/details?id=de.onyxbits.remotekeyboard
1.2. When you open the app, it should look something like the following. Note the host address on there, it will be different for you.
1.3. Click the "Select Keyboard" button on the Action Bar, at the top of the screen and choose "Remote Keyboard"
![]() |
| Remote Keyboard, Android app |
Step 2: Download PuTTY to your computer
2.1. Link: http://www.putty.org/
2.2. When you open PuTTY, change your configurations in three different places: Host, Port, and Connection type. You will get the port number and host address from the Remote Keyboard app. The connection type should be set to Telnet.
2.3. Click Open.
![]() |
| How to set up a Telnet connection |
Step 3: Connect to device via Telnet on the computer
3.1. You should now see a window that looks like the following. And, you when you type into this window, key presses will go straight to your device rather than showing up on this window. Just click on any input field on Android to have the key presses sent there.
![]() |
| A Telnet connection to an Android smartphone. |
Notes:
- For step 3, if you only see a blank screen, then wait a little longer for the connection. Then, possibly try sending a few keystrokes into the window and the Enter key.
- Windows does have a Telnet client, but I didn't get it to work. Using PuTTY was much simpler.
- Telnet connections are not secure. Each input is sent unencrypted.
- To connect more securely over USB, here are some instructions.
~ Danial Goodwin ~
2014-01-02
A Million Monkeys vs Government
If a million monkeys on a million keyboards+computers could eventually type out all of Shakespeare's works, then it they could probably type out all of government's secrets also.
What are they going to do about that?
~ Danial Goodwin ~
What are they going to do about that?
~ Danial Goodwin ~
2013-01-28
Windows 8 Power Users
There is going to be a new paradigm with Windows 8. I'm not just talking about the Modern UI (also was known as Metro UI).
Microsoft provides users many advanced mouse functionalities that hasn't been natively including in an operating system.
Typically, when we think of power users, we think of experts at the keyboard that have memorized many shortcuts and snippets of code. But, the new paradigm shift from Windows 8 is going to provide people the ability to call themselves mouse power users. Perhaps more people will learn about mouse gestures because of this. I'd give it at least another two years before mouse gestures become more mainstream, not just the mouse device gestures.
Personally, I typically prefer the keyboard to mouse, so much so that I created a script that allows keyboards to perform a double-click. But, there are definitely some times that the mouse is faster. Also, for those who don't like to use the keyboard at all there are many programs that you can download to provide your mouse the ability to do pretty much anything.
- Just Gestures
- Mouse Gestures
Let me know your experiences with mouse gestures.
~ Simply Advanced ~
*I did not personally try out these programs
Microsoft provides users many advanced mouse functionalities that hasn't been natively including in an operating system.
Typically, when we think of power users, we think of experts at the keyboard that have memorized many shortcuts and snippets of code. But, the new paradigm shift from Windows 8 is going to provide people the ability to call themselves mouse power users. Perhaps more people will learn about mouse gestures because of this. I'd give it at least another two years before mouse gestures become more mainstream, not just the mouse device gestures.
Personally, I typically prefer the keyboard to mouse, so much so that I created a script that allows keyboards to perform a double-click. But, there are definitely some times that the mouse is faster. Also, for those who don't like to use the keyboard at all there are many programs that you can download to provide your mouse the ability to do pretty much anything.
- Just Gestures
- Mouse Gestures
Let me know your experiences with mouse gestures.
~ Simply Advanced ~
*I did not personally try out these programs
2012-12-18
How to Create a Hotkey to Double Click Using AutoHotkey
Just created a hotkey to double-click so that I don't have to use the mouse! It is very much worth it and will speed up coding. There are other areas that I will be more productive in also. Just can't think of them right now.
I used an awesome program called AutoHotkey to achieve this and many other create keyboarding shortcuts/hotkeys/scripts. The following code basically says, "if ctrl is pressed twice consecutively in less than 500ms, then click two times at the caret position."
Let me know if this helps. =]
Disclaimer: I have not done an extensive test on all programs to see if this works. But, I know that it works in Notepad++, Eclipse, Notepad, and MS Word 2010. While typing this, the hotkey seems to return (aka double click) the top-left corner.
~ Simply Advanced ~
I used an awesome program called AutoHotkey to achieve this and many other create keyboarding shortcuts/hotkeys/scripts. The following code basically says, "if ctrl is pressed twice consecutively in less than 500ms, then click two times at the caret position."
Ctrl::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500) {
MouseGetPos X,Y
Send {Click %A_CaretX%,%A_CaretY% 2} ; Moves the cursor
MouseMove (X),(Y) ; Moves back the cursor
}
Return
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500) {
MouseGetPos X,Y
Send {Click %A_CaretX%,%A_CaretY% 2} ; Moves the cursor
MouseMove (X),(Y) ; Moves back the cursor
}
Return
- Instead of using "%A_CaretX%,%A_CaretY%", it is possible to hardcode an x and y value to click on.
- If you remove the line starting with MouseMove, then the cursor will move to the position the caret is at.
Let me know if this helps. =]
Disclaimer: I have not done an extensive test on all programs to see if this works. But, I know that it works in Notepad++, Eclipse, Notepad, and MS Word 2010. While typing this, the hotkey seems to return (aka double click) the top-left corner.
~ Simply Advanced ~
Subscribe to:
Posts (Atom)



