I have a problem calling my method in a service, my getambil_jmlgangguan() method.
Detailed code is here:
public class GetCountDataGangguanService extends Service { public String JUMLAH_GANGGUAN =""; public static final String TAG = "MyServiceTag1"; GlobalKoneksi konek_url = new GlobalKoneksi(); GetJmlGangguanFunction jmlGangguanFUnctions = new GetJmlGangguanFunction(); private static String KEY_SUCCESS = "success"; private static String KEY_JUMLAH_DATA = "jumlah"; JSONArray jml_data_json = null;
How can I call the getambil_jmlgangguan() method in another action, for example, MainActivity and periodically get the result of JUMLAH_GANGGUAN .
source share