per prima cosa si deve modificare il layout di blogger introducendo le righe
<link href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"> </script>
Successivamente si deve modificare il tag body aggiungendo<body onload='prettyPrint()'>Il codice deve essere inserito tra due pre
<pre class="prettyprint"> ...import android.media.AudioRecord; import android.media.MediaRecorder.AudioSource; import android.media.AudioFormat; class recorderThread extends Thread { public boolean recording; //variable to start or stop recording public int frequency; //the public variable that contains the frequency value "heard", it is updated continually while the thread is running. public recorderThread () { </pre>
Nessun commento:
Posta un commento