Best would probably be to have your application put some data in a
known place on the card and then have your desktop application check
for that.  You can probably also find the vendor and product ID's of
the USB device that is exporting the mass storage and see if that
matches a known android phone, though you would have to update your
application every time a new one is released.  Maybe there is
something in the mass storage volume information or usb device
descriptors which can identify it as android.

Personally I think the mass storage mode is generally a bad idea, and
should be avoided, as it gives the desktop computer too much
opportunity to make a mess of things.  The card should really belong
to the phone... what are needed are more portable means of
program<>program communication with the desktop.  I generally use adb
commands to get things on and off of it rather than mass storage
mounting, though the current implementation of that is more developer
targeted than end user friendly.

On Sep 15, 11:13 am, manigault <[email protected]> wrote:
> I am trying to write a desktop client to synchronize data with my
> android app. When i mount the sd card how can i find is this is
> android sd card and how to check if given application is installed of
> the phone ( by de desktop client).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to