package com.sometrik.framework;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.media.SoundPool;
import android.net.Uri;
import android.opengl.GLSurfaceView;
import android.os.Handler;
import android.os.Message;
import android.text.format.Time;

public class MyGLSurfaceView extends GLSurfaceView {

  public Settings settings;
  private Context context;
  public Handler sHandler;
  private MyGLRenderer renderer;
  FrameWork frame;
  AssetManager assetManager;
  Bitmap nativeCanvasBitmap;
  Bitmap image1;
  Paint mPaint;
  Path mPath;
  SharedPreferences prefs;
  SharedPreferences.Editor editor;
  
  public MyGLSurfaceView(Context context, MyGLRenderer renderer) {
    super(context);
    this.context = context;
    this.renderer = renderer;
    frame = (FrameWork) context;
    
    // Create an OpenGL ES 2.0 context
    setEGLContextClientVersion(2);

    // Set the Renderer for drawing on the GLSurfaceView
    setRenderer(renderer);
    setRenderMode(RENDERMODE_CONTINUOUSLY);

    
    System.out.println("SurfaceCreated end");

  }

  protected void onSizeChanged(int w, int h, int oldw, int oldh) {
    super.onSizeChanged(w, h, oldw, oldh);

    System.out.println("MyView onsizechanged called");
    setWillNotDraw(false);
  }

  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
  }


}

@@ -30,555 +30,81 @@
 k;%0A%0A
-import java.io.IOException;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0Aimport java.text.DecimalFormat;%0Aimport java.text.NumberFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport android.app.AlertDialog;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0Aimport android.content.SharedPreferences;%0Aimport android.content.res.AssetFileDescriptor
+%0Aimport android.content.Context;%0Aimport android.content.SharedPreferences
 ;%0Aim
@@ -210,39 +210,8 @@
 as;%0A
-import android.graphics.Color;%0A
 impo
@@ -271,64 +271,8 @@
 th;%0A
-import android.media.SoundPool;%0Aimport android.net.Uri;%0A
 impo
@@ -334,68 +334,8 @@
 ler;
-%0Aimport android.os.Message;%0Aimport android.text.format.Time;
 %0A%0Apu
@@ -390,36 +390,8 @@
  %7B%0A%0A
-  public Settings settings;%0A
   pr
@@ -475,16 +475,24 @@
 erer;%0A  
+private 
 FrameWor
@@ -502,16 +502,24 @@
 rame;%0A  
+private 
 AssetMan
@@ -535,24 +535,32 @@
 tManager;%0A  
+private 
 Bitmap nativ
@@ -576,16 +576,24 @@
 tmap;%0A  
+private 
 Bitmap i
@@ -601,16 +601,24 @@
 age1;%0A  
+private 
 Paint mP
@@ -625,16 +625,24 @@
 aint;%0A  
+private 
 Path mPa
@@ -643,24 +643,32 @@
 th mPath;%0A  
+private 
 SharedPrefer
@@ -682,16 +682,24 @@
 refs;%0A  
+private 
 SharedPr
@@ -723,16 +723,38 @@
 editor;%0A
+  private int viewId;%0A
   %0A  pub
@@ -1473,12 +1473,64 @@
 s);%0A  %7D%0A
+  %0A  public int getViewId()%7B%0A    return viewId;%0A  %7D%0A
 %0A%0A%7D%0A

Add viewId to MyGLSurfaceView