Posts

java - Spring Integration Inbound Email -

i have spring application ,i need add functionality of receiving emails our email server application, googled , find out spring inbound email adapter way it. referred below link. http://blog.solidcraft.eu/2011/04/read-emails-from-imap-with-spring.html . if use above code gives 890 email response. want email send or outlook, whenever user send new email mail needs come in system.i not know, how that. can give me prefect example of mail inbound-channel-adapter. save day. please help.

Selenium WebDriver: How to handle prompt box/Authetication on a website just appear after entering URL. Event website is not loaded -

selenium webdriver: how handle prompt box on website appear after entering url. event website not loaded. browser renedering load website website asking authetication. pfa enter image description here

android - Communicate with default Email client (AIDL) -

is possible add existing email account default android emaill app application? in repository can see aidl files here , can't see method addaccount . also, every release aidl files little bit different. can somehow add account email client? or there application allows developer using aidl ? has support pop, imap , eas(activesync).

VB6 - Send and Receive SMS Messages without GSM Modem (To use Android Mobile Phone/Device as GSM Modem?) -

there requirement field force send sms messages data employee code, time-in, time-out, etc. the sms message received needs parsed , saved database create reports. basically, have no access gsm modem nor able procure 1 in time project. query : can android phone substitute this? (gsm modem) what needed : create vb6 application capture , parse sms message database table. as, send sms message field force personnel confirmation sms received or if there errors on format. sounds you're looking sms gateway use vb6. first hit in google: http://www.vianett.com/en/developers/api-code-examples/vb-6 first hit sms gateway free: http://smstools3.kekekasvi.com/ also, ask admins if there's gateway in use @ company, use 1 nagios or zabbix or alike.

Android Studio: Buildtools 24.0.1 requires Java 1.8 or above. -

Image
i'm trying setup android dev environment on mac. my starting point java 1.7 believe. installed android studio , opened project i'd build. , says: error:buildtools 24.0.1 requires java 1.8 or above. current jdk version 1.7. so went , download java 1.8 u101 , installed that. no luck. removed android studio , re-installed , re-installed sdk , still no luck. my java control pannel says: java 8 update 101. output of /usr/bin/java : java version "1.8.0_101" java(tm) se runtime environment (build 1.8.0_101-b13) java hotspot(tm) 64-bit server vm (build 25.101-b13, mixed mode) output of /usr/bin/javac javac 1.8.0_101 what have done wrong? make sure jdk version through project structure you can add in gradle section compileoptions { sourcecompatibility javaversion.version_1_8 targetcompatibility javaversion.version_1_8 }

android - PagerAdapter returns wrong position for Multi View Pager -

Image
i implementing caurosel view pager adjusting page margin. able implement below but facing problem pageradapter @override public object instantiateitem(viewgroup container, int position) { view view= inflater.inflate(r.layout.mylayout, null); // button btn=(button)view.findviewbyid(r.id.button1); btn.settag(position); btn.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { log.e("position",v.gettag()+""); } } return imgview; } though setting tags, able correct position center page (selected item), when click on left side page's button returns wrong value. i have searched issue lot, not find solution far. looking help. thanks you can use recyclerview linearlayoutmanager layoutmanager = ... recyclerview.setlayoutmanager(layoutmanager); //when want horizontal layoutmanager.setorientation(context,linearlayoutmanager.horizontal,false); //whe...

calendar - How to set an Alarm in an Android App based on a server's current time? -

i building android application sets alarm based on application's server time. by comparing gmt , application server time trying create alarm. for example: gmt = 10.30 , server time = 4.30 am, need set alarm after 1hour/2hour server time. example code: calendar calender=calendar.getinstance(timezone.gettimezone("gmt")); calender.set(calendar.hour,-6); // server running time less 6 hours of gmt time. calender.set(calendar.minute,0); calender.set(calendar.second,0); can has idea on how set alarm how set alarm? from understand, here need do. get calendar object gmt timezone. get current time. set current time calendar object. finally, add 1 hour calendar object. here how can achieve this: calendar calendar = calendar.getinstance(timezone.gettimezone("gmt")); long currenttime = system.currenttimemillis(); calendar.settimeinmillis(currenttime); calendar.add(calendar.hour, 1); hope helps!