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.
Questions tagged [accessory]
125 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,443
- 7
- 19
- 31
22
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
- 408
- 1
- 3
- 16
14
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
- 355
- 3
- 13
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,220
- 17
- 76
- 135
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,332
- 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
- 9,280
- 12
- 75
- 170
8
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.
- 6,088
- 1
- 10
- 23
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
- 11,344
- 14
- 61
- 110
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
- 26,946
- 12
- 75
- 101
6
votes
2 answers
Android USB Host Mode and Accessory Mode
I am trying to learn Android USB Host/Accessory connection. I read android devices can act usb host or usb accessory. Therefore I create two project one of them usb host project, other usb accessory project. I installed these projects to two…

Zapateus
- 516
- 3
- 8
- 21
6
votes
1 answer
Connecting External Accessories Bluetooth devices without user interaction
According to EAAccessoryManager Class Reference from iOS 6 onward using showBluetoothAccessoryPickerWithNameFilter we can show a Accessory picker that will help user to connect External Accessories with that include an iAP over Bluetooth unique…

RVC
- 61
- 2
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?

KarlchenKanther
- 81
- 4