Android Studio Phase 38th-hios jump protocol resolves URI Jump native page and pass parameters
Source: Internet
Author: User
<span id="Label3"></p><p><p>The code has been sorted out, and the effect is as Follows:</p></p><p><p>Figure 1:<br></p></p><p><p>650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/97/AD/wKiom1kxGIyR3lhcAAA0bubLFLo518.png "style=" float : none; "title=" 1111.png "alt=" wkiom1kxgiyr3lhcaaa0bublflo518.png "/></p></p><p><p>Figure 2:<br></p></p><p><p>650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/97/AF/wKioL1kxGIzRgdYbAAANU0ZGRk4106.png "style=" float : none; "title=" 2222.png "alt=" wkiol1kxgizrgdybaaanu0zgrk4106.png "/></p></p><p><p>Figure 3:<br></p></p><p><p>650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/97/AD/wKiom1kxGI3jC32fAAJtrcg6lpI385.png "style=" width : 600px;height:353px; "title=" 3333333333.png "width=" "height=" 353 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1kxgi3jc32faajtrcg6lpi385.png "/></p></p><p><p><br></p></p><p><p><br></p></p><p><p>Address: Https://github.com/geeklx/MyApplication/tree/master/p022_hois</p></p><p><p>Hiosregister:</p></p><pre class="brush:java;toolbar:false"><pre class="brush:java;toolbar:false">Package Com.example.p022_hois.hioscommon;import Com.example.p022_hois.hoisjump.hiosalias;public Class HiosRegister {private static final String pkg_sfnation = "com.example.p022_hois"; public static void Load () {hiosalias.register ("jump.twomainactivity", pkg_sfnation, ". Activity. Twomainactivity "); Hiosalias.register ("jump.webviewmainactivity", pkg_sfnation, ". Activity. Webviewmainactivity "); }}</pre></pre><p><p>Method 1:</p></p><pre class="brush:java;toolbar:false"><pre class="brush:java;toolbar:false">Hios activity Jump Adlistitem Adlistitem = new Adlistitem () adlistitem.setaid ("1"); adlistitem.setbanner ("imgurl"); Adlistitem.seturl ("hios://jump.twomainactivity"); Hioshelper.click (mainactivity.this, twomainactivity.class, adlistitem);//the First one is the current activity the second is fragment</pre></pre><p><p>Method 2:<br></p></p><pre class="brush:java;toolbar:false"><pre class="brush:java;toolbar:false">Hios WebView Jump Adlistitem adlistitem = new Adlistitem (); adlistitem.setaid ("1"); adlistitem.setbanner ("imgurl"); Adlistitem.seturl (""); Hioshelper.configwebactivity (webviewmainactivity.class); Hioshelper.click (mainactivity.this, adlistitem);//</pre></pre><p><p>Method 3:</p></p><pre class="brush:java;toolbar:false"><pre class="brush:java;toolbar:false">Hios activity Jump Adlistitem Adlistitem = new Adlistitem () adlistitem.setaid ("1"); adlistitem.setbanner ("imgurl"); Adlistitem.seturl ("hios://jump.twomainactivity?sku_id={s}1000252");//with parameter Hioshelper.click (MainActivity.this, twomainactivity.class, Adlistitem);//the First one is the current activity the second is fragment//twomainactivity receive malertskuid = Getintent (). Getstringextra ("sku_id");</pre></pre><p><p></p></p><p><p>Summary: There are two of content has not been written out, which has webview of the base class has experienced baptism, we can use ~<span style="color:rgb(85,85,85);font-family:‘微软雅黑‘, ‘Microsoft YaHei‘;font-size:14px;line-height:28px;background-color:rgb(255,255,255);">(love a person will love him (</span><strong style="padding:0px;margin:0px;"><span style="padding:0px;margin:0px;color:rgb(255,0,0);">loader</span></strong><span style="color:rgb(85,85,85);font-family:‘微软雅黑‘, ‘Microsoft YaHei‘;font-size:14px;line-height:28px;background-color:rgb(255,255,255);">) all ~) to</span> be continued ~<br></p></p><p><p>650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M00/97/AF/wKioL1kxGuuBFRizAAQ8zhtm9UY453.gif "title=" C2adb464tw1etn3dny1qng208c04p7bj.gif "alt=" wkiol1kxguubfrizaaq8zhtm9uy453.gif "/></p></p><p><p><br></p></p><p><p><br></p></p><p><p>This article is from the "Liangxiao technology center" blog, Please be sure to keep this source http://liangxiao.blog.51cto.com/3626612/1931731</p></p><p><p> Android Studio Phase 38th-hios jump protocol resolves URI Jump native page and pass parameters </p> </p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service