how to play a 8192*8192 image ?

by xhy » Fri, 25 Jun 2010 18:42:46 GMT


Sponsored Links
 Hi,all
I want to play a   8192*8192 image,but the system exists a "overflow of
memory" exception,what should i do ? Thank you!
-- 
xhy

--



how to play a 8192*8192 image ?

by youken » Fri, 25 Jun 2010 18:49:50 GMT


 Get a scaled copy and show it.

See the BitmapFactory.Options

 

  _____  

From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of xhy
Sent: Friday, June 25, 2010 7:42 PM
To: android-developers@googlegroups.com
Subject: [android-developers] how to play a 8192*8192 image ?

 

Hi,all
I want to play a   8192*8192 image,but the system exists a "overflow of memory" 
exception,what should i do ? Thank you!
-- 
xhy

--


Sponsored Links


how to play a 8192*8192 image ?

by Mark Murphy » Fri, 25 Jun 2010 18:53:32 GMT


 


That is a ~200MB image uncompressed (8192 x 8192 x 3 bytes), and you
have 16MB to work with.

The simplest option is to use a smaller image to start with.

The next-simplest option is to scale the image, as youken suggests,
though this will take some time.

The option that keeps your size is to split the image into tiles, like
Google Maps does, and show only a few tiles at a time.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
Available!

--



how to play a 8192*8192 image ?

by Mike dg » Fri, 25 Jun 2010 21:44:10 GMT


 I doubt you have an 8192x8192 screen. So figure out what you re
actually doing with the image and then only use as much as you need or
all of it scaled to screen size.






--



how to play a 8192*8192 image ?

by James Wang » Fri, 25 Jun 2010 22:31:38 GMT


how to play a 8192*8192 image ?

by xhy » Mon, 28 Jun 2010 00:06:30 GMT


 i want to  paly a 8192*8192 image int a big TV screen,as a result  such a
big image is needed.

2010/6/25 Mike dg <vinb...@gmail.com>




>



how to play a 8192*8192 image ?

by Streets Of Boston » Mon, 28 Jun 2010 01:25:35 GMT


 Wow, do you have a big screen TV capable of displaying 8192*8192 pixel
images!?
I doubt it :-)

If you have an HDTV of 1080p, then the max resolution is 1920*1080
(about 2MPixels). There's no need to go larger.






> >



how to play a 8192*8192 image ?

by Kostya Vasilyev » Mon, 28 Jun 2010 02:47:24 GMT


 27.06.2010 21:25, Streets Of Boston :
Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it:-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger.
Besides, the phone's real output resolution might be even smaller (to match the screen). -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --



how to play a 8192*8192 image ?

by xhy » Mon, 28 Jun 2010 08:02:54 GMT


 In fact  the clients demand it,so i have no idea.

2010/6/28 Kostya Vasilyev <kmans...@gmail.com>

>



how to play a 8192*8192 image ?

by Streets Of Boston » Mon, 28 Jun 2010 08:44:42 GMT


 Then you need to tell them it is impossible. Ask them what the maximum
resolution is of the output they desire. And i'm curious which output-
device your clients have in mind if it needs a 8192x8192 resolution.

Anyway, if it is an HDTV, more than 1920x1080 is not necessary. And if
you hook up the phone to an output-device using HDMI, more than 1080p
is not supported...

If it is an Android phone, more than 854x480 is not necessary.

They still can supply you with a 8192x8192 image, but for display you
need to scale it down to the display resolution
(BitmapFactory.Options.inSampleSize having a value greater than 1).



> >



how to play a 8192*8192 image ?

by xhy » Mon, 28 Jun 2010 20:01:58 GMT


 Thank you ! I will have a try!

2010/6/28 Streets Of Boston <flyingdutc...@gmail.com>


> > >



how to play a 8192*8192 image ?

by Daniel Baktiar » Wed, 30 Jun 2010 02:51:41 GMT


 big screen could means display that spans multiple tv, so in that case
that's not impossible.
from the 8192x8192 image, it goes to a splitter device that distribute to
the tv array.





> > >



Other Threads

1. Comma inputted when pressing period key?

I've had a few users report issues on the Motorola CLIQ and Samsung
Moment of when they press the period key on their hardware keyboard,
nothing happens on screen. This is somewhat expected, since I'm
restricting the input into the field to be a valid currency value. But
for some reason, their phones are sending a comma (,) when they press
the period (.) key. I've never seen this issue on my G1, and it seems
to work fine on all software keyboards. Here is my class I use to
restrict the input: http://pastebin.org/75509

I was wondering if anybody had heard of any problems like this, and if
so, what was the solution? I suppose I could remove the class to
restrict input, but it seems like it would still send a comma and
create an invalid number.

2. Android on netbook

It seems many netbook devices will be released in 2010 with Android as
main operating system. One of our customer is requesting to port our
existing multiplatform software to Android. This software is currently
running well on Windows, Mac OS and some Linux Distributions (Ubuntu,
Xandros, ...). UI is based on wxWidgets.

Currently, with Android 2.1 SDK we don't think it will be possible to
port the software, because SDK does not give access to low level linux
layers like X11, sockets, devices, ...

I think Android is a great OS for smartphones, but in its current
form, it is not well adapted for computers and netbooks and is very
restrictive for developpers.

Does anyone know if Google intends to release a specific SDK for
netbook allowing us to adapt our software in the same way as we have
done for others Linux distributions?

3. UI design for Board Game

4. problem with adb

5. drawing a texture on screen

6. problem with onListItemClick()

7. ADB and Eclipse Losing Contact with Emulator