ali_khodayar
شنبه 08 فروردین 1394, 08:23 صبح
با سلام و تبریک سال جدید خدمت دوستان عزیز.
کسی اطلاعی داره که تفاوت این دو کد در چیست؟ آیا تفاوتی دارند و یا خیر؟ اگر هست لطفأ توضیحی در این خصوص بفرمایید. ممنون
Intent serviceIntent = new Intent(); serviceIntent.setAction("ir.saa.samin.utils.GPSservice");
startService(serviceIntent);
و
startService(new Intent(getBaseContext(), GPSservice.class));
کسی اطلاعی داره که تفاوت این دو کد در چیست؟ آیا تفاوتی دارند و یا خیر؟ اگر هست لطفأ توضیحی در این خصوص بفرمایید. ممنون
Intent serviceIntent = new Intent(); serviceIntent.setAction("ir.saa.samin.utils.GPSservice");
startService(serviceIntent);
و
startService(new Intent(getBaseContext(), GPSservice.class));