How to store score in Android gaming
<p>I have a small gaming application. For drawing the image and score I used one Java class which <code>extends</code> with <code>View</code> class:</p>

<pre><code> public class GameLayer extends View
 {
    // all of my code...working fine
 }
</code></pre>

<p>Now I want to save the score in Database but I'm unable to send the score into the Database.Anybody tel me how to send the value of score form simple java class which <code>extends</code> <code>View</code> to an <code>Activity</code> class where I called mydataBase.</p>

<p>I tried to use <code>putextra()</code>, <code>getExtra()</code> method but:</p>

<pre><code>Intent intent = new Intent(GameLayer.this,B.class);----this part is not working.
</code></pre>
