<a href连接在phonegap android中不起作用解决办法

https://groups.google.com/forum/?fromgroups=#!topic/phonegap/qLOk0rTatH8

Hello everyone. I'm new to phonegap and looking forward to this group. 
I can really use your help! 

I can't get a simple <a href='file2.html'>Link</a> link to work on 
phonegap for Android. I tried multiple simulators, all kinds of 
variations on the link. I know phonegap is working, I followed the 
steps from the website and when I add a simple href tag to the Hello 
World page they provide as an example, it just goes nowhere! I have 
file2.html in the same "www" directory as the index file. 

I installed eclipse on Mac and PC with the same results. Using 
phonegap for iPhone worked just fine. 

Here are some examples I've tried. I did about 20 searches on the 
subject and just couldn't find an answer. 

<a href="file2.html">test 1</a> 
<a href="file2.html">test 2</a> 
<a href="assets/www/file2.html">test 3</a> 
<a href="android_assets/www/file2.html">test 4</a> 
<a href="file:///assets/www/file2.html">test 5</a> 

Again, nothing has worked.. the link just sits there.. any help would 
be greatly appreciated!!!

--------------------------

解决办法:

I'm surprised this isn't working.  Can you check to make sure you have
the following tag inside your application tag in your
AndroidManifest.xml:

        <activity android:name="com.phonegap.DroidGap"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
            <intent-filter>
            </intent-filter>
        </activity>

Simon Mac Donald
http://hi.im/simonmacdonald

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值