Android : Internal Autoscaling Feature Only For Large Screens?
Sep 4, 2010
I am developing a game with canvas. I want use the Android internal
autoscaling feature (anydensity=false;) only for large density
screens. Is it possible to enable this graphics (in the drawable
folder) scaling function only for large screens. For smallscreens my
Game Engine does automatically manage the presentation.
I attempted the following in the manifest.xml:
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="false"
android:anyDensity="false" />
but it doesnt work, Android does also downscale the graphics for smallScreens.
View 1 Replies
Sep 14, 2010
I've been studying the screen support of Android and yes, while it is flexible, I still don't see how you can support a "really large" screen like the Samsung tablet is going to have. I think no matter what you end up with lots of wasted real estate. The problem is the Android doesn't automatically "scale up" your application if you run in compatibility mode - rather, it fits it into a postage stamp instead. Because of this, how can you really make an app that will "never" have some postage stamping at all, unless you use all 9patch drawables and Absolute Layouts? (Well, you could draw the GUI yourself, which is what my Reloop Sequencer does). As an example, my drum machine app, Electrum Drum, has a certain layout for the buttons and pads. Now, on a larger screen, it would be nice to just make all the buttons and pads bigger. I need the same layout relationships between all the elements though. Basically I just want a "scaled" up version of the UI. Maybe I can achieve this with 9patch drawables and relative layouts? The issue is I could certainly make "large" graphical elements (if not use a 9patch drawable) but there is no way for something, for example, to know that hey, I have LOTS of space I can use.
Let's say for example, that you want a completely different layout on a tablet - say you want more buttons, etc, on your layout now. You can't do it because there is no way for the android app to "know" that this "large" screen is actually larger than "large". A Droid X probably reports itself as large, although the screen is only 4.x inches or so, where you would not have room for those extra buttons. This is no where near as large as 7" or 10", even at a pixel density of 170 or 240. I think the default behavior would have been better to scale up images in compatibility mode, and if the dev could provide higher res images then it would use them of course (put them in the large high dpi folders), but I don't see how a layout itself can scale correctly in really large cases like a tablet. We need some better explanation of how to handle these cases. I still don't understand how a normal app is going to be enabled to scale up easily. It would have been easy if Android would have just "magnified" the view, but it doesn't.
View 11 Replies
View Related
Jun 30, 2010
I really liked the expose-like (Mac's expose) feature on the HTC Evo where if you pinch out it will show a spread of all your home screens as little thumbnails--like mac's expose feature. Will this be available on the Droid X?
View 7 Replies
View Related
Feb 11, 2010
there is no internal phone search! This seems really strange to me for a phone that has the Google branding. So they?re just for the internet and nothing else!? As a long-time Palm user, this was something that I used very regulary and I was surprised to find this feature missing ? it seems like it should be standard. Every computer/laptop has it in the form of either the Finder or Start/Search and a lot phones have it too. Anybody heard anything adding this one or anthing else relating to it? Or can you do this after you root?
View 3 Replies
View Related
Jul 19, 2010
I have the Swype beta for android installed on my phone and I am only having one problem - double tapping in the word window. I know if you misspell a word you should be able to double tap it in the window after the fact and it should bring up the word choice window for you to choose. However, with Swype on my Evo, all it does it highlight the word and I cannot change the word.
My other question is about internal memory. My phone has been dropping MB of internal storage like a bad habit. I went from 400 to 320 in a matter of a few days and have not installed or saved anything outside of my sd card. Why is this happening? and what happens if that memory reaches 200 - 100 or even 0?
View 5 Replies
View Related
Oct 23, 2009
I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment.
View 4 Replies
View Related
Jul 27, 2010
I had a little time with the captivate today and noticed it has 4(i think) horizontal scrolling screens for apps. What happens when you fill those? Does it automatically add another one or what?
View 2 Replies
View Related
Jan 5, 2014
I have a xperia u, which has not external SD card slot..
Data partition is MUCH bigger than what I need (I'm using 500mb of 2gb) and I want to move obb files to data partition to free some space in SD partition..
View 9 Replies
View Related
Jun 22, 2009
I am reading the following URL to test a RSS parser. http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xm
When using the same code on a Android HTC phone the whole resource cannot be read. There are no exceptions being thrown. I am guessing the rss.xml is too large to be read in? I use a sax parser after the block of code which complains. Code...
View 4 Replies
View Related
Mar 11, 2009
Is it possible to stream a very large mp3 using MediaPlayer? The mp3 I am interested in is over 270 mb.
View 3 Replies
View Related
Sep 14, 2009
I'm writing a game for a computer class that I'm currently taking for school. The game has a lot of graphics associated with it (mostly in .png format). There is too much data to simply include it as part of the 'res'. The way i'm currently doing it, is to store all of the graphics in a single zip file, in a folder on the SDCard, e.g., / sdcard/Game/PlayerImages.zip (or whatever). And then i'm using the ZipInputStream to read from those, then using the BitmapFactory to decode the stream and then draw them on the canvas. The problem that I'm having is that this method is terribly slow if I add a lot of images into the zip file. The best way I have found thus far is to name the .png files within the zip numerically, then use a for-loop to jump directly to a specific file, but this is still a very slow way of doing it. I would like to use a single file (like zip) to hold all of the files for several reasons. 1., i'm trying to use a file container so i can simply update graphic 4.png and then push it into the zip file (for example) from a server. 2., because android sees all image files on the sdcard when you open the gallery application. 3., easier to prevent data manipulation by doing an md5/sha-1 checksum on 1 zip file, rather than every time a file is opened if it weren't in a container.
View 6 Replies
View Related
Apr 5, 2010
In android, to support all the screen resolution, i have created the layout, layout-small, layout-large folder in res folder, and i have .xml file in all the folder. I can get the output in normal screen and small screen resolution, but in large screen emulator i am getting the xml file in normal folder.it is not reading the xml file in large screen emulator. i am using Android 1.6
View 3 Replies
View Related
Aug 17, 2010
When I test my app, I notice that after some use it has built up a fairly large cache of several Mb. I see this when I go to Menu-
View 9 Replies
View Related
Jun 17, 2010
I cannot render a large triangle on android,what I can see is a rectangle,just like the triangle drops a corner This is my vertex array: [-8240, -3540, 10120, -8240, -3540, -3800, -8240, 10582, 10120] and this is my code: gl.glVertexPointer(va.getComponentCount(), gl.GL_SHORT, 6, vertices); gl.glDrawArrays gl.GL_TRIANGLES, 0, 3);
View 2 Replies
View Related
Aug 14, 2009
Is it a problem that i put 17 Mb database to /data/data or should i put it to /sdcard?
View 2 Replies
View Related
May 24, 2009
I must have searched high and low for the answer to my problem.I've even spent around $100 on books hoping that one of them would cover it alas it was not the case.I have approximately 50000 records in a database table. All I want to do is display them in a list-view so you can scroll through them.I dare say I will need to lazily load them as you scroll through the list - my question is how and can it be done through a content provider? I noticed the SlowAdapter in the APIDemos that appears to do exactly the kind of thing that I am looking for, but Im unsure of the correct method for requerying the content provider with the new limit criteria (or at all via a ContentProvider). Do I need to create a new cursor and merge it with the previous one as I scroll down?
View 13 Replies
View Related
May 1, 2009
Suppose I have the URL for large animated gif and I wanted to make a youtube like activity that displays the animation in a streaming way. How do I
stream in the image?
get it do display with actual animation?
I know ImageView is not the answer as it only shows the first frame.
A bonus would be having access to its buffering status so I can synchronize streaming sound as well -- this is part of a YTMND viewer application. While I could create a service that transcodes the public gif files into a nicer format, I'd like the app to function without additional dependencies.
View 3 Replies
View Related
Jul 17, 2009
This is with reference to http://groups.google.com/group/android-developers/browse_thread/threa....
Large gif images of size more than 4MB can not displayed in android.
Is this is a known issue in android?
View 4 Replies
View Related
Jan 7, 2010
Can anyone suggest a widget or something so that i can have a large clock on my home screen? I downloaded a digital widget but its not large enough. I want the time to be BIG on my home screen.
View 11 Replies
View Related
Jul 20, 2010
I am looking for an application that can handle large PDF files smoothly. I have tried adobe reader, pdf viewer and RepliGo. They were not very impressive, therefore I have come here for suggestions. Repligo reader I think was better out of the three but I couldn't view a PDF file that had scanned images on it. Was hoping someone could recommend an app that could handle large PDFs and PDFs that contained scanned images.
View 2 Replies
View Related
Sep 29, 2010
Apparently you can't have a file in "assets" larger than 1MB (except for certain file types) because it's considered too large to uncompress. But I'm finding mixed info about how to circumvent this limitation. Some say that you can put the files in "raw" and avoid the limitation but others say that files in "raw" are compressed too.And there's the -0 aapt option that can be used to turn off compression for certain file types, but there's no way to specify aapt options in Carbide. I realize that I can break the file into pieces, but that's error- prone on both ends.And using one of the known uncompressed file types not only confuses things but also runs the risk that the Android PTB will decide to start compressing that file type.
View 6 Replies
View Related
Sep 17, 2009
I am trying to implement the functionality to resume a large file download, but have not found how to start downloading from a position that is not at the beginning of an InputStream.I am currently using the InputStream.skip() method to go to the position where I want to resume the download, but have found that this method actually reads all the data over the network and then throws it away.I would appreciate some help in learning the correct way to start reading from the resume offset of the internet file being downloaded, so that I can avoid wasting the phone network bandwidth, and also avoid the extra time delay caused by re-downloading all the data that was already previously downloaded.
View 2 Replies
View Related
Nov 4, 2010
I am developing for the Android. When I create icons in Photoshop (and convert them to PNG), they appear larger and stretched within my Android application. The emulator that I am using is medium density. Does anyone have some tips for how I can create my icons in Photoshop so that they appear normally on the Android?
View 2 Replies
View Related
Jul 30, 2010
I want to upload files on a web server in my android app.Currently i am able to upload files around 5mb from the device but more than this gives a outofmemory exception and also makes app very unstable.i am looking for a method using which we can upload the data in the app background plus of bigger size.
View 4 Replies
View Related
Mar 16, 2010
I need to send files as large as 80 MB, but usually in the 15-25 MB several times every day. I use YouSendit, Megaupload and the like on my laptop. Would be a HUGE help if I could simultaneously upload from my Android phone. It has to be able to handle a folder. Basically, a folder full of pictures.
View 1 Replies
View Related
May 13, 2010
I am having layout which I want to render on to different sizes of mobile (like WVGA854). Resource structure is like
reslayoutmain.xml
reslayout-largemain.xml
By default it is taking layout main.xml file itself of layout. Its not pointing to layout-largemain.xml. its throwing exception:Activity can not start resource not found. So can any one guide me how can I acheive this and how to support mutiple screens with different layouts like large,small and default along with images specified in respective dip folders.
View 1 Replies
View Related
Dec 10, 2009
My application needs to intensively manipulate (read-write) on some structured text data.The size of the data is significant 1Mb. And there is initial data available for the user to start with.My idea is to put this data as a file in the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database. But after the database is populated the data file is no longer needed. And I'd like to remove it to free some memory. Alternate approach is to work with this data file instead of SQLite database. But I assume SQLite would work a magnitude faster then i/o on my data file..
View 16 Replies
View Related
Apr 14, 2010
I'm trying to download large file from Internet (>20Mb)
View 1 Replies
View Related
Jan 21, 2009
My application may consist og 100Kb code and 800 Kb Database content. If I include a datafile with the 800Kb data and import it into an SQLite database under the initial run of the applcation, I cannot delete the data file afterwards and my application will take up 800 Kb unnecessarily. Is there a better way to include/import my data....? (I want my application to not depend on being online after download - so the data should be downloaded with the application.
View 14 Replies
View Related
Sep 23, 2009
I am not sure, if this is the correct platform to talk about it, however I would like to know something about 'How Android supports the large screen display'. I mean here that suppose I want to port the Android SDK to a large portable device having a large display as compared to HTC G1 mobile screen, what all the OS modules (e.g surface manager, kernel: display driver etc) I need to look upon/modify.I guess what I am asking here is not a new subject as I can already see by below links that the Android OS is ported for large screen devices.
1. http://www.icpdas-usa.com/vp_23a1.html Specifications & Additional Information Models VP-23A1 VP-25A1 System Software OS Android 1.5 SDK Provided Standard ViewPAC SDK for Windows and Linux by GNU C language CPU Module CPU PXA270 or compatible (32-bit and 520 MHz) SRAM 128 MB
2. ARCHOS 5 Internet tablet shown on http://www.marketwatch.com/story/archos-brings-the-android platform-t... and on http://www.archos.com/products/imt/index.html?country=in〈=en as.
Let me know your opinion about it, any kind of clue will be appreciated.
View 2 Replies
View Related