Tagged Questions
0
votes
1answer
43 views
android sizes, real concern. What folder to use?
I've read alot about scaling in android and there are alot of different opinions. But I feel this is really important to understand so maybe someone could explain.
For instance, Im making a game ...
0
votes
1answer
23 views
AVD resolution different than expected
I have some AVDs representinting slightly different resolutions (480x854) and (480x800).
When I use methods to get Canvas' size (getWidth()/getHeight()) they report correctly that it's accordingly ...
1
vote
1answer
29 views
Multiple drawables background images to fit the screen resolutions
Alright, so I have an image that it's resolution is: 1054X1054.
I want to set that image so it fits exactly the screen size of the android devices. (I'll cut the image in some editor as nessacary).
...
0
votes
4answers
63 views
Supporting android resolution screens: Understanding
I didn't really understand the DP measure, even though I've read about it 2 times.
Let's say I have an image it's resolution is: 400 X 400 PX.
And I want to put it as background image to my app.
...
0
votes
0answers
75 views
OpenCV Error reading YUV buffer
I'm trying to get high resolution uncompressed images through the camera of an Android phone (Samsung Galaxy S3), using OpenCV v2.4. I set width and height using ...
5
votes
2answers
111 views
How to set camera resolution in Android with OpenCV?
I'm trying to develop an app for Android, and I would need to get uncompressed pictures with a resolution as high as possible from the camera. I tried takePicture's rawCallback and postviewCallback, ...
1
vote
2answers
85 views
Android:Issue Image resolution
Problem occurs while using high resolution image in device.
imageview a;
InputStream ims = getAssets().open("sam.png");//sam.png=520*1400 device=320*480 or 480*800
Drawable ...
0
votes
1answer
27 views
Android: Requesting external images based on DPI
When you've got bundled graphical assets you place them in drawable-hdpi, drawable-xhdpi etc. so the right image is loaded based on the device's DPI.
What's the norm when dealing with external images ...
0
votes
2answers
90 views
HTC Sensation Real Resolution
I have two approaches to get real resolution:
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
device_value[index++] = dm.widthPixels + ...
3
votes
1answer
79 views
android xdpi folders, what size for my image?
I've been reading the following: http://developer.android.com/guide/practices/screens_support.html
It's about the folders res-long-land-hdpi, res-notlong-land-dpi, res-notlong-port-ldpi etc. And what ...
1
vote
0answers
20 views
Android blank bitmap
I'm creating bitmaps using inSampleSize. I've come across an unusual problem. On some images the rescaled image is blank.
Example 1:
Original: 4288x2848
inSampleSize = 2;
Rescale: 2144x1424
...
0
votes
1answer
51 views
Android Bitmap Custom View on High Resolution Screens having poor performance
I am making a custom list view item. Extending View and overriding the onDraw method.
private Bitmap bmpScaledBackground; //with size:(screenWidth , screenHeight/4)
@Override
public void ...
4
votes
4answers
537 views
How mdpi, hdpi, xhdpi folder works?
Extract from Android Developer Guide link above:
320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).
480dp: a tweener tablet like the Streak (480x800 mdpi).
600dp: a ...
0
votes
2answers
67 views
is canvas in android proportional on different devices
I am trying to make an app using canvas and a surfaceview, and I am worrying that in the future I would have many problems with it because I am not sure if the canvas is proportional with every ...
0
votes
1answer
130 views
Eclipse emulator dpi can not be set over 320dpi ?
You must define dpi on your emulator. 240 is hdpi, 160 is mdpi and below that are usually ldpi.
Extract from Android Developer Guide link above:
320dp: a typical phone screen (240x320 ldpi, 320x480 ...