TV Remote using a Cellphone - android

I was wondering if it's possible to build an app which works as a TV remote, I've been googling around but so far all I've found are apps that already do or attempt to do it, but nothing that gives me an idea of how to achieve this. Does anyone know? I want to try and do it for an android phone.

Phones generally don't have IR(infrared) ports, so that isn't much of an option.

you can cling library
its url is mentioned below
http://4thline.org/projects/cling/

Related

Android Studio and Bluetooth---mission impossible

I am trying to put together a little phone app that will take characters from an ExitText and send them out via Bluetooth.
Getting Bluetooth to work seems to have become an impossible task. I have used Bluetooth before with other SDKs and it was simple. I want to replace a program I wrote years ago using VB5 and Bluetooth. It was simple and I had it working in a few hours. With Android Studio I can't seem to find any simple way of using Bluetooth.
Not that there aren't any examples. In fact there are TOO MANY examples. Most seem to be for obsolete versions of Android Studio or have other problems making them impossible to implement in 3.2.1. When I try, get so many errors I know I will never be able to correct them. Others don't throw errors but nothing happens. I don't know what all the code should do so debugging it is impossible. Over the last week or so I have tried 7 different "examples" (as reported by Android Studio "recent" list) and can't get any of them to run.
I did find an example that says it does something similar to what I want. It contains over 300 lines of code! Does that seem realistic?
I guess what I am asking is, can somebody point me in the right direction? Somewhere that I can see an explanation of what is needed and how to create it?
Sorry if this sounds like a rant but in many ways it is.
Things I have tried and that came close to working but don't:
BluetoothChat.
BluetoothhTutorial
SimpleBluetooth
and How to send/receive messages via bluetooth android studio
Thanks
Pete

How to create a tv tuner library for android?

I have a K1 Plus android box which have a built-in dvb-t2` and dvb-s2 tuner in it. I want to create an app that gets and shows the channels from those tuners.
At first, I found about android's TV Input Framework(TIF). The sample app keeps crashing by calling a method that gets the available inputs of the device. Then, found out that it only work for real Android TVs. I looked for android libraries for that android box but didn't find anything. I looked for c libraries that can access the tuners but didn't find anything as well. I looked for code on how to access the hardware components of an android device and didn't find anything. I recently found about https://opencv.org/. I haven't read everything about it yet so I don't really know how to use it.
I found about https://git.linuxtv.org/v4l-utils.git from an answer to a SO question but it seems like it can only be used after installing it to an OS. I was able to compile it using CMake on android but it got missing header files.
I also found http://android4tv.iwedia.com. Unfortunately, it's also using TIF.
I'm trying to create something like kodi but I found out that it isn't really the one that gets the channels but kodi is getting it from a supported iptv box. I have zero knowledge about writing C but I'll try to make the code.
This is the box btw. http://www.videostrong.com/S905D+DVB(KI%20PLUS)/55.html
From my research, I found about HAL(Hardware Abstraction Layer). Do I need that for making my C code?
Update:
After months of research and not finding any quick way to implement a tv tuner library, I returned to my bookmarks from previous research. One of them is this. The first step from that SO answer is do a ls /dev/dvb/ on the device. Because I need to do it on the android box itself, I researched about android terminal apps and found Termux. Then I did the ls /dev/dvb/ command on Termux and it told that the resource was not found or it did not exist. Then I tried to just do a ls /dev/ command and luckily I got results. There's quite a lot of them and I found something related to dvb.
The dvb related results were:
dvb0.demux0
dvb0.demux1
dvb0.demux2
dvb0.dsc0
dvb0.dsc1
dvb0.dvr0
dvb0.dvr1
dvb0.dvr2
dvb0.net0
dvb0.net1
dvb0.net2
I can post the whole list but I'll post this more related (I think) results.
The results are quite different than the example of the link above because they only used dvb and not dvb0.
UPDATE:
I might use a usb tv tuner now based on a suggestion to me.
UPDATE:
Is there a list of standard and tv tuner related usb byte[] commands that I can look at? I already saw some but they are mostly for FTDI, serial or the really standard commands which I don't have really have any use.
It will probably take a lot of reverse engineering or a leaked documentation to achieve what you are trying to do.
Devices like the one you are working on usually use proprietery hardware with proprietery drivers for things like DVB, so making a third party app for a TV tuner is very hard.
First, you need to find out what kind of DVB chip / card this Android box has.
Then, you need to figure out how (on what kind of BUS) it is connected to the system.
If it is something generic, you may be able to talk to its driver, if not, you would need to write your own driver.
This is too complicated to explain in a SO post, but you could start by opening the box and looking at the components or by running commands like lsusb through ADB to try and identify the DVB component.
If the device already has a DVB app, you could try disassembling it, to find out how it works.
Good luck!

ANT+ SDK - requestAccess faild (Other failure)

I'm trying to develop own Android application using ANT+ sensors.
My app is based on (developer's Sampler code and SDK).
However I found the strange thing during tests. I mean when I start to searching devices I immediately receive a message:
W/AntPluginPcc: BBD30600: RequestAccess failed: OTHER_FAILURE
At first I suppose that a reason of this problem is that I have a phone with Marshmallow OS (instead my wife's phone is based on Lollipop OS and all works fine). I tried to find anything in documentation related this but didn't find anything interesting. I add to Manifest some permissions (I mean com.dsi.ant.permission.ANT, android.permission.BLUETOOTH etc.) and set the permissions in code, but it doesn't help to me to solve my issue.
May be anybody received this problem and may be somebody solve it. Could you please share your solution to me?
P.S. I install the ANT+ Plugin services, ANT Radio Service. in App I use the ANT+ SDK from github. May be I should use also the ANT SDK? (I want to connect to HRM and cycle devices which use ANT+ protocol)
If you have the same problem as I you need to realize the AntRadioServiceConnection class.
I found it here.
And you should be sure that you have all services and plugins installed on your phone.

Best Way to develope android applications?

This is my first post here.i need to know which is the best way to do android application..
I have already working with unity3d for games.now i need to develope some applications in this platform.
i have tried with "ECLIPSE" with ADT plugin.Its taking too much of time to open and install applications in EMULATOR.i'm sitting more than two hours behind my system.still the emulator is not opening,thats why am getting worry about this and asking any other solution for this??
if you know means help me guys...
Thanks for advance.
The fastest way IMHO, it is developing on the real device. But anyway, emulator is needed to perform some checking in different environment (API level, screen density).

How to implement/debug a sensor driver in ANDROID

Does anyone know of a walk-through or any examples of any code to setup sensors in android.
I have the drivers available to me.
Also i have implemented the sensors library as instructed
in the Android-Reference along the sensors.h template.
I am still unable to get any response at the apps level.
How do i trace this issue? what might be the problem?
Thanks in advance
UPDATE:
Jorgesys's link below points to a great APP to test if the sensor drivers are functioning properly or not.
Now that i know they are not functioning, Any ideas of on where to dig??...
This is a cool example.
You can check out this project too!
Sensor Simulator
And the simulation of this project here.
Found everything needed to get started developing Android sensor apps.

Categories

Resources