Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How can I use Infrared in j2me ؟

  Asked By: Emily    Date: Sep 06    Category: Java    Views: 936

I want to write a program that whenever I press a button on my
mobile,a file send with infrared.
please help me if anyone know.
من میخام
برنامه ای
بنویسم که
وقتی دکمه ای
روی موبایل
زده میشه یک
از Infrared ارسال
لطفآ منو



1 Answer Found

Answer #1    Answered By: Adanalie Garcia     Answered On: Sep 06

you need a service that is capable of handling transaction over the physical interface i.e. infra red

this is done similarly on bluetooth with obex

so whatever you choose to create HTTP / ftp session, your source phone should start a session and target has to listen for any connection established
then you can start transferring the file

in another word you need to use an application protocol to interface with lower physical interface which in this case is infra red

infra red by itself does not support such transaction

regarding the key press, there should be some easy way in commandlistener to hook for key press

whose phone are you hacking

Didn't find what you were looking for? Find more on How can I use Infrared in j2me ؟ Or get search suggestion and latest updates.