projects/syncslides/app/src/main/java/io/v/android/apps/syncslides/PresentationActivity.java
/**
     * Starts a live presentation.  The presentation will be advertised to other
     * devices as long as this activity is alive.
     */
Starts a live presentation.  The presentation will be advertised to other
devices as long as this activity is alive.
Starts a live presentation . The presentation will be advertised to other devices as long as this activity is alive .
public void startPresentation() {
        DB db = DB.Singleton.get(getApplicationContext());
        db.createPresentation(mDeck.getId(), new DB.Callback<DB.CreatePresentationResult>() {
            @Override
            public void done(DB.CreatePresentationResult result) {
                Log.i(TAG, "Started presentation");
                Toast.makeText(getApplicationContext(), "Started presentation",
                        Toast.LENGTH_SHORT).show();
                mPresentationId = result.presentationId;
                mSyncgroupName = result.syncgroupName;
                startAdvertising();
                navigateToSlide(0);
            }
        });
        mRole = Role.PRESENTER;
    }
public void startPresentation ( ) { DB db = DB . Singleton . get ( getApplicationContext ( ) ) ; db . createPresentation ( mDeck . getId ( ) , new DB . Callback < DB . CreatePresentationResult > ( ) { @ Override public void done ( DB . CreatePresentationResult result ) { Log . i ( TAG , "Started presentation" ) ; Toast . makeText ( getApplicationContext ( ) , "Started presentation" , Toast . LENGTH_SHORT ) . show ( ) ; mPresentationId = result . presentationId ; mSyncgroupName = result . syncgroupName ; startAdvertising ( ) ; navigateToSlide ( 0 ) ; } } ) ; mRole = Role . PRESENTER ; }
Starts a live presentation.
Starts a live presentation .