Hi,
i have a problem with library. On this link
http://android.amberfog.com/?p=415 i found a solution, but i can't make library working.
I need this solution:
//
// start java code for change on b4a lib BroadcastReceiver (2.0):
//
public void onReceive(Context context, Intent intent)
{
action = intent.getAction();
if (Intent.ACTION_MEDIA_BUTTON.equals(action))
{
KeyEvent event = (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
ba.raiseEvent(this, (new StringBuilder(String.valueOf(eventName))).append("_onreceive").toString(), new Object[] {
action, event.getAction(), event.getKeyCode(), event.getRepeatCount(), event.getDownTime(), event.getEventTime()
});
}
else
{
ba.raiseEvent(this, (new StringBuilder(String.valueOf(eventName))).append("_onreceive").toString(), new Object[] {
action, intent, "", "", "", ""
});
}
}
//
// end java code
//
But i have no expirience with librarys.
Thks for litle help.