background preloader

Random Tips

Facebook Twitter

Database - What are the best practices for SQLite on Android? Single SQLite connection. Les codes secrets Android pour accéder à vos informations cachées. Les codes USSD sur Android ne sont pas que des codes secrets qui nous aideront nous les nerds à faire joujou avec nos smartphones, voire les bricker parfois.

Les codes secrets Android pour accéder à vos informations cachées

Ils peuvent être utiles pour accéder à des informations sur votre appareil, pour le développement ou pour effectuer des actions rapidement. Les codes secrets sur Android, qu'est que c'est ? Les codes USSD On les confond souvent avec les codes secrets sur Android. Tout d'abord, USSD signifie Unstructured Supplementary Service Data, soit en français Service supplémentaire pour données non structurées. Les options développeurs sont-elles avantageuses sur Android ? Pour les entrer, il suffit de le faire directement depuis le pad de l'application d'appel. Ils dépendent de chaque opérateurs et ne permettent pas de contrôler ou de déclencher des actions sur votre Android. Dans les faits, on l'utilise traditionnellement pour demander des informations à son opérateur mobile.

Exploit (& Fix) Android "Master Key" Earlier this year, Bluebox Security announced that they had found a bug in Android that could be used to modify the contents of any application package (including ones distributed as part of the system software) without affecting the attached cryptographic signatures; details to be disclosed at Black Hat USA 2013.

Exploit (& Fix) Android "Master Key"

However, enough detail was disclosed in the abstract of the talk that others were able to find this bug. Later, a patch was applied to the popular open-source Android ROM CyanogenMod, making the issue both public and obvious: there are now proof-of-concepts for how this bug might be used in concrete form. In this article, I describe a different approach to the exploitation of bug #8219321 that does not fall prey to the limitations of previous descriptions (specifically, the packages being attacked do not need to have an existing "classes.dex" file inside, which is not actually common on production devices). Background Information Play Store Safety. GL11ExtensionPack (BlackBerry JDE 5.0.0 API Reference) (OES_framebuffer_object extension) Attach an image from a texture object to a framebuffer.

GL11ExtensionPack (BlackBerry JDE 5.0.0 API Reference)

To render directly into a texture image, a specified image from a texture object can be attached as one of the logical buffers of the currently bound framebuffer object by calling this method. GL_INVALID_OPERATION is generated if the current value of GL_FRAMEBUFFER_BINDING_OES is zero when glFramebufferTexture2DOES is called. attachment must be one of the attachment points of the framebuffer, either GL_COLOR_ATTACHMENT n_OES (where n is from 0 to GL_MAX_COLOR_ATTACHMENTS_OES - 1), GL_DEPTH_ATTACHMENT_OES, or GL_STENCIL_ATTACHMENT_OES. If texture is zero, then textarget and level are ignored. Level specifies the mipmap level of the texture image to be attached to the framebuffer and must be 0 (indicating the base MIPmap level).

Calling glFramebufferTexture2DOES with texture name zero will detach the image identified by attachment, if any, in the framebuffer currently bound to target. Problem with using opengl OES extension. PorterDuff Modes and Android. PorterDuff Modes This is an article on the PorterDuff modes for Android.

PorterDuff Modes and Android

It’s mildly technical… Eh? Not being grounded in Computer Science, the PorterDuff modes are a bit of a mystery to us. Never mind, we’ll look at the Android documentation for PorterDuff.Mode, an example of which is shown below: Java - Buffer Underflow. Android Recipe #3, sliding menu, layers and filters. This third recipe is a new take on the popular sliding menu.

Android Recipe #3, sliding menu, layers and filters

You can find sliding menus in many applications including Path, Evernote, Falcon Pro, Google+, etc. Very often the sliding menu is just that, a simple sliding menu. Some applications go a little farther and add a dimming effect: when you open the menu, the menu is slowly revealed by fading out a black layer. All the implementations I’ve seen, the SlidingMenu library for instance, simply draw a translucent rectangle on top of the menu. Displaying huge bitmaps on Android Canvas. Nostra13/Android-Universal-Image-Loader. Multithreading - Technical details of Android Garbage Collector. Android Performance Case Study. Falcon Pro I recently installed Falcon Pro, a new Twitter client, on my Nexus 4.

Android Performance Case Study

I really enjoy using this application but I noticed a few hiccups here and there while using it and it seemed that scrolling the main timeline did not yield a perfectly stable framerate. I dug a little bit with some of the tools and techniques I use every day at work and I was able to quickly find some of the reasons why Falcon Pro does not behave as well as it can. My goal in this article is to show you how you can track down and fix performance issues in an application, even if you don’t have its source code. All you need is a copy of the latest Android 4.2 SDK – the new ADT bundle makes setup a breeze. Android App Development:Threading part 1: Handlers. Multi-Threading concept is essential in most platforms. it provides maximum utilization of the processor. threading is used when the program executes time consuming processes (such as calling a web service) and to give a good user experience by unblocking the UI.

Android App Development:Threading part 1: Handlers

Android provides threading techniques to perform time consuming tasks in a background thread with coordination with the UI thread to update the UI. Android provides the following methods of threading: Handlers.Async. Tasks. When you create an object from the Handler class, it processes Messages and Runnable objects associated with the current thread MessageQueue. the message queue holds the tasks to be executed in FIFO (First In First Out) mannser. you will need only ine Handler per activity where the background thread will communicate with to update the UI. The Handler is associated with the thread from which it’s been created We can communicate with the Handler by two methods: Messages.Runnable objects. AsyncTask in Android 4.0. Add floating point value to android resources/values.

How to read contacts on Android 2.0.