Hi, I have managed to give internet permission in my manifest file (thanks for the point) and looks like now it could find the host but I am getting the following error,
----------------- Error loading resource file: challenge.bin java.lang.NullPointerException at java.io.FilterInputStream.available(FilterInputStream.java:63) at ymsg.network.ChallengeResponseV10.<clinit> (ChallengeResponseV10.java:71) at ymsg.network.Session.receiveAuth(Session.java:1109) at ymsg.network.Session$InputThread.process(Session.java:2314) at ymsg.netwrok.Session$InputThread.run(Session.java:2285) Input Exception Thrown. ------------------------ But I have put the challenge.bin at the right place for picking up (it is part of jYMSG library). Then to try I have placed the chanllenge.bin in res/raw folder of my android project, even then it could not pick this resource file. I think I am very close to get successfully login but the above problem should be solved though. Please help me or give some clue on how to solve this problem. Thanks On Feb 6, 11:32 am, Maddy <[email protected]> wrote: > Hi, > > Thanks for your response. No I have not done anything for giving > permissions in manifest file. > > Could you please let me know how we would do that? > > Thank you very much in avance for your help. > > On Feb 6, 10:26 am, Mallikharjuna Reddy Deva <[email protected]> > wrote: > > > > > Hi, > > > My name is Mallikharjuna.I am trying to implement Yahoo Instant > > Messengerin Android platform. I have downloaded jYMSG JAR > > file and used that jar file with my sample application in Android. > > > I have followed the following procedure for login > > > --------------------------------- > > * private* *void* login() { > > > yahooMessengerSession = *new* Session(); > > > mySessionListener = *new* MySessionListener(*this*); > > > yahooMessengerSession.addSessionListener(mySessionListener); > > > String usrName = userName.getText().toString(); > > > String pword = password.getText().toString(); > > > * try* > > > { > > > * if*(usrName.equals(*null*) || pword.equals(*null*)){ > > > Log.*e*("YahooClient", "User name or password empty"); > > > } *else* { > > > Log.*i*("YahooClient", "Trying to login"); > > > yahooMessengerSession.login(usrName, pword); > > > } > > > } *catch* (IOException e1) { > > > Log.*e*("YahooClient", "login: IOException"); > > > e1.printStackTrace();} > > } > > > --------------------------------- > > > But I am getting following exception, > > > ------------------------------- > > java.net.UnknownHostException: scs.msg.yahoo.com - scs.msg.yahoo.com > > ------------------------------- > > > with following stack trace: > > > -------------------------------------- > > java.net <http://java.net.in/> > > .InetAddress.lookupHostByName(InetAddress.java:457) > > java.net <http://java.net.inetaddress.ge/> > > .InetAddress.getByName(InetAddress.java:287) > > java.net <http://java.net.so/>.Socket.<init> (Socket.java:140) > > org.openymsg.network.DirectConnectionHandler.open(DirectConnectionHandler.java:95) > > org.openymsg.network.Session.openSession(Session.java:2865) > > org.openymsg.network.Session.login(Session.java:292) > > -------------------------------------- > > > If use this library in simple Java application in PC, I could successfully > > login and send messages to other yahoo accounts. > > I could successfully ping scs.msg.yahoo.com > > > The above two shows that there there is no problem with either yahoo server > > or jYMSG library. > > It is having problems in using in Android, I guess. > > > I am absolutely struck with this and I could not make any progress from > > here. Could you please help out in solving this problem? > > > I greatly appreciate your help. > > > Thanks- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
