[android-developers] Reusing bitmaps for BitmapFactory.decodeFile and BitmapFactory.Options.inBitmap

2013-08-24 Thread danik
My app decodes a lot of bitmaps from sd card, so I want to reuse existing bitmaps to decrease GC work. I see examples from Android Traininghttp://developer.android.com/training/displaying-bitmaps/manage-memory.html#inBitmapand this video http://www.youtube.com/watch?v=rsQet4nBVi8

[android-developers] Error when I take screenshot from IDE: void __egl_platform_dequeue_buffer .

2013-08-24 Thread catafest
I use a simple pygame script from here: http://pygame-catalin.blogspot.ro/2013/08/pygame-first-interface-part-4.html . When I want to make a screenshot using android-studio of this game. This is the error show by Android-Studio in log: 08-15 15:16:24.5302628-2647/? E/: void

Re: [android-developers] Reusing bitmaps for BitmapFactory.decodeFile and BitmapFactory.Options.inBitmap

2013-08-24 Thread Romain Guy
Here is what the documentation says: The current implementation necessitates that the reused bitmap be mutable and of the same size as the source content. Make sure the bitmap you are reusing is mutable. On Sat, Aug 24, 2013 at 12:07 AM, danik danik...@gmail.com wrote: My app decodes a lot of

[android-developers] Re: No sound card access on Jelly bean?

2013-08-24 Thread MobileVisuals
I have some music visualizer apps. They have internal players, where the music visualization still works. The apps also use the sound for external players, like Spotify and Winamp. The apps could visualize the sound from these before, but it does not work on Jelly bean. I have played

[android-developers] Re: Detect a gesture startet from the outside of a view

2013-08-24 Thread OronS
Little search showed that ACTION_CANCEL is the right value to get from the system, but the (X,Y) values on this event are not proportional to the gesture I made :S Y values are way bigger than expected I did expand the HitRect size, but it's still too big On Friday, August 23, 2013 10:24:03 PM

Re: [android-developers] Reusing bitmaps for BitmapFactory.decodeFile and BitmapFactory.Options.inBitmap

2013-08-24 Thread danik
Bitmap is mutable, because I decode it with option inMutable=true. Bitmaps have same size, because I decode the same file. But your answer forces me to read docs more carefully and I realize my fail! The docs says: The source content must be in* jpeg or png* format (whether as a resource or as

[android-developers] Re: Your apps portfolio

2013-08-24 Thread Jose_GD
I use about.me but not for showing a portfolio. But you can of course, why not. Right now I show my work on LinkedIn, in my case with a link to my app on Play and with a Google Drive presentation with screeshots of an app I made for a client (in PDF form). El viernes, 23 de agosto de 2013

[android-developers] Re: Designing Help into Your App

2013-08-24 Thread Jose_GD
What I've done in one of my apps is to take advantage of a Google Drive presentation I did for my client showing all the app's features, and put them in the form of PNG files inside an ImageSwitcher. This ImageSwitcher lives inside a DialogFragment shown upon selecting Help from the ActionBar.

[android-developers] Re: Detect a gesture startet from the outside of a view

2013-08-24 Thread Nobu Games
You could still try the approach I described by getting rawX and rawY from the motion event and match it with the global rect position of the target view. Motion event coordinates are usually in a local coordinate system. I guess the local coordinate system is the one of the ImageView you start

[android-developers] Does android emulator support ES 3.0?

2013-08-24 Thread oscar barenys
Hi seems new Android 4.3 supports OGL ES 3.0 and new NDK also.. does android emulator from sdk support native ES 3.0 assuming a recent GPU and drivers on host (say OpenGL 4.3 drivers).. if not it's coming soon? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Detect a gesture startet from the outside of a view

2013-08-24 Thread OronS
I did a combination.. I've created a subclass of GestureOverlayView as you have suggested, and then the approach with dispatchTouchEvent(MotionEvent)http://developer.android.com/reference/android/view/ViewGroup.html#dispatchTouchEvent%28android.view.MotionEvent%29didn't work. One problem was

[android-developers] Creating a list like the one in android dev guidlines

2013-08-24 Thread William Reed
Hey guys I was going through the android dev guidelines and came upon this awesome list looking thing that would be awesome to have in my app http://i.stack.imgur.com/oLZ5V.png You can see the list on the left phone with the little picture and then the three lines of text. That is exactly what

[android-developers] Re: Creating a list like the one in android dev guidlines

2013-08-24 Thread William Reed
Maybe something like this but with an image view? http://stackoverflow.com/questions/8841283/gmail-like-listview-with-checkboxes-and-using-the-actionbar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Creating a list like the one in android dev guidlines

2013-08-24 Thread Kostya Vasilyev
Last I checked (using Developer Options, show view boundaries), Gmail was not using Android layouts for items inside a message item view. It's one Android view per message list item, the internals are handled internally. Now back to your original question: consider RelativeLayout: