I want to make an app in android which acts as a bluetooth keyboard/mouse to Pc. What is the Api available in android for this purpose and what are the ways of implementing it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you need to capture user touch events. Show a dumb view and then override this method in your activity.
Then, you have to send the events via usb. Read more here. I’m not sure if the PC is the host or the accesory in your case, but a plain PC won’t use the Android Accesory Protocol. You’ll probably have to write a “driver” to your app.
UPDATE:
Read here for an awesome approach using regular sockets and adb port forwarding.