How to use Graphics.VCENTER|Graphics.HCENTER

by manohar » Wed, 24 Jun 2009 20:11:37 GMT


Sponsored Links
 Hi All

I am porting a game from J2ME to Android. In J2ME the code is as
follows
g.drawImage(image,x,y,Graphics.HCENTER | Graphics.VCENTER)

In android i have written has

g.drawBitmap(image, x, y, paintObject);

Here i do not have a ooption to specify the anchor position.  Can any
one pls tell me how to specifiy anchor position in andorid. By defult
in andorid it is taking as Graphics.LEFT | Graphics.TOP.

pls help
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Beginning Development

Hi guys, I always wanted to be apart of the Open-Source community and
I am...Sadly I havent contributed as much as id like.

So id like to start by developing apps for the Android Mobile OS.

What are the programming languages that need to be known to begin
developing apps? I went to school for VB6, so I have SOME programming
experience.
I did a bit of reading, and I saw that JAVA is used to create EVERY
app and I saw a couple occurrences of C/C++. Are there any OTHER
languages that need to be known?

And im Jamaican, so hey to all.

-- 

2. Getting all of a long string in DDMS?

Hi all,

I'm getting a server response back in ddms, here's my code:

                        InputStream responseStream = 
method.getResponseBodyAsStream();
                        responseString = convertStreamToString(responseStream); 
// standard
function for InputStream > String
                        int statusCode = method.getStatusCode();
                        method.releaseConnection();
                        Log.e("httpPost", "Response string: " + responseString 
+ ", code: "
+ statusCode);

But I'm finding that ddms logs only show about the first 50 lines of
the response, then cuts everything else off, which isn't very helpful,
since it means I can't see any of the useful info. I don't have much
control over the content of the response - it's a standard Django
debug page, i.e. quite long.

Does anyone know how I can get ddms to show the whole thing?

Thanks!

-- 

3. http POST message

4. SMS Persistent notification!

5. Application invisible in Market from Nexus One. Please test.

6. Search Bar

7. WCF and Android