[android-developers] Crash Launcher2 NullPointerException in onDetachedFromWindow()

2011-09-15 Thread cg-dev
Crash Launcher2 NullPointerException in onDetachedFromWindow() Hi, I'm developping an application on Nexus S that testing some Android API. To do so, I need to pause/resume my application : // Cause activity to be brought to front void resumeActivity() { Intent intent = new Intent(Intent.ACTION_

[android-developers] Re: External Jar and Resources

2011-05-25 Thread cg-dev
erious flaw in android development. I think the compiler shall be > able to incorporate resources within JAR files into APK. > > On May 13, 11:22 am,cg-dev wrote: > > > > > > > > > Hi, > > > If I understand well your issue : > > > > Wha

[android-developers] Re: Using transparent png textures won't work

2011-05-25 Thread cg-dev
Hi, > export it as 32bpp (tried 3 differenty image editing tools). It's strange you cannot get 32 bpp png. I use gimp every day and my PNG with transparency work very well. > (Take care : android downsampling PNG without transparency to 565) Sorry this issue seems occurs only on 2.1 > Here a Sc

Re: [android-developers] Re: Android renders RGB values wrong.

2011-05-13 Thread cg-dev
I know, but in Eclair it's not working. If you put Bitmap option to RGBA. You get a RGBA image but the image is altered. Maybe I'm wrong, but I remember I face this issue on my Eclair phone and take this workaround using libpng. In eclair release, if the bitmap has no alpha it was converted to

[android-developers] Re: Using transparent png textures won't work

2011-05-13 Thread cg-dev
Hi, > Also the 3 textures loaded from jpg There is no transparency in JPEG. You mean 2 jpeg and 1 png. And for the png one, you didn't get transparency. Right ? (Take care : android downsampling PNG without transparency to 565) You can try other combination of parameters for this gl.glBlendFunc

[android-developers] Re: Adding an button to a custom view

2011-05-13 Thread cg-dev
Hi, your custom view should derives from a Viewgroup. (Viewgroup inherit from View) Then simply create the View you want to add and call Viewgroup.addView(). Regards. On 12 mai, 18:32, Kapil wrote: > Dear Developers, > > My name is Kapil and I am trying to write a custom view which inherits > V

[android-developers] Re: NFC send Photo

2011-05-13 Thread cg-dev
Hi, As far as I know, I don't think you can put an image into a tag in a standard way. Check with Smart Poster Ndef tag type, maybe you can with this type. If only your application need to read and write the image, you can simply use Ndef type "Text" and put your image in a raw buffer. Regards.

[android-developers] Re: External Jar and Resources

2011-05-13 Thread cg-dev
Hi, If I understand well your issue : > What if I want to add some resources to the jar (e.g. a layout for > custom notification), is it possible ? No as layout are XML files that are compress when building APK. And there is no API to load an raw XML layout. (except if it changes recently) If y

[android-developers] Re: Android renders RGB values wrong.

2011-05-13 Thread cg-dev
Hi, I face the same issue with OpenGL texture. I use gradient texture and this one was "damaged" due to convertion from 24bit => 565. To solve this issue I embeded libpng in my application using NDK. You said that "the screen is 565 so we loose precision" : Yes but in OpenGL, glEnable(GL_DITHER)

[android-developers] Re: Nightmare loading mask bitmap

2011-05-13 Thread cg-dev
Hi, I face the same issue with opengl. My texture gradient were dirty due to convertion. So I embed libpng in my application using NDK. Regards. On 13 mai, 13:04, Ralf Schneider wrote: > Your image is probably convert to 565 and the back to 24bits. > This thread discusses a related problem: > >

[android-developers] Intent to launch Google Latitude

2011-05-10 Thread cg-dev
Hi all, I'm trying to launch Google Latitude using Intent. I'm using an URI found on the net : latitude://latitude/friends/location/exam...@gmail.com And this code : Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); intent.ad

[android-developers] Re: Issue with Test class SingleLaunchActivityTestCase

2011-03-04 Thread cg-dev
(); } super.tearDown(); } This : "if (sTestCaseCounter == 1)" should be replaced by "if (sTestCaseCounter == 0)" ? Regards. On 4 mar, 11:41, cg-dev wrote: > Hi, > > We're developping a test activity using SingleLaunchActivityTestCase<> > and JUnit on An

[android-developers] Issue with Test class SingleLaunchActivityTestCase

2011-03-04 Thread cg-dev
Hi, We're developping a test activity using SingleLaunchActivityTestCase<> and JUnit on Android 2.3.3 We face the following issue : In JUnit view in eclipse we have the following function call order : testActivityTestCaseSetUpProperly() <- this one is built in android. testA() testB() testC()

[android-developers] Re: OpenglES issue with Acer liquid.

2010-07-16 Thread cg-dev
Hi, I answer to myself : I update Acer liquid to official OTA update 2.1 the issue seems fixed. Drivers issue maybe ... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.c

[android-developers] OpenglES issue with Acer liquid.

2010-06-29 Thread cg-dev
Hello, I'm developping a native application for android and I face to artefacts when rendering the scene. I can reproduce the issue with Java code. While the following code running, I got a green screen. But If I move the status bar up and down over the screen, I see some red artefacts. Here a s