Questions tagged [accessory]

Mode which allows Android-powered devices that cannot act as a USB host to still interact with USB hardware. In this mode, the attached Android USB accessory acts as the host, provides power to the USB bus, and enumerates connected devices.

123 questions
30
votes
4 answers

Debugging an iOS app with an external accessory connected via Dock

Am I missing something glaringly obvious or is there no way to debug an iOS app which uses an external accessory that's connected via the 30-pin dock without using a bucket load of logs etc. I want to be able to use things such as breakpoints and…
DJ Bouche
  • 1,154
  • 1
  • 9
  • 17
22
votes
2 answers

Proper way to close a USB accessory connection

What is the proper way to close a connection to a UsbAccessory in Android? It seems the even in the stock Google example, if I connect and accessory, exit the app and then go back to it, the connection is not re-established. Looking closely, it…
Ytai
  • 631
  • 4
  • 9
22
votes
12 answers

Which is the best way to change the color/view of disclosure indicator accessory view in a table view cell in iOS?

I need to change the color of the disclosureIndicatorView accessory in a UITableViewCell. I think there are two ways to get this done, but I'm not able to figure out which one's the optimum. So here is what I think I can do. There is a property of…
AJ.
  • 1,413
  • 7
  • 19
  • 31
21
votes
7 answers

Toolbar with "Previous" and "Next" for Keyboard inputAccessoryView

I've been trying to implement this toolbar, where only the 'Next' button is enabled when the top textField is the firstResponder and only the 'Previous' button is enabled when the bottom textField is the firstResponder. It kind of works, but what…
BillySangster
  • 406
  • 1
  • 3
  • 16
14
votes
3 answers

UITableViewCell Custom accessory - get the row of accessory

I have a pretty big issue. I am trying to create a favorite-button on every UITableViewCell in a UITableView. That works very good, and I currently have an action and selector performed when pressed. accessory = [UIButton…
Emil
  • 7,051
  • 17
  • 72
  • 131
11
votes
3 answers

UITableViewCell accessory not being tinted

I've read multiple Q&A on the topic but none seem to work so here's my problem. I created a custom UITableViewCell and in the Storyboard, I asked for there to be a disclosure indicator accessory. It is said that the tintColor should change the color…
Tokuriku
  • 1,292
  • 13
  • 22
9
votes
3 answers

Wireless accessory configuration in iOS: EAWiFiUnconfiguredAccessoryBrowser will detect unconfigured accessories only once

I am using EAWiFiUnconfiguredAccessoryBrowser to detect EAWiFiUnconfiguredAccessory. The code to start the accessory search it's the following: - (void)viewDidLoad { [super viewDidLoad]; if (_accessories == nil) { _accessories =…
mm24
  • 8,150
  • 11
  • 65
  • 159
8
votes
1 answer

How to launch an iphone app when an external accessory is either paired over BT or plugged into dock connector

I have researched this to death online and cannot find anything regarding auto launching an iphone app when an external accessory is either paired using BT or plugged into the dock connector. We are an MFi developer with a BT accessory and…
andy k
  • 111
  • 2
  • 5
8
votes
1 answer

iPad accessory communication through UART

We manufacture a new accessory for iPad/iPhone which should transfer commands to the iPad. We like to use UART (through a certain Apple-protocol called Lingo). My research shows that I can only use USB (30PIN Connector) and custom…
Sebastian Roth
  • 10,454
  • 13
  • 56
  • 103
7
votes
4 answers

Why does EAAccessoryDidConnectNotification occur twice?

I have a class that manages messages coming from and going to an external accessory to an iPad. In the init I have the following code: - (id) init { self = [super init]; if (!self) return; [[EAAccessoryManager sharedAccessoryManager]…
Sam
  • 25,752
  • 12
  • 68
  • 97
7
votes
2 answers

Android USB_DEVICE_ATTACHED persistent permission

How can I make Android not request for permission each time I reconnect a USB device? I want to make it to remember "Use by default" checkmark for the USB devices so that I don't have to give permission every time to the same device. I…
Ivan Dortulov
  • 175
  • 2
  • 11
6
votes
1 answer

What exactly is its return value of openAccessory?

I'm struggling with resume of my Android App when connected to USB accessory. Obviously my ParcelFileDescriptor is null, and the method openAccessory() doesn't return anything when I call it onResume(). Anybody experienced that, yet?
5
votes
2 answers

How to implement Android Open Accessory mode as a service?

I've been playing around with the Android Open Accessory Development Kit. By following the DemoKit example provided by Google, I've had no trouble in adapting the solution to my application. I can detect, communicate, and detach the accessory just…
Petteri Pertola
  • 281
  • 2
  • 6
  • 21
5
votes
0 answers

Better way to read data from Android USB Accessory

I am writing an Android app in Java that communicates with a USB accessory using an Android accessory API. The google documentation does not give an example of actually reading and writing data, only how to open the accessory for communication. It…
Lev M.
  • 4,162
  • 1
  • 6
  • 21
5
votes
0 answers

Android USBAccessory reconnecting

I have a problem with reconnecting to an USB accessory after it has been plugged off and on again. The first time the accessory is plugged in I am able to do all the steps to actually communicate with the device Enumerate the accessory Get…
Frank X
  • 145
  • 1
  • 1
  • 8
1
2 3
8 9