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. How to write String to database

Hi, I had created a database and I am writing some values ino that
database as.

sampleDB.execSQL("INSERT INTO " +
                                SAMPLE_TABLE_NAME +
                                " Values ('s','m');");

Then here the values are added as s and m respectively.It is fine. But
now I don't want to use hard coded value like's' and 'm'. Now I have 2
String as.
String nm = "Pramod";
String add = "deore";

Now I want to add these 2 String to database. When I write code as
sampleDB.execSQL("INSERT INTO " +
                                SAMPLE_TABLE_NAME +
                                " Values (nm,add');");

Then I got error as -
10-18 15:15:14.464: ERROR/Database(21408): Failure 1 (no such column:
s) on 0x2fb288 when preparing 'INSERT INTO App Values (s,m);'.
10-18 15:15:14.473: ERROR/ShowSwitches(21408): Could not create or
Open the database.

How to add String to database?
Thanks

-- 

2. Installation Location

Hi
i as i know we can change the installing location With android SDK ,
using USB cable
But i wanna know is it possible to change the installing location
Programmatically? is it yes how??

Thank you

-- 

3. Android App Developers

4. Flint only part of the view

5. Need I-phone app converted into an Android app.

6. setting background of an imagebutton to transparent

7. prelink-linux-arm library sizes