Android Question Compiling generated Java code. Error

QtechLab

Active Member
Licensed User
Longtime User
Hello everyone,
I'm Marcello, an Italian guy.
I'm really new on B4A uses.

I'm using trial version in order to learn the environment and buy a full version in next days.

Today i've imported source files from a friend project, and i'm having compiling trouble.
Here there's a screenshot of the error.


I discovered the code of the error in Java file.
B4X:
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (isFirst) {
            processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), null, null, "b4a.example", "b4a.example.automazioni");
            processBA.loadHtSubs(this.getClass());
            float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
            BALayout.setDeviceScale(deviceScale);
           
        }
        else if (previousOne != null) {
            Activity p = previousOne.get();
            if (p != null && p != this) {
                BA.LogInfo("Killing previous instance (automazioni).");
                p.finish();
            }
        }
        processBA.runHook("oncreate", this, null);
        if (!includeTitle) {
            this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
        }
        if (fullScreen) {
            getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,  
                    android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
        mostCurrent = this;
        processBA.sharedProcessBA.activityBA = null;
        layout = new BALayout(this);
        setContentView(layout);
        afterFirstLayout = false;
        BA.handler.postDelayed(new WaitForLayout(), 5);

    }


Please help me to solve this problem!

Thanks in advance.
 

Attachments

  • err01.JPG
    err01.JPG
    54.3 KB · Views: 237
Top