Android Question Compiling generated Java code. Error

Discussion in 'Android Questions' started by MarcelloCSI, May 5, 2015.

  1. MarcelloCSI

    MarcelloCSI Active Member Licensed 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.
    [​IMG]

    I discovered the code of the error in Java file.
    Code:
    @Override
        
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            
    if (isFirst) {
                processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), 
    nullnull"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.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    It seems like B4A is misconfigured. Uninstall it and reinstall it in a new folder (to make sure that there are no old libraries kept).
     
    MarcelloCSI likes this.
  3. MarcelloCSI

    MarcelloCSI Active Member Licensed User

    It Works! Thank you very much Erel :D
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice