[android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-24 Thread a1
At first glance: internalformat in glTexImage2D do not match format in glTexSubImage2D. You should either define texture as RGB565 or change data format passed to glTexSubImage2D. -- Bart Janusz -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-24 Thread John Goche
Thank you all for your replies, they were really helpful. I think I am going to launch an intent just before calling setContentView() the first time the application starts up followed by finish(), and call setContentView() all other times. Regards, John Goche -- You received this message

[android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-24 Thread AndroidYourself
Thanks for the replys Yes, I use RGB 565 and my first Texture is: 512x512 bitmap = BitmapFactory.decodeStream( getAssets().open(icon_512.png) ); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); This is showing nice ... but then the Bitmap in the canvasBufferAsShort Buffer (320x200) is not

[android-developers] Tip when using ObjectAid UML diagrams in Eclipse Android projects

2011-12-24 Thread I.E.
Here is a tip: If you use ObjectAid UML diagrams in your Eclipse Android project, the Android packaging tools will add all the ObjectAid files (.ucls, .useq, .PNG) into your final APK binary file, which is a zip file. This is not wanted because it increases the APK size unnecessarily. So a

Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-12-24 Thread String
On Tuesday, September 27, 2011 5:41:46 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Mon, Sep 26, 2011 at 8:06 AM, MrArti mr.art...@gmail.com wrote: I've tried to reproduce the ActionMode with the following ActionMode callback started when the user clicks on the button but the items's

[android-developers] ICS - checkbox style

2011-12-24 Thread dashman
I'd like my checkboxes to appear like the default ICS checkboxes. how can i do that and maintaining backward compatibity. i assume it has to do with style..or is it a theme. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Have a custom listview with A-Z filters on the right

2011-12-24 Thread Akshay Patil
I am enclosing an image of my application to make it easy to ask my question.The app shows 400 entries. I want to implement a A-Z filter on the right side of the listview containing the entries like the Android Contacts application shows and i have highlighted what exact functionality i want

[android-developers] Have a custom listview with A-Z filters on the right

2011-12-24 Thread Akshay Patil
I am enclosing an image of my application to make it easy to ask my question.The app shows 400 entries. I want to implement a A-Z filter on the right side of the listview containing the entries like the Android Contacts application shows and i have highlighted what exact functionality i want

Re: [android-developers] Re: Password app

2011-12-24 Thread Narendra Bagade
invoke your launchor activity using broadcast for intent of reboot On Fri, Dec 23, 2011 at 2:40 PM, Ali Chousein ali.chous...@gmail.comwrote: Have a look at the intent actions and see if any, or a set of them will serve your purpose.

Re: [android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-24 Thread Leigh McRae
Both 320 and 200 aren't powers of two. Your maybe confusing it with being divisible by two. Power of 2 textures are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 etc This could be the problem but since I never use non-power-of-two textures I can't be 100% sure. Unless you have a REALLY compelling

[android-developers] Re: ADT 15.0.1 and library dependencies problems (Conversion to Dalvik format failed with error 1)

2011-12-24 Thread Viktor Bresan
For all those who might bump on the same problem, the following solution (inspired by the answer of 'Streets Of Boston') helped: I have created another Android library project AL0 that was just a stub for a JP. I replaced all the references to JP with references to AL0. That's it. Kind regards,

[android-developers] Re: Android custom ImageView fade animation

2011-12-24 Thread AlexBonel
On 23 дек, 07:49, Seb stsiop...@googlemail.com wrote: Brilliant, that's useful, will give that a go. Any advice for the original issue? Well, I have got only one idea, but I think there is another better method to do, but never mind, try to call Activity.runOnUIThread(Runnable) method and

Re: [android-developers] which to use shared preferences or files best practices

2011-12-24 Thread Graham Bright
Thanks Graham On 23 Dec 2011 13:51, TreKing treking...@gmail.com wrote: On Fri, Dec 23, 2011 at 4:15 AM, Graham Bright gbwienmobil...@gmail.com wrote: To store the te... How long is this string? If it's relatively short, a preference. If it's relatively long, a file.

Re: [android-developers] Re: Password app

2011-12-24 Thread Kristopher Micinski
I believe that Mark Murphy (and others, he is just who I remember answering this) details the things wrong with these sorts of things, but they basically boil down to: this is a hack (even catching the home key in the old way has been fixed on newer devices) and catching a broadcast intent and

Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar

2011-12-24 Thread Mark Murphy
On Sat, Dec 24, 2011 at 7:31 AM, String sterling.ud...@googlemail.com wrote: I have found that the the Done button WILL invoke onDestroyActionMode() if your callback is an instance of  AbsListView.MultiChoiceModeListener, rather than simply ActionMode.Callback. You need to implement one more

[android-developers] Re: ICS Open GLES 1.0 | glTexImage2D + glTexSubImage2D not working?!

2011-12-24 Thread AndroidYourself
Ah, ok... I will test it, thanks! :) On 24 Dez., 17:05, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: Both 320 and 200 aren't powers of two.  Your maybe confusing it with being divisible by two.  Power of 2 textures are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 etc This could be the problem