<?php
$path ="indus-img";
$contents = scandir($path);
$new_src=$contents[2];
$count=count($contents);
echo $new_src;
echo $count;
?>
<?php
The Android architecture has the Main Thread AKA UI thread, which updates the UI after every 16ms frame.