Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23267] Hyperloop: Android - Unable to call method accepting byte[] argument

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-04-27T16:06:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsAndroid, Hyperloop
Labelsandroid, hyperloop, needTestCase
ReporterBrian García
AssigneeChristopher Williams
Created2016-04-22T14:32:33.000+0000
Updated2018-08-06T17:49:30.000+0000

Description

descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
results in:
HyperloopProxy: (main) [3454,3454] Unable to resolve method call. Class: android.bluetooth.BluetoothGattDescriptor, method name: setValue, args: [[Ljava.lang.Object;@3f4
See http://developer.android.com/reference/android/bluetooth/BluetoothGattDescriptor.html#setValue(byte[])

Comments

  1. Hans Knöchel 2016-08-04

    [~bgarcia] Can you please add a simplified test-case with the expected behavior here so QE can verify the fix as well?
  2. Brian García 2016-08-04

    this is a difficult one... theoretically if you can get a descriptor from a BLE device (after a ble scan, retrieving device characteristics) just :
       var BluetoothGattDescriptor = require('android.bluetooth.BluetoothGattDescriptor');
       var descriptor = BluetoothGattDescriptor.cast(descriptors.get(i));
       descriptor.setValue(BluetoothGattDescriptor.ENABLE_INDICATION_VALUE);
       
  3. Hans Knöchel 2016-08-04

    Mhh, ok. descriptors would be undefined in the above example. Another method that would accept a byte[] argument which our QE could test? I'm not too familiar with Android.
  4. Brian García 2016-08-04

    mmm neither do I... may be cwilliams could help
  5. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source