Notepadv2 - please update the tutorials

by sunil » Thu, 08 May 2008 15:56:27 GMT

Sponsored Links
Maybe it an error on my side, but I think the Notepadv2 tutorial is
not upto date. I am not sure if the following is correct:-

it should be deleteRow(..) and moreover it is not mDb..()  but

also in the OnListItemClick(..) , we do not need the Cursor.

Please update me on correctness of the tutorial.



Notepadv2 - please update the tutorials

by sunil » Fri, 09 May 2008 13:39:35 GMT

 It looks like i need to create this NotesdbAdaptor class before I can
do anything with the tutorial. It is definitely not shipped with the
tutorial bundle. Also the Notepadv1/2solution does not refer to this
class at all.
thanks for the help , but i am not convinced why I need to cut and
paste this file to get things going. Shouldn't it be part of the
tutorial since the tutorial exercise-1 asks reader to review this
file. I definitely do not see this NotesdbAdaptor file in the src
directory of the tutorial. I really want this mystry to resolved.
thanks for the help.


Sponsored Links

Notepadv2 - please update the tutorials

by sunil » Fri, 09 May 2008 14:07:40 GMT

 The mystery resolved. I was having an old tutorial ( dated feb) which
didn't have this NotesdbAdaptor file.I downloaded the latest one.



Other Threads

1. Blending between views


I have a layout with two fullscreen views on top of each other. The
bottom view just shows a .png picture. The top view shows some OpenGL
rendered graphics. When some translucent objects on the top view moves
over a non-black area of the bottom view, blending is real bad
- example1: blue in bottom view and translucent yellow/red (fire) in
top view, turns out to be shiny green!?!)
- example2: gray in bottom view and translucent yellow/red (fire) in
top view, also turns out to be shiny green!?!)
How can I improve???
Blending internally in the top view (OpenGL) works fine.

Selected code:

Bottom view:
  private Bitmap mBackgroundImage;
  private SurfaceHolder mSurfaceHolder;
In view constructor:
  mSurfaceHolder = getHolder();
  mBackgroundImage = BitmapFactory.decodeResource(res,
In doDraw
  Canvas c = mSurfaceHolder.lockCanvas(null);
  c.drawBitmap(mBackgroundImage, 0, 0, null);

Top view:
  EGL10 mEgl;
  EGLDisplay mEglDisplay;
  EGLSurface mEglSurface;
  EGLConfig mEglConfig;
  EGLContext mEglContext;
  int[] configSpec = {
                        EGL10.EGL_RED_SIZE,      8,
                        EGL10.EGL_GREEN_SIZE,    8,
                        EGL10.EGL_BLUE_SIZE,     8,
                        EGL10.EGL_ALPHA_SIZE,    8,
                        EGL10.EGL_DEPTH_SIZE,   16,
  mEgl = (EGL10) EGLContext.getEGL();
  mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
  int[] version = new int[2];
  mEgl.eglInitialize(mEglDisplay, version);
  EGLConfig[] configs = new EGLConfig[1];
  int[] num_config = new int[1];
  mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1,
  mEglConfig = configs[0];
  mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig,
  mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig,
holder, null);
  mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
In doDraw:
  < do the OpenGL drawing >
  mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);


2. How to use built in email application to send email from my application?

Thanks peli
Do u have some sample code?tht will of great help for me. I am complete
Waiting for ur reply


3. light xmlrpc clent side lbrary

4. No love for public transit

5. London Google Mobile Apps jobs...

6. Six kinds of Unofficial Phone Review

7. Use desktop network when connected via USB