I am currently working on an Android TV application.
I used Android Lean support support.
I added one ListView , but I canβt select any item from the View list with a real remote device. However, I can select the listView item on my Android device with the mouse.
Here is my listView code example:
customViewOrders = new CustomViewOrders(getActivity().getBaseContext(), arrayViewOrders); lstViewOrder.setAdapter(customViewOrders);
Here arrayViewOrders is my ArrayList that contains the data retrieved from the JSON web service.
Here is my JSON answer:
{ "order":[ { "0":"13829CF", "gen_id":"13829CF", "1":"17534CF", "2":"Complete", "ord_status":"Complete", "3":"Online Preview", "sta_name":"Online Preview", "4":"2015-10-27 00:00:00", "image":"cinereel", "placed_from":"web" } ] }
I also added the following functions in the AndroidManifest.xml file:
<uses-feature android:name="android.hardware.touchscreen" android:required="false" /> <uses-feature android:name="android.hardware.faketouch" android:required="true" />
So my question is: how to select something (i.e. a list item, button) in a real device using a remote?
source share