Re: [android-developers] this.requestWindowFeature(Window.FEATURE_NO_TITLE); code not work when home key block

2011-11-25 Thread Macoto nalds
call this before Activity.setContentView() .

requestWindowFeature(Window.FEATURE_NO_TITLE);


2011/11/25 Naveen kumarnaveen.si...@gmail.com:
 Hello All,

 I do not want title bar so coded
 this.requestWindowFeature(Window.FEATURE_NO_TITLE);  but when using
 this below code then this title bar code not works it's showing title
 header .


  @Override
    public void onAttachedToWindow() {

 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);


        super.onAttachedToWindow();
    }

 But in create i have already coded

  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                        WindowManager.LayoutParams.FLAG_FULLSCREEN);

 --
 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.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Bug in Renderscript API of the pown()???

2011-09-02 Thread Macoto nalds
A reply to myself.

When the second parameter of pown() is negative integers, returns are
the NaN as follows.
How does the pown() work???

//code snippet
float4 f4 = {2.0f, 6.0f, 2.0f, 2.0f};
int4 i4 = {-1,1,-5,1};
float4 r4 = pown(f4,i4);
rsDebug(r4 = , r4.x, r4.y, r4.z, r4.w);

//rsDebug log
09-03 10:34:06.650: DEBUG/RenderScript(2369): r4 =  {NaN, 1.00,
NaN, 1.00}


Thanks.

2011/9/2 Macotonalds macotona...@gmail.com:

 Hi, the function pown() in Renderscript may have bugs.

 //rs_cl.rsh
 _RS_RUNTIME float __attribute__((overloadable)) pown(float v, int p);
 _RS_RUNTIME float2 __attribute__((overloadable)) pown(float2 v, int2
 p);
 _RS_RUNTIME float3 __attribute__((overloadable)) pown(float3 v, int3
 p);
 _RS_RUNTIME float4 __attribute__((overloadable)) pown(float4 v, int4
 p);

 I experimentally execute the scalar version, float pown(float f,int
 i).
 Then it returns the value of f^i, so I think that it seems like the
 pow() function.
 Next I execute the vector version of pown(), but it seems that they
 don't work,
 because they always return the value 1.00 as follows, this is
 float3 pown().

        //code
        float3 f3 = {2.0f, 3.0f, 10.0f};
        int3 p3 = {10,5,2};
        float3 r3 = pown(f3,p3);
        rsDebug(pown : , r3.x, r3.y, r3.z);

        //rsDebug log of the above code
        09-02 16:42:37.460: DEBUG/RenderScript(10395): pown :  {1.00,
 1.00, 1.00}


 Does anyone know about it?
 I'm hoping that someone can help me.

 Kind Regards,
 Macotonalds.

 --
 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.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] What do arguments of the root() function in the Renderscript correspond to?

2011-08-29 Thread Macoto nalds
Hello. I have a qustion about RenderScript.
What do arguments of the root() correspond to?
For example the root() of HelloCompute in the SDK has some arguments as follows.

void root(const uchar4 *v_in, uchar4 *v_out, const void *usrData,
uint32_t x, uint32_t y) {
float4 f4 = rsUnpackColor(*v_in);
float3 mono = dot(f4.rgb, gMonoMult);
*v_out = rsPackColorTo(mono);
}

I'm hoping that someone can help me.

Kind Regards,
Macotonalds.

-- 
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.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en