<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/8/6 Felipe Monteiro de Carvalho <span dir="ltr"><<a href="mailto:felipemonteiro.carvalho@gmail.com" target="_blank">felipemonteiro.carvalho@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Tue, Aug 6, 2013 at 12:38 PM, Kjow <<a href="mailto:antispammoni@gmail.com">antispammoni@gmail.com</a>> wrote:<br>
> I would use android sensors (vibration, accelerometer, etc) without LCLBase,<br>
> is it possible?.<br>
<br>
</div>No. But you can just copy the code from the android implementation of<br>
lazdeviceapis to your project and adapt it.<br></blockquote></div><br>Hi Felipe,<br><br>can you help me to make it working? I made this unit (in attachment) that compiles and works until I call something (e.g. device.vibrate(100) ).<br>
<br><br></div><div class="gmail_extra">In MyProjectActivity.java I added, after "onCreate":<br><br>public native int LCLOnSensorChanged(int ASensorKind, double[] AValues);<br><br></div><div class="gmail_extra">and then almost all "SensorEventListener overrides"<br>
<br> @Override public void onSensorChanged(SensorEvent event)<br><br>...<br>...<br>...<br> // for LazDeviceAPIs<br> public String lcldestination;<br> public int lclkind;<br><br></div><div class="gmail_extra">I can't find/understand where are used LCLOnSensorChanged, lcldestination, etc in andriodlcl demo.<br>
<br></div><div class="gmail_extra">Of course, in AndroidManifest.xml I have:<br><br> <uses-permission android:name="android.permission.VIBRATE" /><br> <uses-permission android:name="android.permission.SEND_SMS" /><br>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /><br> <uses-permission android:name="android.permission.INTERNET" /><br> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><br>
<br><br></div><div class="gmail_extra">I'm hoping my explanation is clear enough.<br><br></div><div class="gmail_extra">Thank you,<br>Kjow<br></div></div>