Fetch page source code. Put this inside a Service. :
HttpClient httpclient = new DefaultHttpClient(); // Create HTTP Client
HttpGet httpget = new HttpGet("http://yoururl.com"); // Set the action you want to do
HttpResponse response = httpclient.execute(httpget); // Executeit
HttpEntity entity = response.getEntity();
InputStream is = entity.getContent(); // Create an InputStream with the response
BufferedReader reader = new BufferedReader(new InputStreamReader(is, "iso-8859-1"), 8);
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) // Read line by line
sb.append(line + "\n");
String resString = sb.toString(); // Result is here
is.close(); // Close
Then :
String aospString = "<h3>Tags</h3><ul class=\"ref-list\"><li><a href=\"/platform/build/+/android-4.4.4_r1\">android-4.4.4_r1</a>";
if(!resString.contains(aospString)) {
Log.d(LOGTAG, "ASOP Unavailable");
}
You can then use the AlarmManager to schedule the execution in a fixed frequency. Here.