can Anybody please give me exact solution of this problem programmaticaly i.e. when i change the device time it's taking device time but i want that it should take actual time from internet. i am using this code...
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
String date = dateFormat.format(new Date(System.currentTimeMillis()));
i tried this also
final Calendar c = Calendar.getInstance();
year = c.get(Calendar.YEAR);
month = c.get(Calendar.MONTH);
day = c.get(Calendar.DAY_OF_MONTH);
hour = c.get(Calendar.HOUR_OF_DAY);
minute = c.get(Calendar.MINUTE);
int myfrmt =(c.get(Calendar.YEAR) + c.get(Calendar.MONTH) + c.get(Calendar.DAY_OF_MONTH) + c.get(Calendar.HOUR_OF_DAY)+ c.get(Calendar.MINUTE));
String satyam=Integer.toString(myfrmt);`
but in both the case i got device time .... not real time