Touchscreen PenMoun

by Androidphan » Thu, 12 Mar 2009 13:01:37 GMT


Sponsored Links
 I'm having trouble getting the touchscreen to work. The touchscreen on
my device is a PenMount 6000 USB.
When running dmesg, this is what I found about it:

<6>[    4.033918] input: DIALOGUE INC PenMount USB as /class/input/
input6
<7>[    4.060448] evbug.c: Connected device: "DIALOGUE INC PenMount
USB", usb-0000:00:1d.7-4.1/input0
<6>[    4.060456] input: USB HID v0.01 Mouse [DIALOGUE INC PenMount
USB] on usb-0000:00:1d.7-4.1
<6>[    4.066725] usbcore: registered new interface driver usbhid
<6>[    4.070042] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core
driver

This says it's registered as a USB HID, does this report relative
movements?. Can I get this to work with  Android in some way?

Information from /proc/bus/input/devices
I: Bus=0003 Vendor=14e1 Product=6000 Version=0001
N: Name="DIALOGUE INC PenMount USB"
P: Phys=usb-0000:00:1d.7-4.1/input0
S: Sysfs=/class/input/input6
U: Uniq=
H: Handlers=mouse0 event6 evbug
B: EV=1b
B: KEY=30000 0 0 0 0 0 0 0 0
B: ABS=3
B: MSC=10

It is registered as /dev/input/event6.

Can someone give me some hints on getting this to work? Do I need to
write my own device driver?
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Thoughts on this LenientPolicy implementation of an LVL Policy?

I've been playing around with the new LVL announced yesterday and
wanted to write a policy which only stops the user when it is certain
that he does not have a license.

In other words, the policy will only "dontAllow" the user if the last
meaningful response from the licensing service was NOT_LICENSED.
Therefore, if the user is offline when they first use the app, then
they will be allowed in.

The idea behind this is that I don't want genuine paying users to ever
(within reason) be inconvenienced by this licensing system.

The downside is that all the user needs to do is clear the app data
and go offline before restarting the app. The app will continue
working until they go online (and restart the app).

My thoughts are:

1. Most users won't know about that workaround
2. Those users that are happy to use that workaround, probably
wouldn't pay for the app anyway

Any other thoughts?

===

Here is the code:

public void processServerResponse(LicenseResponse response,
ResponseData rawData) {
        mLastResponse = response;
        if (response == LicenseResponse.LICENSED || response ==
LicenseResponse.NOT_LICENSED) {
                // note - we don't want to say "IS_LICENSED" because that can be
hacked
                SharedPreferences prefs =
PreferenceManager.getDefaultSharedPreferences(this.mContext);
                Editor edit = prefs.edit();
                if (response == LicenseResponse.LICENSED) {
                        edit.remove(NOT_LICENSED_PREF);
                } else if (response == LicenseResponse.NOT_LICENSED) {
                        edit.putBoolean(NOT_LICENSED_PREF, true);
                }
                edit.commit();
        }
}

public boolean allowAccess() {
        if (mLastResponse == null) {
                // this is the first call
                return false;
        }
        switch (mLastResponse) {
        case LICENSED:
                return true;
        case NOT_LICENSED:
                return false;
        default:
                return !isDefinitelyNotLicensed();
        }
}

public boolean isDefinitelyNotLicensed() {
        // if we don't know, then its NOT definitely not licensed.
        SharedPreferences prefs =
PreferenceManager.getDefaultSharedPreferences(mContext);
        return prefs.getBoolean(NOT_LICENSED_PREF, false);
}

-- 

2. I'm done with development, how do i publish my apk

Hi,

I'm just about done with development and emulator testing and I'm
unclear how to proceed with getting my application ready for actual
device testing and them publishing.

Here's my main concern: I have around 600 images that I will need to
have loaded (on initial installation) onto an sd card.  What is the
best way to do this? HTTP? Is there an automated process? Is this
handled by an installation script.

Are there documents that cover this type of scenario?

When it comes time for actual publishing the application, again, how
will I handle loading the images onto the sd card during the initial
installation?

Thanks,

jb

-- 

3. hadi sunarpo ingin chatting

4. WTHelp : Droid setelah instal CM 6 RC 2 gak bisa masuk recovery clockwork

5. Any way to get notified when startActivity is called?

6. What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

7. I would like to be able to buy an app for a friend