[android-developers] saving sharedPreferences collapse my app... for advanced dev I think

2010-06-21 Thread Kofa
I've done an game and it works right, the task it's compossed by a main activity (main menu) where you can load, start a new game, options, etc... when you are playing let's say you're in the activity B, you save the game and quit, so I save every data with sharedPreferences (a lot of data)

[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Kofa
I'm looking at this blog about Optimization, thanks patbenatar. The image it's 1920x1440 pixels, hope it helps. -- 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

[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Kofa
the image it's 1920x1440 pixels On 18 abr, 17:59, Streets Of Boston flyingdutc...@gmail.com wrote: How big, in pixels, is the image? On Apr 18, 5:50 am, Kofa elk...@gmail.com wrote: I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using

[android-developers] Re: memory problem with image... but strange...

2010-04-18 Thread Kofa
It wasn't solved, now it ask for less memory but still outOfMemory sometimes. I really don't know what to do if anyone knows how to solve it, please tell me!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] OutOfMemory problem

2010-04-18 Thread Kofa
I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to the VM it's less possible to happen. So...how can I prevent this? is there anyway that

[android-developers] memory problem with image... but strange...

2010-04-15 Thread Kofa
Hi, I have some headache with an error about the system going out of memory. When I run the game fo first time there's no problem, but when i quit - with finish();- and then start the app again, it gives me an error. The LogCat error says: VM won't let us allocate 5529600 bytes Caused by:

[android-developers] Re: memory problem with image... but strange...

2010-04-15 Thread Kofa
I forgot to say that the activity with the problem has an imageview that loads a PNG of 621Kb and a bunch of imageviews. -- 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

[android-developers] Re: memory problem with image... but strange...

2010-04-15 Thread Kofa
thx for your time Marc! but I already solve it =) I have seen a lot of people has this error or something like this, but no answer... and i was lucky... I just put the big image in the RAW directory... because the problem appears to be that when i start the app again, this big image was

[android-developers] Re: How to create graphical/advanced menus??

2010-03-24 Thread Kofa
 am, Kofa elk...@gmail.com wrote: wow...so...should I build a menu myself? there isn't another way to create something like the menu I need?? I just need some pictures with a description with them.. =P.. if it's not possible.. can I change the appearence?? like

[android-developers] Re: How to create graphical/advanced menus??

2010-03-22 Thread Kofa
wow...so...should I build a menu myself? there isn't another way to create something like the menu I need?? I just need some pictures with a description with them.. =P.. if it's not possible.. can I change the appearence?? like the background color and that stuff? -- You

[android-developers] How to create graphical/advanced menus??

2010-03-21 Thread Kofa
I searched in google but didn't find anything about graphical or advanced menus or contextmenu. I'm building a game and I need to make a contextmenu with the units to build. It should have an icon and a description of the unit, like HP, attack, defense, etc. I was trying to inflate the menu from

[android-developers] Re: load views in xml....oncode

2010-03-03 Thread Kofa
thx! i'm searching for it ;) On 2 mar, 23:44, social hub shubem...@gmail.com wrote: try layoutinflater.inflate or google for it. On Tue, Mar 2, 2010 at 4:34 PM, Kofa elk...@gmail.com wrote: Is there any way i can load a view from xml other than the main layout.xml? i mean i want

[android-developers] Re: ImageView can't be clicked... help!

2010-03-02 Thread Kofa
automatic the DialogInterface libraries... so i solved it adding them manually and whala... everything working! anyway thx arnouf!!! On 28 feb, 20:21, HeHe cnm...@gmail.com wrote: did you set it clickable? On Feb 28, 9:41 am, Kofa elk...@gmail.com wrote: I tried several times to make it work... i

[android-developers] really easy question... but not for me =P

2010-03-02 Thread Kofa
I'm trying to read a variable from one activity to another... i explain better: I'm making a video game, so the user will have to chose like a team, color, and other options from one activity and then should read this variables from another activity. so the question is... how can i declare

[android-developers] load views in xml....oncode

2010-03-02 Thread Kofa
Is there any way i can load a view from xml other than the main layout.xml? i mean i want to make an xml file for each type of view, so i can load them any time in the game and don't need to write every time on code that i want them to appear. greetings! -- You received this message because

[android-developers] ImageView can't be clicked... help!

2010-02-28 Thread Kofa
I tried several times to make it work... i tried searching on google but works for everyone but not for me Can anyone tell me how to make an image clickable?? i mean, I tried to use onClickListener and onClick but nothing seems to work onClickListener is always underlined and the error

[android-developers] Re: making videogame - newbie need help =P

2010-02-27 Thread Kofa
Thx Vlad, Robert, Jason, Martin!... I have upgraded everything to XML... but my game it's not real time, it's a turn based strategy =P... so for now it's ok with the ImageViews, Buttons and all of this stuff to start... I mean, i've never programmed on Java and it's my first project on android...

[android-developers] Re: making videogame - newbie need help =P

2010-02-24 Thread Kofa
First of all, sorry for the delay to reply...=P I have just read your message... i have started already and I have developed much I think =) I will tell you what I have, I will focus on the engine(GUI): a main menu with buttons, one with START GAME goes to another activity, there another

[android-developers] making videogame - newbie need help =P

2010-02-17 Thread Kofa
Hello, this is my first post, so sorry about the newbie thing lol. Well, the problem is the next: I'm making a videogame of strategy, it means i need an image (the background) that scrolls at the same time with the objects on the screen (countrys, like RISK, TEG, EUROPA UNIVERSALIS, .. but I