[android-developers] supporting only resolutions = 320x480

2010-12-23 Thread Utumno
Hello Android gurus, My app only works in phones with screen resolution = 320x480. More precisely: it knows how to render itself correctly on any resolution where the longer side is=480 and the shorter side is =320, no system prescaling is needed, but anything less than 320x480 is simply too

[android-developers] Re: supporting only resolutions = 320x480

2010-12-23 Thread Utumno
Because I don't scale my graphics , and I don't let the system do it either :) My reason: actually I could make the UI work in 240x400 and 240x432, the problem is with game area. The app is a game where infinitely many levels are created pseudo- randomly. The bigger resolution, the more

[android-developers] Re: supporting only resolutions = 320x480

2010-12-23 Thread Utumno
. On Thu, Dec 23, 2010 at 6:37 PM, Utumno lkoltun...@gmail.com wrote: Because I don't scale my graphics , and I don't let the system do it either :) My reason: actually I could make the UI work in 240x400 and 240x432, the problem is with game area. The app is a game where infinitely many

[android-developers] Re: determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Utumno
onSizeChanged()? Sorry, there is nothing earlier, that is the point where this has been figured out. On Tue, Dec 21, 2010 at 11:59 PM, Utumno lkoltun...@gmail.com wrote: Hello Android gurus, I am aware that when screen dimensions change, I get a call to onScreenChanged() and there I can

[android-developers] Re: determine dimensiona of the screen in View's constructor?

2010-12-22 Thread Utumno
another. If that's what you need, you can use DisplayMetrics: http://developer.android.com/reference/android/util/DisplayMetrics.html Check out widthPixels and heightPixels, which give screen size. -- Kostya 22.12.2010 12:18, Utumno пишет: Yes, I mean onSizeChanged(). Hmm, no way? Even

[android-developers] determine dimensiona of the screen in View's constructor?

2010-12-21 Thread Utumno
Hello Android gurus, I am aware that when screen dimensions change, I get a call to onScreenChanged() and there I can figure out its dimensions, however it would be much more convenient if I could figure this out earlier, namely in my View's constructor. Any tips? -- You received this message

[android-developers] Re: Building several versions of an app from the same source

2010-12-20 Thread Utumno
No, 99.44% of the code would be in the library. You need to implement value of one constant in the code in each APK project, plus your manifest to pick up your distinct packages. Ok done. It was a bit of work to split my code, create new repositories, etc etc, but it feels like a clean,

[android-developers] Building several versions of an app from the same source

2010-12-19 Thread Utumno
Hello Android gurus, I would like to build 2 versions ( free and paid ) of my app from the same source. Both should be installable at the same time. Here's (hopefully) the full list of differences between the two: - android:icon - android:label - value of one constant in the code - and since

[android-developers] Re: Building several versions of an app from the same source

2010-12-19 Thread Utumno
your changes. On Sun, Dec 19, 2010 at 7:16 AM, Utumno lkoltun...@gmail.com wrote: Hello Android gurus, I would like to build 2 versions ( free and paid ) of my app from the same source. Both should be installable at the same time. Here's (hopefully) the full list of differences

[android-developers] start a new activity and then... come back to the old one!

2010-12-18 Thread Utumno
Hello Android gurus, I would like to do the following: in my app's 'Help' area, have a button that launches the default email application and lets users drop me an email. That seems simple huh? Let's just create a new Activity ( code shamelessly stolen from

[android-developers] Re: start a new activity and then... come back to the old one!

2010-12-18 Thread Utumno
=orientation android:clearTaskOnLaunch=true android:finishOnTaskLaunch=true android:noHistory=true On Dec 19, 5:35 am, TreKing treking...@gmail.com wrote: On Sat, Dec 18, 2010 at 3:04 PM, Utumno lkoltun...@gmail.com wrote: 1) when user exits the mail