protected Void doInBackground(Void... params) { try { doc = Jsoup.connect(url).get(); linksOnPage = doc.select("h2.filmibeat-myshow-movie > a[href][title]"); } catch (Exception e){e.printStackTrace();} return null; } @Override protected void onPostExecute(Void aVoid) { //Log.e("Value", txt); for(Element link : linksOnPage) { //Log.e("fsdsd", link.attr("title")); if (link.attr("title").contains(txt)) { final Toast toast = Toast.makeText(MainActivity.this,"YO",Toast.LENGTH_SHORT); toast.show(); Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { toast.cancel(); } },1000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)