Samsung Infrared

Charlie_M

Member
Licensed User
Longtime User
Hi everyone,

I just got a Samsung GalaxyS4 and I was wondering if B4A supports or if there are classes or libs for the infrared sensor and such? Thanks
 

ivan.tellez

Active Member
Licensed User
Longtime User
Free app from Samsung

Found this -
IR Remote for Galaxy S4
AND very good one with support both tablets and phones but expensive -
Samsung Remote PRO-TouchSquid


Also interesting project but doesn't use internal IR (3.5 external IR) -
Irdroid™
There is source code



Hi, thats true, there is some apps on the market, but those are just for those who dont read the manuals.

Actualy samsung provides a very complete universal remote for this devices at an incredibly low price; FREE.

Samsung WatchON


And, about the irdroid, i think that the only thing interesting to port is the ability to parse lirc files to be ported to the Samsungs IR protocol and be used wit the new lib.

Lirc howtos | Irdroid™
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
If the .NET framework is not installed, will B4A install it?
Sorry for wrong placement of question.

I'm sure that you couldn't install B4A,I have ever installed on linux mint already. see this.
 
Last edited:
Upvote 0

drachmad

Member
Licensed User
Longtime User
Hi Erel,

Don't you think it is better to change the title into something like "B4a Support for IR (infra red)" before it is filled with non related post?
 
Upvote 0

Charlie_M

Member
Licensed User
Longtime User
Hi drachmad I started the thread and it seems to have been hijacked. I dont think
Erel has a right to go changing thread titles because of other people not wanting to stay on to stay on topic.
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Well i shall be adding the IrdaManager library to the libraries forum and removing it from this thread.

(Libraries should only really be in the libraries forum so non-members can't download them).

I'll be doing that later when i have more time.

Martin.
 
Upvote 0

caspali

Member
Licensed User
Longtime User
samsun s4 crash

i had build an app that run without problem on other phone but on galaxy s4 crash:

** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
Response from server: {"evento":[{"id":"76","nevento":"49","tipoevento":"rapina","indirizzo":"via gioberti","cicvico":"","citta":"Foggia","gravita":"basso","attivo":"si","comodo":""}]}
** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
servizio_host_responsesuccess (B4A line: 56)
Receive = Response.GetString("UTF8")
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1118)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:120)
at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:211)
at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:155)
at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:175)
at org.apache.http.impl.io.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:289)
at org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:262)
at org.apache.http.conn.BasicManagedEntity.streamClosed(BasicManagedEntity.java:179)
at org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:266)
at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:213)
at java.io.InputStreamReader.close(InputStreamReader.java:145)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:139)
at anywheresoftware.b4a.http.HttpClientWrapper$HttpResponeWrapper.GetString(HttpClientWrapper.java:453)
at sis.cascioli.servizio._host_responsesuccess(servizio.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA$3.run(BA.java:307)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)


can help me
 
Upvote 0

caspali

Member
Licensed User
Longtime User
Qualcuno mi sa dire se per galaxy s3 s4 c'è bisogno di qualche aggiornento affinché le app create con b4a funzionino? Poiché ho un crash quando utilizzo response.getstring
 
Upvote 0

caspali

Member
Licensed User
Longtime User
Why my app function with other phone and with S4 crash on respone.getstring? Need i of any upgrade of b4a for solve problem? I have last relaese
 
Upvote 0

Gary Miyakawa

Active Member
Licensed User
Longtime User
FYI guys, the HTC One also has an IR transmitter (and Receiver).... You might want to see if we can get something to work with it too...

BTW, this library works great for my application but I did have to tweak the "Frequency" to match the device I was talking to...

Cheers,

Gary M
 
Upvote 0
G

GCOINC

Guest
Will the samsung (IrdaManager Lib) only control samsung brands? Or is that based on the output 'frequency' ?
-I'm aware using Samsung Devices to control is required... however, for example can I control a Toshiba TV perhaps with my SGS?
Trying to keep this thread related to samsung :p

Glad we are getting into the IR here on B4A - thanks to Martin for stepping up.

///EDIT/// ::: In the library documentation it mentions... 'exclusively for use with Samsung devices...' ---
 
Last edited by a moderator:
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Just an FYI

I have a Phillips ProntoPro and was able to using their ProntoEdit and copy the Learned IR codes that are stored in the CCF files and paste them into the above b4a example and control almost everything my ProntoPro could.

I used the B4A example on my Samsung Galaxy Tab-3 7"

RemoteCentral.com contains a lot of ProntoPro CCF files containing all the learned IR codes.

BobVal
 
Upvote 0
Top