Coder Social home page Coder Social logo

desktopkeyboard2android's People

Contributors

alban-auzeill avatar dportabella avatar jcarsique avatar pablohn26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

desktopkeyboard2android's Issues

Use the adb Monkeyrunner API instead of adb connect + WifiKeyboard app.

Android Debug Bridge (which we are already using to forward the key events to the WifiKeyboard app) also has an API to send key events to the android without requiring any installed app. So we can remove the need for installing WifiKeyboard app. Moreover, then there is no need for launching the adb connect command on the laptop, no need for launching the WifiKeyboard app, and no need for switching between the native android keyboard and this one.

ADB: Android Debug Bridge
http://developer.android.com/tools/help/adb.html

API. see the the type and press methods
http://developer.android.com/tools/help/MonkeyDevice.html

example:
http://stackoverflow.com/questions/6686085/how-can-i-make-a-java-app-using-the-monkeyrunner-api

maven dependencies:
http://stackoverflow.com/questions/6686085/how-can-i-make-a-java-app-using-the-monkeyrunner-api/33330298#33330298

Keep getting error from wifikeyboard app

Hi,
wifikeyboard works, http://localhost:7777/ works too, but DesktopKeyboard2Android keeps displaying on each keypress :
unexpected response from android Wifikeyboard app [multi].
I first tought I had a problem with WKB having a page open and connected while running DK2A, but I still get the same problem after a reboot of my pc. WKB runs on a Nvidia Shield Pro. DK2A, on Win10
DK2A 22-08-02 182455
.

~

mvn -e exec:java -Dexec.mainClass="desktopKeyboard2Android.DesktopKeyboard2Android"

  • Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'exec'.
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - io.githubdportabella:DesktopKeyboard2Android:jar:1.1-SNAPSHOT
    [INFO] task-segment: [exec:java]
    [INFO] ------------------------------------------------------------------------
    [INFO] [exec:java {execution: default-cli}]
    [WARNING]
    java.lang.ClassNotFoundException: desktopKeyboard2Android.DesktopKeyboard2Android
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
    at java.lang.Thread.run(Thread.java:745)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] An exception occured while executing the Java class. desktopKeyboard2Android.DesktopKeyboard2Android

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured while executing the Java class. desktopKeyboard2Android.DesktopKeyboard2Android
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. desktopKeyboard2Android.DesktopKeyboard2Android
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:345)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.ClassNotFoundException: desktopKeyboard2Android.DesktopKeyboard2Android
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Nov 30 17:48:20 EET 2015
[INFO] Final Memory: 16M/167M
[INFO] ------------------------------------------------------------------------

How to reset the Sequence key?

I try Desktop Keyboard 2 Android-release-1.0 very excited, thank dportabella! However when used to copy / paste multiple times through the application, it forced to reboot the computer and my android.
The problem may be in source code "int keySequence ++" in the URL "http://localhost:7777/key?" + keySequence + "," + keyEventString + ",". Value 32bit largest so how to reset?
Thank you explaining to me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.