[android-developers] Transparent Background View with Translucent Activity

2011-12-15 Thread Guian
Hi all ! I've got a weird problem in my interface and I'd like to ask for comments, if anyone already seen such a case : I've created a dialog style Activity : an Activity with translucent background and a listView centered in it. (so we can see the previous activity around my listview ) the li

[android-developers] Black screenon starting a VideoView

2011-10-05 Thread Guian
Android video view is displaying a big black screen when opening a video for first time before playing for some miliseconds. then Video is playing fine.But how to remove that black screen while playing the video ? I'm using a VideoView integrated in my layout. when the videoview start playing, it

[android-developers] Re: Fragment "isAdded()" issue ?

2011-08-01 Thread Guian
any more comment on this ? On 22 juil, 11:00, Guian wrote: > but I'm not adding  twice the same fragment in one fragment > transaction. > > here is what happens : > > 1) launch app > => call to  "onTabSelected" => add my fragment with this piece

[android-developers] Re: Fragment "isAdded()" issue ?

2011-07-22 Thread Guian
ous; isAdded() doesn't return true until > the transaction is committed. > > > > > > > > > > On Thu, Jul 21, 2011 at 9:33 AM, Gab wrote: > > I have a same problem, my fragment lost the reference of activity > > after pause/resume... > > I don&#

[android-developers] Re: Fragment "isAdded()" issue ?

2011-07-19 Thread Guian
t;); and I recreate a previously build fragment which I think isn't very optimised ... any comment/advise on this is welcome. On 19 juil, 14:31, Guian wrote: > here is the source code forisAdded: > >     /** >      * Return true if the fragment is currently added to its acti

[android-developers] Re: Fragment "isAdded()" issue ?

2011-07-19 Thread Guian
ent from scratch since I've lost its activity owner ? what cause this reference on mActivity being lost ? if its the onPause => onResume, what's the point of having a onPause onResume methods to implement in Fragment, if we have to recreate it anyway ? On 19 juil, 12:23, Guia

[android-developers] Re: Fragment "isAdded()" issue ?

2011-07-19 Thread Guian
I've seen that isAdded() can return false even if the field 'mAdded' in the Fragment is true ? (seen in the 'Variables' view in eclipse ) does anybody know why ? On 19 juil, 11:46, Guian wrote: > I can't understand how this piece of code

[android-developers] Fragment "isAdded()" issue ?

2011-07-19 Thread Guian
I can't understand how this piece of code : if(!fragmentsToAdd.isAdded()) ft.add( R.id.parent, fragmentsToAdd, "myFragment"); can lead to this exeption : FATAL EXCEPTION: main java.lang.IllegalStateException: Fragment already added: TestFragment{40856358 #0 id=0x7f060024 "myFragment"} at

[android-developers] Re: glHint implementation and openGL antialiasing

2011-01-19 Thread Guian
say that at first. On 19 jan, 17:10, Phil Endecott wrote: > On Jan 19, 2:40 pm, Guian wrote: > > > in our openGL implementation > > There are multiple Android OpenGL implementations, one for each > graphics chip vendor, so you may see different results in each case. > &

[android-developers] Re: glHint implementation and openGL antialiasing

2011-01-19 Thread Guian
ERRATUM : sorry guys, it seems like gl.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST); actually do something ... like its a very little bit better... more informations about it are still welcome. On 19 jan, 15:40, Guian wrote: > hi every one ! > > can we use > >

[android-developers] glHint implementation and openGL antialiasing

2011-01-19 Thread Guian
hi every one ! can we use gl.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST); to get antialiased lines in android's openGL ES ? I tried it but it doesn't seem to work. the doc (http://www.khronos.org/opengles/sdk/1.1/docs/man/ ) says : "The interpretation of hints depends on the implementatio

[android-developers] Re: android.os.DeadObjectException

2010-10-25 Thread Guian
It seems like I've got a low memory issue in my App... Can it be the reason why my IME process run away ? On 25 oct, 10:37, Guian wrote: > thx Dianne for the answer. > I'm meeting the same problem and I still wonder how can we prevent the > current IME's process from

[android-developers] Re: android.os.DeadObjectException

2010-10-25 Thread Guian
thx Dianne for the answer. I'm meeting the same problem and I still wonder how can we prevent the current IME's process from going away... ( Did I say something that upset it ? ) Any clue on this ? On 25 oct, 10:13, Dianne Hackborn wrote: > As per: > > W/InputMethodManager( 2368): IME died:

[android-developers] Android ecommerce and processing credit cards

2009-12-09 Thread Guian
Someone's already talk about it about two years ago but the topic seems closed. I wonder is the situation evolved or not ? the topic was : Android ecommerce and processing credit cards through Android (Google Checkout, PayPal, PCI Compliance) link: http://groups.google.com/group/android-developer

[android-developers] linearlayouts in a linearlayout and alignments

2009-10-07 Thread Guian
hi guys! seems like I'm gona ask a "noob question" :D I've some horizontal linearLayout in a vertical one: [syntax="xml"]

[android-developers] Re: OpenGL and pause/resume

2009-09-23 Thread Guian
extures, vbos, etc) to > video memory when the surface has changed. > After the surface has changed, when reloading, get all new texture and > vertex buffer IDs.  Do not use the old ones or you could crash the gl > system. > > If you follow these rules, your app should play nicely wi

[android-developers] Re: OpenGL and pause/resume

2009-09-23 Thread Guian
s or you could crash the gl > system. > > If you follow these rules, your app should play nicely with Android. > > On Sep 22, 11:05 am, Guian wrote: > > > > > thx for your answer. I'm not familiar with it, should I use a > > SurfaceHolder.Callback to be no

[android-developers] Re: OpenGL and pause/resume

2009-09-22 Thread Guian
or anything like that.  I use GLSurfaceView > onPause and onResume and they work correctly for me on the G1 and > Emulator. > > On Sep 21, 8:18 am, Guian wrote: > > > > > well, I did put those lines in the onPause/onResume methods but still > > have the black

[android-developers] Re: OpenGL and pause/resume

2009-09-21 Thread Guian
well, I did put those lines in the onPause/onResume methods but still have the black screen with this error in the logcat: ERROR/SurfaceComposerClient(15353): using an invalid surface id=0, identity=1431 should be 1435 Doesn't seem exactly the same error... can anybody help please ? On 30 août

[android-developers] How to get a view from a custom layout ?

2009-06-23 Thread Guian
I've created a custom view via .xml file, and I wanted to add it as a a contentView to an alert Dialog usinf a dialogBuilder: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setNeutralButton( _Res.getString(R.string.close), new DialogInterface.OnClickListener(){

[android-developers] click on a gone view

2009-06-03 Thread Guian
Why is this possible ? code : private OnClickListener _Listener = new OnClickListener() { public void onClick(View v) { if(v== myView){ if(myView.getVisibility()==View.GONE) Log.d("on

[android-developers] Re: SurfaceFlinger and permitions

2009-04-30 Thread Guian
:25, Guian wrote: > nobody can help? > > On 24 avr, 17:24, Guian wrote: > > > > > I'm porting my app on the t-mobile G1. this app uses OpenGL (using the > > glSurfaceView from API demo ) > > > my app works fine on the emulator with these minor errors :

[android-developers] Re: SurfaceFlinger and permitions

2009-04-27 Thread Guian
nobody can help? On 24 avr, 17:24, Guian wrote: > I'm porting my app on the t-mobile G1. this app uses OpenGL (using the > glSurfaceView from API demo ) > > my app works fine on the emulator with these minor errors : > > 04-24 16:57:04.957: ERROR/GLLogger(213): couldn&#x

[android-developers] SurfaceFlinger and permitions

2009-04-24 Thread Guian
I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo ) my app works fine on the emulator with these minor errors : 04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load library (Cannot find library) 04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid

[android-developers] SurfaceFlinger and permitions

2009-04-24 Thread Guian
I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo ) my app works fine on the emulator with these minor errors : 04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load library (Cannot find library) 04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid

[android-developers] Re: How to register a ContentProvider

2009-01-09 Thread Guian
I think I have exactly the same probleme... The Androidmanifest file shows : (MyProvider exetends ContentProvider) but the "onCreate()" methode of "MyProvider" is never called so my database is never created... Is there something I forgot... ? I've also followed the example from th

[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-05 Thread Guian
here is my solution : (very simple with the Bitmap from android SDK ;) ) its NOT possible to load non power of two size bitmap as texture but it's very easy to resize our bitmap ;) => [syntax="java"] //correct the bitmap if its not a power of two width if(((Math.log((doubl

[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-05 Thread Guian
s not support non-power-of-2 textures. > > > On Thu, Dec 4, 2008 at 8:48 AM, Guian <[EMAIL PROTECTED]> wrote: > > > > in the OpenGL android API  (android.opengl.GLUtils.texImage2D() ) > > > (http://code.google.com/android/reference/android/opengl/GLUtils.html >

[android-developers] OpenGL context => how to load non power of two dimension bitmap?

2008-12-04 Thread Guian
in the OpenGL android API (android.opengl.GLUtils.texImage2D() ) ( http://code.google.com/android/reference/android/opengl/GLUtils.html ) we can read=> "Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context." I load my OpenGL context using : mEglConte

[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian
I should create a new topic for this new question. --~--~-~--~~~---~--~~ 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 fro

[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian
in the OpenGL android API => Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. I load my OpenGL context using : mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig,EGL10.EGL_NO_CONTEXT, null); do you know what do I have to use i order t

[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian
the probleme was: I tried to use this picture as an OpenGL texture but, its width was 1023 with is not a power of 2... it works with the same picture, reSize to 1024. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian
ps : my picture file is a .jpg file, encode with the flex jpg encoder. --~--~-~--~~~---~--~~ 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] BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian
Hi guys ! I'm looking for a way to build a picture from an array of bytes here is the way I use to store my picture (read from a ZIP file) into a byte[] : Java source code: -- final ZipInputStr

[android-developers] Re: opengl changes in new sdk

2008-11-28 Thread Guian
I'm looking for this solution too... If you already found it can you explain me please ? On Nov 3, 6:05 pm, petunio <[EMAIL PROTECTED]> wrote: > Hi there > > I used to use the following sentence: > OpenGLContext mGLContext = new OpenGLContext(0); > in the old (3) sdk. > > Now, with the new one,