Draw outside the onDraw() function

by Rahul Garg » Thu, 13 May 2010 19:36:30 GMT

Sponsored Links
 Hi ,
        I want to change the particular portion of my canvas by
clicking the menu button. but as onKeyDown() function is called after
the onDraw() function, I am unable to modify my canvas. what should i


Draw outside the onDraw() function

by TreKing » Thu, 13 May 2010 23:40:12 GMT


Can't you call invalidate or postInvalidate or something to trigger another
draw call?

TreKing - Chicago transit tracking app for Android-powered devices


Sponsored Links

Draw outside the onDraw() function

by Rahul Garg » Fri, 14 May 2010 10:54:11 GMT

 No that is also not working .....


Other Threads

1. Dev Phone and RC33 update

Can anyone please enlighten me on to why there is so little news
concerning the RC33 update for G1 dev phone owners?

I'd rather not do it manually as it sounds like you have to clear out
your phone.

Why aren't we getting an update? and why is there no news on the

Why did I pay $25 dollars for a developer account when we seem to not
only get no benefits, but there is ABSOLUTELY NO support for us from
the company?

Am I the only one frustrated about this?


2. openInputStream problem


I'm trying to read an image (taken on camera) that I need to POST to a
I'm using the following code:

        OutputStream os = urlConn.getOutputStream();

        ContentResolver cR = this.getContentResolver();
        InputStream is = cR.openInputStream(photoUri);
        BufferedInputStream buf = new BufferedInputStream(is);
        int readBytes = 0;

        while ((readBytes = buf.read()) != -1){


But when I debug, I find that readBytes never gets a -1 (i.e eof). Can
anyone tell what is wrong here?
Is there any other alternative to read photos taken by the phone
camera (get a stream or bytes) to be POSTed to services etc...



3. Playing a mp3 file istead of voice call

4. Wi-Fi On Hurts My Performance

5. How do I make my application to be restarted after the phone is powered-on again?

6. dx moaning

7. access android device on pc