Why my Android DevPhone 2 keep recgonizing my notebook computer as a Headset?

by AITD » Mon, 26 Apr 2010 13:46:55 GMT


Sponsored Links
 Hi everyone,

I'm new to Android development. And now I'm trying to do some practice
about bluetooth.
I bought a Android DevPhone 2 which OS is Android 1.6. Not support
bluetooth API of course.
So I have to us "backport-android-bluetooth" to program.

But now I got a problem here.
7,
It always shows a headset icon on the right side of the pairing device
item of my computer.

And I use "32feet.NET 2.5" as a PC client to send a message to ADP2
using RFCOMM after paired.
But from adb logcat, everytime PC wants to send something to ADP2,
ADP2 always says
incoming headset connection, and the connection is actully
successfully established.
But then the adb will tell me either "Listener poll() successful but
with a unexpected revent of bitmask 0x018",
or, it will tell me "Connection reset by peer" after I tried once or
twice.

Does anyone has any idea why my PC is recognized as a headset.
Or it has nothing to do with the error I encountered with, then how am
I suppose to solve it?

Thank you for your time and I'm looking forward to your answer.

Cheers
Chris Wang

--



Other Threads

1. Can a application developed using Android used on any mobile phone type?

I have zero knowledge of software so pls bear with my questions b'se
they might seem to be some stupid questions.

I want to develop a application which can be used on different cell
phones like iPhone, Blackberry, Palm. I am aware that it might need
something different for each one. May be the programming language
could be different or whatever. Again my software knowledge is zero so
will appreciate inputs, advice.

Can a application developed using Android used on any mobile phone
type?

Thanks
Sam

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

2. Cannot install packages on new phone

Hi all.

I've been developing for a few weeks now, and testing them on a
friend's phone (HTC Magic). I never had any problems.

Today my new phone arrived (HTC Hero) and now I can't install my
packages. I get the error "There is a problem parsing the package".

I have set it to allow packages from unknown sources, but I don't know
what else I can try... help please?
--~--~---------~--~----~------------~-------~--~----~

3. Inputs group id 1004

4. enableMyLocation() return false

5. Place an icon in status bar (not notification)

6. Activity launch timeout even with wakelock

7. onTrackballEvent hogging CPU time.