android studio - Change source code for video location -


i purchase source code quiz app, doing no experience. app allows video played, requires "tap play", video play on same screen question. how change , can change in line of code? new this, if need additional info, let me know.

 else if(question.questiontype == 3) {         msmalllayout.setvisibility(view.visible);         mtaptext.settext(r.string.tap_to_play);         file file = new file(getexternalcachedir() + "/delete" + mcurrentquestion);         if(!file.exists()) {             msmallimage.setimageuri(uri.fromfile(file));         } else {             msmallimage.setimageresource(r.drawable.videooverlay);  } 

then need open using android edition platform, code like: java:

    public void onclickbtn(view v)     {         toast.maketext(this, "lets try").show();     }  } 

button[onclick function]:

<button     android:id="@+id/button1"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/btn"     android:onclick="onclickbtn" />  </linearlayout> 

and video example:

playing video in android

// additional info: android manifest android xml execute java code, work on need check android dev's page , check every function, function ready, need set righty. thank you!


Comments