[android-developers] Draw background image for multiple resolution screen

2013-10-01 Thread limtc
Hi, I have a game that I wish to support all resolutions. And it bogged me down to support multiple resolutions with different screen ratios, so I am reading up (including in this forum and the official Android docs:

[android-developers] Re: Draw background image for multiple resolution screen

2013-10-01 Thread limtc
I am replying to my own mail, hopefully can get some suggestions. I found that using small/normal/large/xlarge - everything are in dp, so the questions is what image resolutions to support. I uses the following to calculate: normal (HTC One) - 1920x1080 (468ppi) - 656x369 normal (Nexus 4) -

[android-developers] Re: Get the camera preview frame rate

2013-10-01 Thread Piren
http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getPreviewFpsRange(int[]) On Monday, September 30, 2013 9:19:41 PM UTC+3, TimeManx wrote: I'm having a very hard time figuring this out. I'm using a SurfaceView to display the camera preview using

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-01 Thread Piren
it's actually a wee bit more complex (and by complex i mean - still in the realm of a developer that started android development 3 days ago), if you want a proper red background for the number... but this question is so basic he should try to figure it out on his own. On Tuesday, October 1,

[android-developers] Re: editTextBackground

2013-10-01 Thread Piren
yeah, you need to follow the styles.xml and drawables defined by the android platform. eventually they will lead to files named editbox_background_state.9.png ... you can find all of these in your SDK (platforms/android-int/data/res/drawable-dp/ On Tuesday, October 1, 2013 2:44:49 AM UTC+3,

[android-developers] Re: Get the camera preview frame rate

2013-10-01 Thread TimeManx
I need the fps that I'm getting at the moment. I don't need the range. On Tuesday, 1 October 2013 14:33:44 UTC+5:30, Piren wrote: http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getPreviewFpsRange(int[]) On Monday, September 30, 2013 9:19:41 PM UTC+3, TimeManx

[android-developers] Re: rrule not working

2013-10-01 Thread drjunior
Problem found: https://code.google.com/p/android/issues/detail?id=60589 It was really difficult to find the bug, but I've found it... On Wednesday, 18 September 2013 16:42:12 UTC+1, drjunior wrote: In order to test and debug just this piece of code I've created another app only with that part

[android-developers] Re: Calendar API has an awkward behaviour

2013-10-01 Thread drjunior
Problem found: https://code.google.com/p/android/issues/detail?id=60589 It was really difficult to find the bug, but I've found it... On Wednesday, 25 September 2013 11:07:44 UTC+1, drjunior wrote: I have this piece of code that creates events with repetition (RRULE) in the main user's

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-01 Thread Amit Mangal
what are you saying i am unable to understand ? can you please explain ? thanks On Tue, Oct 1, 2013 at 2:36 PM, Piren gpi...@gmail.com wrote: it's actually a wee bit more complex (and by complex i mean - still in the realm of a developer that started android development 3 days ago), if you

[android-developers] LocationManager.requestLocationUpdates and PendingIntent

2013-10-01 Thread Alex Belyaev
Hello guys! I have a quick theoretical question: why * LocationManager.requestLocationUpdates* method needs* PendingIntent *instead of an action? Just for having a possibility to send location updates to the specified *UserHandle *or any other reasons? Thank you in advance. -- You received

[android-developers] Re: Get the camera preview frame rate

2013-10-01 Thread Alex Belyaev
So try to measure it by yourself in Camera.onPreviewFrame вторник, 1 октября 2013 г., 21:07:56 UTC+3 пользователь TimeManx написал: I need the fps that I'm getting at the moment. I don't need the range. On Tuesday, 1 October 2013 14:33:44 UTC+5:30, Piren wrote:

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-01 Thread TreKing
On Tue, Oct 1, 2013 at 1:45 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i am unable to understand ? What don't you understand? Did you look up what I told you? - TreKing

Re: [android-developers] how to create button with one image background and one image inside and text

2013-10-01 Thread Amit Mangal
I didnt understand i m talking about button and ur talking about textview here is the confusion On 02-Oct-2013 9:20 AM, TreKing treking...@gmail.com wrote: On Tue, Oct 1, 2013 at 1:45 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i am unable to understand ? What don't you understand?