Android :: Alpha Buffer Support On G1

Mar 21, 2009

Is it possible to generate an EGL Config with an alpha buffer on the G1? When I request a non-zero number of bits for the alpha buffer I can get a R5G5B5A1 or R8G8B8A8 visual, but neither of them renders correctly to the screen. I assume that's because the G1 only supports R5G6B5 visuals. It does surprise me that I can even get those visuals though. It's fairly obvious looking at the 32bpp visual artifacts that the frame buffer is indeed laid out with 32bpp, but display hardware is treating it as 16bpp, resulting in the left and right halves of my scene rendering in alternate scan lines, with distorted colors. So does anyone know if there is any way to get an alpha buffer on the G1? I've tried using FBO's but they don't seem to be implemented either. Or I'm using them incorrectly. If I call glGenFrameBuffersOES on a GL11ExtensionPack reference I get an UnsupportedOperationException. I am getting my GL11ExtensionPack reference by casting the return value from my EGLContext.getGL() call.

Android :: Alpha Buffer support on G1


Android :: Alpha Buffer Support

May 24, 2009

Since Google groups doesn't let you add posts to threads more than 60 days old, and I want to leave a solution to the problem I encountered a while back, I'm posting this message with the same title in hopes that anyone running into the problem I had will find this message as well. I was having trouble getting my G1 to render an RGBA_8888 OpenGL context to the screen. Everything was twice the size it should be because the 8888 pixels were being interpreted as two 565 pixels. The colors were obviously wrong as well. I had missed a critical function call. You must configure the Surface that is being used by EGL using the SurfaceHolder method setFormat. The pixel format needs to be TRANSLUCENT, or more specifically you can use RGBA_8888.

View 2 Replies View Related

Android :: Widgets - Imageview Doesn't Support Transparency/alpha

Aug 7, 2009

When applying an alpha value to an imageview, Eclipse displays the view accurately in layout mode. But when exporting to a target device (such as a phone), the alpha appears to be ignored. This impacts developers trying to create fade ins/outs of elements in a widget. Has anyone else come across this issue yet? Not sure if this behavior is by design or by error.

View 2 Replies View Related

Android :: Get The Alpha Of An ImageView

Aug 3, 2010

How can I do this? There's a setAlpha but no getAlpha.

View 2 Replies View Related

Android App Alpha Testing

Aug 4, 2013

I have been having issues downloading the latest version of my app as part of Alpha testing. I have uploaded 6 versions and every time i download the app i just get the first version.

Thinking this is something to do with cache on google play store, on few versions, i waited more then 24 hrs for the download. Even this did not work.

Is there anything that i can do to make sure that i download the latest version. All the previous versions are archived and only the latest version is published/active.

View 2 Replies View Related

Android :: Alpha Gradient On Bitmap Of PNG

Dec 11, 2009

I'm trying to apply an Alpha gradient to a bitmap that I've created from a PNG. I want the image to be opaque at the top and fade to transparent at the bottom. I know this can be done be using getPixels and setPixels for Bitmap and iterating through each row of pixels in the Bitmap and setting the alpha values accordingly, but i was hoping there was a slightly neater way of doing this. I have been looking at the LinearGradient Class and using a Porter Duff transfer mode, but i don't seem to be having much luck with this. It seems that my source image is lost when i apply the Shader to the drawable. Anyone have any tips on how i might apply an alpha gradient to a bitmap?

View 2 Replies View Related

Android :: Loading An Alpha Mask Bitmap

Oct 28, 2010

I have a single-channel PNG file I'd like to use as an alpha mask for Porter-Duff drawing operations.If I load it without any options, the resulting Bitmap has an RGB_565 config, i.e. treated as grayscale.If I set the preferred config to ALPHA_8, it loads it as a grayscale ARGB_8888 instead.How can I convince Android to treat this file as an alpha mask instead of a grayscale image?

mask1 = BitmapFactory.decodeStream(pngStream);
// mask1.getConfig() is now RGB_565

BitmapFactory.Options maskOpts = new BitmapFactory.Options();
maskOpts.inPreferredConfig = Bitmap.Config.ALPHA_8;
mask2 = BitmapFactory.decodeStream(pngStream, null, maskOpts);
// mask2.getConfig() is now ARGB_8888 (the alpha channel is fully opaque)

View 1 Replies View Related

Android :: Way To Apply Color To Alpha Animation

Jul 14, 2010

Is there a way to apply a color to an alpha animation in android? I know how to use the <alpha> element, but i'd like to have the alpha apply a color as well as an alpha so i can hightlight a layout. is this possible?

View 1 Replies View Related

Android : Bug With Alpha Channel In Sdk 1.5 / Remove Background?

May 19, 2009

I've just migrated to 1.5 and a strange bug has occured. I have the following code...

That means I want my image button to have no background, just image. It worked well in sdk 1.1, but now it shows a black rectangle as background. Why can it be and is there another way to remove the background?

View 3 Replies View Related

Android : Draw Circle On Alpha Channel?

Jan 12, 2010

I've created a bitmap that I'm overlaying over another bitmap. I'd like to alter the transparency of sections of the overlaid bitmap, revealing the bitmap beneath. I can't find a way to write only to the alpha channel of the overlaid bitmap.

For example, I have a bitmap filled with red pixels, and an alpha that is 255, opaque. A solid red bitmap. How do I draw a circle on this map that would lower the alpha values toward 0, transparent?

View 2 Replies View Related

Android :: Get Alpha / Opacity Of A View In Droid?

Aug 27, 2010

How can I get the alpha/opacity of a View after I've animated it? code...

View 1 Replies View Related

Android :: Blinking Image Using Alpha Fade Animation

Oct 11, 2010

I've been struggling for a few days on this, finally just decided to ask. It's so simple I've got to be missing something very basic.I have an XML layout page with an image defined. I have two anim XML pages, one to change alpha from 0 to 1, and the other from 1 to 0 in order to create a "blinking" effect. So the alphaAnimation is defined in XML, I just need to call it. The image pops up, but there's no looping blinking effect.

View 2 Replies View Related

2.1 Update :: Xperia X10 Android 2.2 Froyo (Alpha Version)

Nov 28, 2010

There is Froyo running on an X10, I know its true because its my x10, this is an Alpha version and runs from the SD Card, it is not even a beta version yet but this version is around 90% done, still some things to resolve. This is not a re-flash of the phone it is a dual boot so has not affected the SE base operating system currently installed being 2.1.

The guys at XDA are working on this and if they get it fully resolved then it will become available as an alternative system, if they keep it as dual boot it will never affect your warranty. At all as this installs on your SD Card, there is a thread on the XDA forum but in respect of this forums policy on rooting and other things I wont post the link but searching the XDA forum for x10 Custom Rom will return a number of results so you can find it from there yourself.

If the guys at XDA can do this then SE can, the only thing is XDA are not restricted by International markets and operator restrictions like SE are, if XDA make a custom rom that runs 2.2. From the SD Card then for me its perfect it keeps the phone warranty and software as is and lest you run your own free Froyo version. The pictures are not photo shopped except for clipping and sizing from the original.

View 7 Replies View Related

Android :: Color Banding - Png Resource That Has Gradient Fade-out Alpha

Oct 29, 2010

Seems my original post ("ugly pngs...") somehow disappeared :( nvm.

I have a problem with a png resource that has gradient fade-out alpha.

The png looks great in the emulator, but displays an artefact known as "color banding" (http://en.wikipedia.org/wiki/Colour_banding)

Has anyone surpassed this issue ?

My designer wants to trop a shadow behind his icons, and that's where the bands appear.

What are my options ?

View 13 Replies View Related

Android :: Opengles Alpha Textures Not Semitransparent But Binary Transparent

Sep 3, 2010

I am drawing some textures with alpha channel, but when they are displayed it looks like the alpha channel is only binary. So a pixel is either transparent or opaque, although in the texture file itself the pixel is half-transparent.

The blending is set up like this:

code:............

The above shows how it should be like, and the below shows how it is:

View 4 Replies View Related

Android :: ListView Alpha Scroller For Quickly Scrolling Long List

Feb 26, 2010

The Contacts app shows a button on the side of the screen that acts as a little thumb to allow you to quickly scroll the big list. I have a very long list that would benefit from this navigation behavior, but can't find any documentation as to how to enable it.

Is it a behavior that's built into the SDK, or must I write it myself?

View 1 Replies View Related

Android :: Data Buffer Pass By Jni

Aug 4, 2009

Have some tryed to pas databuffer on android by jni?

View 6 Replies View Related

Android :: System Log Buffer Size

Feb 11, 2009

I have the following problem: I'd like to see the system log of two days ago and I cannot. I see only 3 last hours. How can I configure the system log size, location, severity?

View 6 Replies View Related

Android :: How To Empty The Logcat Buffer

Jul 23, 2010

How can I empty the logcat buffer in Android? I use adb logcat from command line and pipe the output to a file, since the DDMS has a very limited buffer. At the moment, when I restart my app (after fixing bugs etc) the logcat buffer has data from the previous launch as well. Even uninstalling the app does not clear the buffer. The only way I've found so far to clear the buffer, is reboot. This is effective, but would like to know if there's an easier way.

View 1 Replies View Related

Android : Why Does Internet Radio Always Buffer

Oct 5, 2010

I like to listen to internet radio stations due to the variety of music i can listen to and also due to the lack of full Flash support yet for 2.1

my 3G & HSDPA signal is excellent almost anywhere....at home, at work and on the road and out and about. i'm with T-mobile (UK) for the past 5 years and i'm very happy with their service. and the signal.

but sometimes the internet radio still buffers sometimes even with an almost excellent signal. why is this? any explanation?

View 6 Replies View Related

Android :: How To Capture Audio Data From Mic Into A Buffer?

Sep 24, 2009

I am working on a packet switched network. I want to capture the audio data from mic into a buffer at a desired sample rate.How can I capture the audio data from mic into a buffer instead of a file? Also how can I control the audio capture rate as per the desired sample rate?

View 2 Replies View Related

Android :: Better (Video Buffer) YouTube Application?

Oct 19, 2010

I've pretty much fed up with the stock Youtube app on my Moto Droid, and was wondering if there are any alternate apps or fixes out there. Between it flipping a nut if I try to seek further into the video and the fact that it won't allow me to buffer the video at all is what tweaks me the most. Whats the point of trying to watch anything over 3G if I'm only gunna get 3 seconds of video followed by 3 seconds of buffering through the whole thing?

View 1 Replies View Related

Android :: Any Way To Change LogCat Buffer Size?

Jan 30, 2010

Is there a way to change how big the logcat buffer is? or how much is buffered back? Especially when using DDMS.

View 3 Replies View Related

Android :: Buffer Size For Audio Track

Jun 17, 2009

This may be impossible but is there any way that I can get a smaller buffer size for AudioTrack than what is provided by getMinBufferSize method?

This is how I am instantiating AudioTrack right now: SR = 44100; bufSize = AudioTrack.getMinBufferSize(SR, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, SR, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufSize, AudioTrack.MODE_STREAM);

With sample rate of 44100, getMinBufferSize always returns 4800. If I try to make the buffer size smaller than 4800 then I get the following error message: E/AudioTrack( 318): Invalid buffer size: minFrameCount 1200, frameCount 600 E/AudioTrack-JNI( 318): Error initializing AudioTrack E/AudioTrack-Java( 318): [ android.media.AudioTrack ] Error code -20 when initializing AudioTrack. D/AndroidRuntime( 318): Shutting down VM W/dalvikvm( 318): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 318): Uncaught handler: thread main exiting due to uncaught exception I/CheckinService( 59): From server: Intent { action=android.server.checkin.FOTA_CANCEL } E/AndroidRuntime( 318): java.lang.RuntimeException: Unable to start activity Does anyone has any ideas how to over come this problem?

View 2 Replies View Related

Android :: OpenGL Depth Buffer - Cant Get To Work

Apr 29, 2010

I'm currently learning OpenGL ES programming on Android (2.1). I started with the obligatory rotating cube. It's rotating fine but I can't get the depth buffer to work. The polygons are always displayed in the order the GL commands render them. I do this during initialization of GL:

CODE:...........

On surface-change I do this:

CODE:............

When I enable backface culling then everything looks correct. But backface culling is only a speed-optimization so it should also work with only the depth buffer or not? So what is missing here?

View 2 Replies View Related

Android :: Using Cache Or SDcard As Temporary Buffer

Nov 19, 2010

I'm currently trying to create a buffer for my application which needs to be big!I mean at least 1MB but most likely to be 4MB.Now definitely bad idea to actually allocate this much on a byte array in memory.So the options are put all the data in a file. So question is where do I place this temp file?

Option 1: Store to sdcard. Might be slow and not such a good idea for continuous read/writes?

Option 2: Store to in the apps cache.I read somewhere this is fast for read/ writes. But also read before issues cleaning up the cache after use? I guess I should as if I be able to create a file in cache and discard it when I don't need it? Any tips/look outs from using this methods would be greatly appreciated!

View 7 Replies View Related

Android :: Display APIs - Buffer On Screen?

Nov 3, 2009

How can we display a buffer on screen?

Currently I create a bitmap using Bitmap's CreateBitmap() and render it on screen using canvas' drawBitmap().

Is there any other way of doing this in Java layer?

View 8 Replies View Related

Android :: Read The Current Frame Buffer?

Nov 16, 2010

Is there a method to read the frame buffer of the current screen? I searched some data about the frame buffer. Some one used the glReadPixels method, but the information was not enough. Does anyone know how to read the current frame buffer in detail?

View 4 Replies View Related

Android :: How To Read The Current Frame Buffer

Nov 16, 2010

Is there a method to read the frame buffer of the current screen? I searched some data about the frame buffer. Some one used the glReadPixels method, but the information was not enough. Does anyone know how to read the current frame buffer in detail?

View 1 Replies View Related

Android :: Getting OpenGL-ES Stencil Buffer Working

Jun 29, 2010

With the stencil buffer in opengl-es for Android, I'm simply trying to mask out drawing part of the screen. I think I have it set up right, but it is not masking out the non-stenciled parts. Below is an extraction of code for what I'm doing.

CODE:......

I have confirmed this draws to the correct location by allowing colour to show. Trust that this draws the mask to the correct location.

CODE:.......

Draw everything. Only items inside the masked area should be drawn. But everything is drawn with this code...

CODE:.................

Anyone spot anything wrong with this? What it does basically is draw a box for say, half the screen (this works if I had colour enabled) which is setting the stencil buffer to 1 for that area. And at the end I draw to the whole screen. I want it to draw to the top half only, but it draws everything.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved