[android-developers] Droid Vector Live Wallpaper HD

2012-09-12 Thread Joao Braga
Guys, here is my 1st app on Google Play. https://play.google.com/store/apps/details?id=vector.android.wallpaperfeature=search_result#?t=W251bGwsMSwxLDEsInZlY3Rvci5hbmRyb2lkLndhbGxwYXBlciJd It's a live wallpaper totally vectorial. I used in it part of a game engine I'm currently developing with my

Re: [android-developers] Re: How to send HD (High Definition) output from android Tab to HDtv

2012-03-16 Thread Joao Braga
Rikki did you do that? I had the same problem. I wanted my app to produce a different view when connected to the TV using HDMI connection. Just like the youtube app. When you hook up the phone/tablet in the TV using HDMI, the video is player fullscreen in the TV, but in the mobile device you

Re: [android-developers] Android Project

2011-09-30 Thread Joao Braga
Once you figure out what you want do to that you measure the time it will take to be done :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

Re: [android-developers] Re: trrying to switch between multiple activitiies

2011-09-30 Thread Joao Braga
Have you tried to build a singleton that carries the data for every activity - like a context holder ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Android Project

2011-09-29 Thread Joao Braga
The issue is not how to develop, but what for mostly everyone :p -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Paste your code here...just the line where you try to create the bitmap. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Try this: Bitmap bitmap; bitmap = BitmapFactory.decodeResource(res, R.drawable.image); bitmap = Bitmap.createScaledBitmap(bitmap, bitmap.getWidth(), bitmap.getHeight(), false); //if you want to make it scaleble -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
ops, I forgot the resources: Bitmap bitmap; bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.image); bitmap = Bitmap.createScaledBitmap(bitmap, bitmap.getWidth(), bitmap.getHeight(), false); //if you want to make it scaleble Note: If you are creating this bitmap from the class

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Can you get to your resource through R.drawable.image name ? You can get errors if you store pictures with invalid names for the resources (spaces, special chars, numbers etc). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Maybe, but I can't tell since I never used it. Did the code work for you? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
It's an architectural problem. What's your application about? What does it do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
I see, but it souldn't be a problem since the phones have enough memory to load a image like that. I'm just talking about the image, I don't know how the rest of your engine is managing the memory. But you said something about 200k sessions...how this sessions work? The clients connect to a

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
I see... Well I don't know the style of your game and how it was developed. I'm developing a game engine myself and for the memory issue, we are building a Memory Manager that knows exactly when to allocate, when to free and when to reuse an object of the game. The result of it is less load time

Re: [android-developers] Re: How do I get getResources() to work in another class?

2011-04-14 Thread Joao Braga
I'll post my example. I'm creating a Bitmap object based on a PNG files in my resources. private Resources res = getResources(); Bitmap bmp = BitmapFactory.decodeResource(res, R.drawable.image); 2011/4/14 Digeridoo eugene.ko...@bluescopesteel.com My apologies. I did mean Drawable disc1

Re: [android-developers] Re: 3d engine advices

2011-04-11 Thread Joao Braga
Hey u guys! I'm also developing 2d game for android devices. I'm using canvas and so far the performance seems okey. I'm also considering using vector graphics ( just like flash does ) instead of sprites. Have you ever tried that? Any considerations for that approach? Regards, John 2011/4/11

Re: [android-developers] Re: resizing the touch event generating area

2011-04-07 Thread Joao Braga
Why can't you put a method to be executed when the user touched or leaves the screen in order to get the X and Y and verify if it happend inside the area of interest for you ? if not, you just ignore it. public boolean onTouch(View v, MotionEvent event) { if (yourRectObject.verify