I am a novice programmer on android studio, I want to know why does the
delay function does an error on handler.postDelayed (new Runnable(){
do I have to import any library? and what is the shortcut key for :@override...
" whenever I does a code. thanks.
heres the code:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Handler handler = new Handler();
handler.postDelayed (new Runnable(){
@.
public void run() {
msg();
}
},500);
}