Turning your android phone in to a remote for your tv.
I am trying to build a android app on my Note 2 to allow me to use my phone as a remote for my samsung tv.
I have got my app to see my device by adding this code in to the AndroidManifest.xml
<activity
android:name="android.orion_ir.DashBoard"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>
and in the XML file i have
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 0x2341 / Arduino -->
<usb-device vendor-id="9025" />
<!-- 0x10C4 / USB IR TOY -->
<usb-device vendor-id="1240" product-id="64776" />
</resources>
No matter what I try, i can not send a simple command to the IR TOY 2 device.
the command I would like to send is
Device Code: 7 Function: 153 "On" = hex code 99
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689
This will turn on a samsung tv.
Can anyone help me figure this out?