Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
Click here to check if anything new just came in.
February 09 2012
Introducing Twine: String Management for iOS, Mac OS X, and Android Development - Mobiata Blog
"Yes, this is the standard process that Apple recommends for localizing and translating your apps. I, however, would not recommend this process to anyone, as I believe it to be fundamentally broken for a number of reasons."December 28 2011
http://idunnolol.com/android/drawables.html
The missing manual! Each of the top-level elements are useable in Android XML files, in /res/drawable/. Some of them are allowed to be contained in others and this is noted below.November 25 2011
Gold For Android Developers: Add AOSP Source Code To Eclipse With The "Android Sources" Plugin
Enter the Android Sources Eclipse plugin. No more downloading random zips, searching for the right sources, and figuring out what to package where - just install the plugin, restart Eclipse, and all available API levels (currently 3-10, considering Honeycomb isn't open sourced and ICS source hasn't come out yet) are automagically available. 170MB of open goodness.November 12 2011
Android SDK Source Code for your IDE
android-10-src.jar generated by Wolf PaulusOctober 12 2011
A brief example of what RoboGuice does
RoboGuice is a framework that brings the simplicity and ease of Dependency Injection to Android, using Google's own Guice library.October 06 2011
Matrix offset for tiled BitmapDrawable
The Android framework’s BitmapDrawable class allows you to draw a bitmap onto a view. The bitmap can be tiled which is particularly useful for creating backgrounds that work on a variety of screen sizes and dimensions. I thought it would be an good idea to see if I could apply matrix transformations to the bitmap, while keeping it a reusable object in the Android view hierarchy. Doing so would allow you to create some interesting animations and effects. One such technique would be to apply a translation to the bitmap matrix, shifting it along either of the axis’ and creating the illusion of an infinitely scrolling background.February 25 2011
Interfuser: Android, Reflections with Bitmaps
Lots of applications use the effect of creating a reflection of the original image, one of those being the coverflow view on the iphone. It's a nice bit of presentation polish to add to your UI, when you know how is not difficult to implement.January 04 2011
Android - Processing
The primary goal of this project is to make it foolishly easy to create Android apps using the Processing API.August 07 2010
July 17 2010
10 tips for designing mobile websites
Not bad advice for mobile applications, either.10 tips for designing mobile websites
Not bad advice for mobile applications, either.July 08 2010
How To Bypass Google Activation On Android Devices
Android devices needs registration before satrting up which requires network connection. Well xda user mr.tenuki has found out a way to skip this and start Android devices without registration. He explains a very simple process to do that. All which involves is simply pressing all 4 corners of the screen one after the other clockwise and done, you’re on your home screen. Start from the top left corner, then top right, bottom right, and then bottom left.How To Bypass Google Activation On Android Devices
Android devices needs registration before satrting up which requires network connection. Well xda user mr.tenuki has found out a way to skip this and start Android devices without registration. He explains a very simple process to do that. All which involves is simply pressing all 4 corners of the screen one after the other clockwise and done, you’re on your home screen. Start from the top left corner, then top right, bottom right, and then bottom left.June 28 2010
Crash in glDrawElements() using VBOs just after glBufferData()
The OpenGL wrappers take the data pointer passed in by those sorts ofmethods using native GetDirectBufferAddress of the corresponding type
(int or float) and pass that pointer into the native gl method. That
only works correctly if it's a direct buffer.
I just checked android_opengl_GLES10.cpp and GLES11.cpp and found that
glTexImage2D and glBufferData use the same getPointer() method to get
to the data. That means that behavior should be the same.
Ultimately, the data comes from:
*array = (jarray) _env->CallStaticObjectMethod(nioAccessClass,
getBaseArrayID, buffer);
offset = _env->CallStaticIntMethod(nioAccessClass,
getBaseArrayOffsetID, buffer);
data = _env->GetPrimitiveArrayCritical(*array, (jboolean *)
0);
return (void *) ((char *) data + offset);
then the gl method is called, then the pointer is released.
Always use direct buffers when working with any aspect of OpenGL on
Android.
Do VBOs really improve performance? Really?
VBOs are designed to reduce bus bandwidth usage for static geometry.If you're not pushing too much across that bus (as in the case of
quads or very few, very low poly objects), they won't do much. If, on
the other hand, you're actually running static scenes that are moving
5k polys per draw eg (7.5k verts, 7.5k normals, 15k indices, 7.5k UVs)
= 270Kb, you will most likely see some sort of improvement, especially
on chips like the qualcomms as they have fairly slow transfers. Just
think, 270Kb @30fps = 8.1Mb of memory copying per second you're saving
using VBOs.
OpenGL poor performance with textures?
To summarize:- use mipmapping for scaled down quads, nearest filtering for pixel
perfect screen aligned quads
- use 16-bit argb/rgb textures instead of 32-bit argb textures
That's all you can do. The PowerVR in the droid is a beast and will
happily transform as many vertices as you throw at it, i have yet to
encounter an issue with that rendering stage. Fetching texels is
expensive though so avoid it at all cost :)
June 04 2010
too much chrome
the Android logcat utility is crushed into a tiny slit on my laptop when run in Eclipse. Typical of Eclipse, lots of wasted space.
the Android logcat utility is crushed into a tiny slit on my laptop when run in Eclipse. Typical of Eclipse, lots of wasted space.
April 26 2010
Taking screenshots with Android
There are lots of tutorials around the 'net to take screenshots using DDMS. Unfortunately using DDMS makes it difficult to take automated screenshots for testing purposes.Fortunately Android uses reasonably-standard Unix conventions for access to devices, so you can read the data from /dev/graphics/fb0. The full procedure for getting a screenshot is:
adb pull /dev/graphics/fb0 fb0
python rgb565torgb888.py < fb0 > fb0.888
convert -depth 8 -size 320x480 RGB:fb0.888 fb0.png
Imagemagick (and thus convert) doesn't seem to deal with the 16-bit colour (565) image format, so I wrote a program to expand the data to 24-bit (888) before passing it to convert. You can use mine (rgb565torgb888.py, 311 bytes) or any other one you may find out there. :)
February 01 2010
git + eclipse = AnyEdit
The battle of whitespace continues, this time on the Android front.
“AnyEdit allows you automatically remove trailing whitespaces and/or perform tabs<->spaces conversion on a “save” action in all text- based Eclipse editors. It can automatically create a new line at the end of the file if the last line was not terminated by a new line.”
I had to install manually, couldn’t get Eclipse software update to work behind our firewall. Damn, I hate Eclipse almost as much as I loathe being stuck behind a corporate firewall.
Older posts are this way
If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.
