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

2010-12-23 Thread Utumno
ise, > it's just a matter of generating a new bitmap with the scaled image and > throwing away the original. > > > > On Thu, Dec 23, 2010 at 6:37 PM, Utumno wrote: > > > Because I don't scale my graphics , and I don't let the system do it > > either :

[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 complicat

[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 sm

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

2010-12-22 Thread Utumno
r. > > 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 пишет: > > &g

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

2010-12-22 Thread Utumno
mean 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 wrote: > > Hello Android gurus, > > > I am aware that when screen dimensions change, I get a call t

[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 b

[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, ma

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

2010-12-19 Thread Utumno
a shell script/Java program/Ruby program/whatever > to clone the project and apply your changes. > > > > On Sun, Dec 19, 2010 at 7:16 AM, Utumno wrote: > > Hello Android gurus, > > > I would like to build 2 versions ( free and paid ) of my app from the >

[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 bot

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

2010-12-18 Thread Utumno
here are the flags to my main activity: On Dec 19, 5:35 am, TreKing wrote: > On Sat, Dec 18, 2010 at 3:04 PM, Utumno wrote: > > 1) when user exits the mail application ( either by actually sending > > the email or simply by pressing the 'BACK' button ) then he gets

[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 http://www.androidsnippets.org/snippet