#20 Android support

open
nobody
None
5
2010-08-22
2010-08-22
Anonymous
No

It would be very appreciated if there would be an installer for the android OS. Even if there are ways to install the program using the .jar package, it is better to use the native .apk.
Great work, anyway!
Thanks

Discussion

  • Stephan
    Stephan
    2010-11-17

    Hi, I installed the available apk on my HTC Desire. I was able to connect via Wifi to my ubuntu laptop, but not via bluetooth.

    Could you tell me if connecting via bluetooth is supported?

     
  • deion
    deion
    2010-11-18

    Connecting via bluetooth is supported for Android client, just make sure the PC is paired with your phone before connecting SmartCam

     
  • Stephan
    Stephan
    2010-11-18

    Well, I've done some tests, and the android client connects to a windows PC (MS BT stack), but not to an Ubuntu PC via bluetooth.

     
  • Stephan
    Stephan
    2010-11-19

    Would it be possible to compile a test version with the attached patch? It seems that it fixes the issue, but I'm a newbie in Android development and can't compile it myself.
    Thanks in advance.

     
  • Stephan
    Stephan
    2010-11-19

    --- a/src/com/smartcam/webcam/comm/BluetoothHandler.java 2010-11-04 00:51:24.000000000 +0100
    +++ b/src/com/smartcam/webcam/comm/BluetoothHandler.java 2010-11-19 18:28:52.000000000 +0100
    @@ -59,7 +59,13 @@
    BluetoothDevice btDev = btAdapter.getRemoteDevice(btDevAddr);
    try
    {
    - btSocket = btDev.createRfcommSocketToServiceRecord(SMARTCAM_BT_SERVICE_UUID);
    + /*
    + btSocket = btDev.createRfcommSocketToServiceRecord(SMARTCAM_BT_SERVICE_UUID);
    +
    + found at http://kr3l.wordpress.com/2010/09/04/using-android-as-robot-remote-control
    + */
    + Method m = btDev.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
    + btSocket = (BluetoothSocket) m.invoke(btDev, 1);
    }
    catch(IOException e)
    {

     
  • Carlos Bessa
    Carlos Bessa
    2011-07-06

    Could android 2.1 also be supported?
    It seems to be restricted to android 2.2+, while there are still many 2.1 devices.
    regards,
    Carlos Bessa