android - How to start chat screen in Skype from my app? -


i need open skype chat screen skype id app. saw similar questions

open chat screen skype other app

http://developer.skype.com/skype-uris/skype-uri-tutorial-android

the above tutorial explains how open app.but can't find out how pass skype id , start chat screen.

is there way or not ? if there way how ?

edit

i followed below solution.it opens skype app not loading chat screen.can tell me did mistake ?

   public class extends mainactivity implements android.view.view.onclicklistener         {             button fb;             static string tag = "remote it";     string myskypeuri = "skype:aruzev?chat";              @override             protected void oncreate(bundle savedinstancestate)             {                 // todo auto-generated method stub                 super.oncreate(savedinstancestate);                 layoutinflater inflater = (layoutinflater) this.getsystemservice(context.layout_inflater_service);                 view contentview = inflater.inflate(r.layout.about, null, false);                 mdrawer.addview(contentview, 0);                 fb = (button) contentview.findviewbyid(r.id.fb);                 fb.setonclicklistener(this);             }                public void onclick(view v)             { // todo auto-generated method stub                 if (v.getid() == r.id.fb)                 {               initiateskypeuri(getapplicationcontext(), myskypeuri));                 }             }     public void initiateskypeuri(context mycontext, string myskypeuri)         {              // make sure skype android client installed             if (!isskypeclientinstalled(mycontext))             {                 gotomarket(mycontext);                 return;             }              // create intent our skype uri             uri skypeuri = uri.parse(myskypeuri);             intent myintent = new intent(intent.action_view, skypeuri);              // restrict intent being handled skype android client             //             myintent.setcomponent(new componentname("com.skype.raider", "com.skype.raider.main"));             myintent.setflags(intent.flag_activity_new_task);              // initiate intent. should never fail since we've             // established             // presence of handler (although there extremely minute window             //             // handler can go away...)             startactivity(myintent);             return;         }          public void gotomarket(context mycontext)         {             uri marketuri = uri.parse("market://details?id=com.skype.raider");             intent myintent = new intent(intent.action_view, marketuri);             myintent.setflags(intent.flag_activity_new_task);             mycontext.startactivity(myintent);              return;         }          public boolean isskypeclientinstalled(context mycontext)         {             packagemanager mypackagemgr = mycontext.getpackagemanager();             try             {                 mypackagemgr.getpackageinfo("com.skype.raider", packagemanager.get_activities);             }             catch (packagemanager.namenotfoundexception e)             {                 return (false);             }             return (true);         }          } 

your variable myskypeuri should string , if want start chat string should like:

skype:<insert skypename>?chat 

the code parse string , embed in intent.

allen smith program manager skype developer / skype tx lync partner engineering


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -