OpenGL EGL Config_android 2.0
In Android 1.1 to Androidd 1.6 EGL configuraitons were being read/sorted worng and thus:
nt[] configSpec = {
EGL10.EGL_RED_SIZE, 5,
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5,
EGL10.EGL_DEPTH_SIZE, 16,
EGL10.EGL_NONE
};
would work on Android 1.1 through Android 1.6. However, in Andoroid 2.0 you have to use:
nt[] configSpec = {
EGL10.EGL_RED_SIZE, 5,
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5,
EGL10.EGL_DEPTH_SIZE, 16,
EGL10.EGL_DONT_CARE
};
as the higher config beynd 565 was being sorted read first hence the error.
Sense UI, Rachael UI, and MotoBlur UI
I am at a point with certain stealth Android project development that I need to test certain issues and items on Sense UI, Rachael UI, and MotoBlur UI. There still is no SDK-Emulator add ons for said UIs.
Yeah I know, I could download one of those underground roms and copy/paste the images into a created avd to get into an emulator. But do I really want to do so? Oh, you did not know you can copy paste a rom image into a created AVD? Tricks of the trade, tricks of the trade…
Android-2.0 LockIN?
There are a lot of site predicting the sky is falling right now to get hit counts. Relax and listen. Here is what I know.
Certain items could not be released due to having the marketing term Droid in them until after November 6 or on November 6. That is not to say that those items will suddenly appear on November 7th. Source code will have its own time schedule as will the OEMs schedules for updating devices to Android 2.0.
Google was able to get the largest Mobile Operator in the USA to sign up with Android, I assure you that it did not involve the implied lock in some sites are suggesting. Be patient as you have a few more days and then it will become somewhat clear.
Android 2.1 and 2.5
Looks like Android 2.1 is not Flan as I reported on Monday. I have received notices on OpenGL bugs that I track that are now reviewed by Google engineers which is a step in the process of being released which probably means that Android 2.1 is an incremental release and not Flan.
Since no Android site is reporting visits by devices with a user agent header fo Androidi 2.5 that would mean that Flan is not for release at year end but early first or second quarter 2010.
ForceClosed-Stackoverflow clone for Android
ForceClose is stackoverflow clone for android programmers. join, the fun in getting your programming question answered or answer someone else’s programming question concerning Android.
Flan is Coming
Did you wonder why Android 2.0 source might be delayed being dropped to the kernel.org? it might be because Google Engineers are already focusing on pushing out Android 2.1 before year end.
There are already reports of Android 2.1 showing up in android site visitor logs.How would you like Andord 2.1 before New Yeas 2010?
Debug Tricks
A debug trick
public stackTraceOrHeapDumpConstructor(String LOG_TAG, String someName) {
boolean mLoggable = Log.isLoggable(LOG_TAG, Log.DEBUG);
if(mLoggable=true){
the stacktrace(someName) or heap dump here
} else {
}
}
Now your stacktraces and Heapdump statements are not enabled if debugging is off.
Thank You A Grumiro-MapView-Overlay-Manager
A word of thanks to A Grumiro as one of th eGoogleCode projects he starred was the MapView Overlay Manager which I have been searching for for one my Android projects. Features lazy loading of overlay markers and gestures.
OpenGL Debugging
Often you have to trun off Log.* statements, Debug.* statements, etc so I sue a simple System.out.print set-up:
public class SystemOutPrint {
/**
*
* @param str
*/
public SystemOutPrint(String str){
System.out.print(str);
}
/**
*
* @param obj
*/
public SystemOutPrint(Object obj) {
System.out.print(obj);
}
/**
*
* @param obj
* @param str
*/
public SystemOutPrint(Object obj, String str) {
System.out.print(obj);
System.out.print(str);
}
Android FastCoding
Now that with the release of Android 2.0 we will be targeting different versions for a bit its time to embrace code generation. This is the code generation I am building up:
What you are seeing is my use of Code2Code plugin to generate a base of generators for class templates. You do not have to know that much template engine stuff as it auto generates most o fit right from the java class file you create. Than to enable copy the generators you need ot project root and change one line of configuration and you all set to go.
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=028735b8-8145-4b42-8d38-e17c642ab3dd)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=c13cca7a-bc7a-4241-b4ed-4e2ca67ffbb6)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=42accb74-5cd6-4181-8f18-689841fd9bdc)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=e0ae9b87-2908-4104-8dcf-620867a63bfa)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=f1c0ce5c-5050-4d44-b051-7cb8c9b06757)

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=33b8be02-6811-45f5-a450-668a560ee3ea)


