External peripherals emulating keyboard input

by Jarek » Sat, 05 Dec 2009 02:44:28 GMT


Sponsored Links
 I am trying to develop a device which would attach to my Droid and
send keystrokes to it, but I need help understanding how the USB OTG
works. I have the basic pinout, but is there a reference and
instruction set guide anywhere, preferably with example code? Has
anyone had any luck developing similar peripherals?

 http://wiki.droid-devs.com/images/7/7b/Otg.png 

Thank you for your time.

--



Other Threads

1. Ondraw not working for variable size rectangle

I am just trying to draw a rectangle whose height grows based on a
certain value. However it won't draw anything when I use this
variable. I think its some sort of clipping issue that I dont
understand. The ondraw belongs to a custom view (it simply extends the
View class)

THis works: (it draws a rectangle half the height of the screen

        @Override
        protected synchronized void onDraw(Canvas canvas) {
                canvas.drawRect(0, 0, getWidth()-1, (float).
5*(getHeight()-1),mPaint);
        }

This does not work at all (_progress is a float that starts at 0,
progresses to 1, its a vertical progress bar)


        @Override
        protected synchronized void onDraw(Canvas canvas) {
                canvas.drawRect(0, 0, getWidth(), (float)_progress*getHeight(),
mPaint);
        }

There has to be a glaringly obvious reason for this, i have messed
around with the cliprect with no luck. Thanks

Jon

-- 

2. how to put checkbox , text and image button in a linear layout




No offense, but this is as basic as it gets. What have you tried? What are
you having trouble with?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

3. android installer

4. How will the WAC affect android app development?

5. Rotating just the header?

6. Best Way To Implement An Activity That Lists Recipes

7. Phone Dialer Force Close Error