Announcement

Collapse
No announcement yet.

how to solve error:class,interface and enum expected in android studio?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to solve error:class,interface and enum expected in android studio?

    here is codes shows error:class,interface and enum expected-------------------------------


    HTML Code:
    import com.apptracker.android.listener.AppModuleListener;
    import com.apptracker.android.track.AppTracker;
    // Leadbolt SDK imports
     
    public class MainActivity extends Activity {
           
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
     
            if(savedInstanceState == null) {
                // Initialize Leadbolt SDK with your api key
                AppTracker.startSession(getApplicationContext(),"YOUR_APP_API_KEY",AppTracker.ENABLE_AUTO_CACHE);
            }
            // cache Leadbolt Ad without showing it
            AppTracker.loadModuleToCache(getApplicationContext(),"inapp");
        }
     
        public void gameOver() {
            // call this when you want to display the Leadbolt Interstitial
            if(AppTracker.isAdReady("inapp")) {
                    AppTracker.loadModule(getApplicationContext(),"inapp");
            }
        }
    }
Working...
X