[One (M7) Themes and Apps] bastianjoel:
LG QRemote SDK is out now..

Can anyone tell me why this isn't working on a IR compatible LG Device?

Other IR Apps working well with this SDK...

package com.nibdev.otrtav2.service.irinterfaces;

import android.content.Context;

import com.lge.hardware.IRBlaster.IRBlaster;
import com.lge.hardware.IRBlaster.IRBlasterCallback;
import com.nibdev.otrtav2.service.IrDataCompat;

public class LgInfrared extends IrFace {

private IRBlaster mIR;
IRBlasterCallback irBlasterCallback;

public LgInfrared(Context c) throws Exception{
irBlasterCallback = new IRBlasterCallback() {

@Override
public void newDeviceId(int arg0) { }

@Override
public void learnIRCompleted(int arg0) { }

@Override
public void IRBlasterReady() { }
};
this.mIR = IRBlaster.getIRBlaster(c, irBlasterCallback);
if (IRBlaster.isSdkSupported(c)) throw new Exception("No LG IR Device");
}

@Override
public boolean isRunning() {
return true;
}

@Override
public boolean canLearn() {
return false;
}

@Override
protected void ifSendCode(IrDataCompat data, boolean repeat) {
this.mIR.sendIRPattern(data.getFrequency(), data.getFrame());

}

@Override
public void cancelCode() { }

@Override
public void learnIRCmd(int timeout) { }

@Override
public void setOnCodeLearnedListener(OnCodeLearnedListener listener) { }

}

Added into IrFace.class

//LG
if (face == null){
try{
face = new LgInfrared(c);
}catch (Exception ex){}
}

Error:

09-28 21:07:10.092: E/AndroidRuntime(3705): FATAL EXCEPTION: main
09-28 21:07:10.092: E/AndroidRuntime(3705): Process: com.nibdev.otrtav2, PID: 3705
09-28 21:07:10.092: E/AndroidRuntime(3705): java.lang.NoClassDefFoundError: com.nibdev.otrtav2.service.irinterfaces.LgInfrared$1
09-28 21:07:10.092: E/AndroidRuntime(3705):	at com.nibdev.otrtav2.service.irinterfaces.LgInfrared.<init>(LgInfrared.java:15)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at com.nibdev.otrtav2.service.irinterfaces.IrFace.create(IrFace.java:71)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at com.nibdev.otrtav2.service.OTRTAService.onCreate(OTRTAService.java:112)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2584)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.app.ActivityThread.access$1800(ActivityThread.java:142)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1285)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.os.Handler.dispatchMessage(Handler.java:102)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.os.Looper.loop(Looper.java:136)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at android.app.ActivityThread.main(ActivityThread.java:5118)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at java.lang.reflect.Method.invokeNative(Native Method)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at java.lang.reflect.Method.invoke(Method.java:515)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
09-28 21:07:10.092: E/AndroidRuntime(3705):	at dalvik.system.NativeStart.main(Native Method)

SDK download:

developer.lge.com/MOBILE_HELP/index.jsp?topic=%2Flge.mobilesdk.LGQRemote.api%2Fhtml%2FGettingStarted%2FGettingStarted%2FDownloading+the+SDK+with+Android.htm

#Fixed

PN me for a LG compatible version