package com.sometrik.framework;

import android.content.Context;
import android.view.SurfaceView;

public class NativeSurface extends SurfaceView implements NativeMessageHandler {
  
  private Context context;
  private int id;
  
  public NativeSurface(Context context) {
    super(context);
    this.context = context;
  }

  @Override
  public void handleMessage(NativeMessage message) {
    
    switch (message.getMessage()){
    case SHOW_VIEW:
      showView();
      break;
    default:
      System.out.println("Message couldn't been handled by NativeSurface");
      break;
    }
  }

  @Override
  public void showView() {
    FrameWork frame = (FrameWork)context;
    frame.setContentView(this);
  }

  @Override
  public int getElementId() {
    return id;
  }

}

@@ -215,27 +215,8 @@
 t;%0D%0A
-  private int id;%0D%0A
   %0D%0A
@@ -776,18 +776,23 @@
  return 
-id
+getId()
 ;%0D%0A  %7D%0D%0A

Correct getElementId return