Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Can't figure out what I am doing wrong?

 Hi all,

 

 I am new to BlackBerry/Mobile Dev so I am sorry if this is a simple question. I decided to attempt tp make a "Web Icon" following the BlackBerry guide here: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Creating-your-first-application-...

 

 I am attempting to change it over so it uses my Blog URL but all I get in the simulator is time out errors. Here is my config.xml file:

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"   
        xmlns:rim="http://www.blackberry.com/ns/widgets"
      version="1.0.0.0">
  <name>IGLSecurityBlog</name>
  <description>The IGL-Security Blog</description>
  <author rim:copyright="2011"
          email="john@doe.com">John Doe</author>
  <icon src="icon.png"/>
  <content src="http://igl-security.blogspot.com"/>
  <access subdomains="true" uri="http://blogspot.com"/>
  <access subdomains="true" uri="http://google.com"/>
</widget>

 

 Maybe it's just my internet speed that is too slow for it to load up? I am still pretty new at this so once again sorry if this is a simple problem.

Developer
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: Can't figure out what I am doing wrong?

I'm not positive but you might want to try changing:

 

<access subdomains="true" uri="http://blogspot.com"/>

 to

 

<access subdomains="true" uri="http://igl-security.blogspot.com"/>

 

New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Re: Can't figure out what I am doing wrong?

 Nope that did not work, I have got a tweet from @BlackBerryDev to a guide how to make config.xml files I feel like I have gotten closer but it still is not working. Here is the new config file:

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0"
        rim:header="RIM-Widget: rim/widget">

  <author href="http://igl-security.blogspot.com" rim:copyright="Copyright 2010-2011 IGL-Security Blog">My Corp</author>
  <rim:navigation mode="focus" />
  <name> IGL-Security Blog </name>

  <description>
    Connect directly to the IGL-Security blog right from your smartphone
  </description>

  <rim:loadingScreen backgroundImage="icon.png"
                     foregroundImage="icon.png"
                     onLocalPageLoad="true">
        <rim:transitionEffect type="zoomIn" />
  </rim:loadingScreen>

  <icon src="icon.png"/>
  <icon src="icon.png" rim:hover="true"/>

        <rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256" />

  <content src="index.html" >
    <rim:background src="listener.html" runOnStartup="true" />
  </content>

<access uri="http://igl-security.blogspot.com" subdomains="true">
   <feature id="blackberry.pim.memo" required="true" version="1.0.0"/>
</access>

  <rim:connection timeout="25000">
    <id>TCP_WIFI</id>
    <id>MDS</id>
    <id>BIS-B</id>
    <id>TCP_CELLULAR</id>
    <id>WAP2</id>
    <id>WAP</id>
  </rim:connection>

  <license>
    Example license
    Copyright (c) 2011 IGL-Security Blog.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
    BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

  </license>

</widget>

 

 If I leave the   <feature id="blackberry.pim.memo" required="true" version="1.0.0"/> I get an error saying the feature can not be found when I attempt to compile the app. If I remove that the app loads but with the URI set as "igl-security.blogspot.com" I still get timeout errors. Looking at my blog I load the blog from a few different URLs including "Blogger.com, Blogspot.com,Google.com, and igl-security.blogspot.com" but when I try to add more allowed URL sources I get improper xml formatting when I attempt to compile.

Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Can't figure out what I am doing wrong?

Hi 

 

 

 

<feature id="blackberry.pim.Memo" /> --You were missing the capital M

<feature id="blackberry.find" /




1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Re: Can't figure out what I am doing wrong?

Hey,

 

 Ok I am trying it but now I am having issues with this portion of the code I got from the BlackBerry example:

 


<feature id="blackberry.ui.dialog"/>
<access uri="*" subdomains="true">
 <feature id="blackberry.pim.Memo"/>
    <feature id="blackberry.invoke.MemoArguments"/>
  </access>

 

 When I attempt to compile it I get a "No <feature> tags are allowed for this <access> element. Also allowing all the urls still got me a "Time out error" is their a way I can provide a .cod file to someone to run on their emulator to see if they get a timeout error? I am starting to wonder if that is due to my slow internet speef (it's considered high speed but it can be slow at times)

 

Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Can't figure out what I am doing wrong?

HI Ibrad,

 

Are you testing exclusively on the simulator? Are you running the MDS Simulator as well (this is necessary to get an internet connection on the sim)?



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Re: Can't figure out what I am doing wrong?

I am testing this directly on the BlackBerry Simulator. I have personallly not been launching an MDS simulator. I was getting a normal connection on the device (I could check facebook, twitter, browse web) so I thought I had a connection. I can go download a MDS simulator if needed.

New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Re: Can't figure out what I am doing wrong?

Hi,

 

 I got the MDS simulator and it's now running on my machine. Now the problem is the product loads but I just get a white screen with an arrow. None of the content from my blog loads up. Any ideas?

 

 -Brad

New Developer
Posts: 8
Registered: ‎09-10-2011
My Device: N/A
My Carrier: Verizon

Re: Can't figure out what I am doing wrong?

[ Edited ]

I normally don't like to do this but *bump* I have not been able to get past this error message.

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Can't figure out what I am doing wrong?

Hi there,

 

Can you please confirm that you are using the latest vesrion of the 2.2.0 WebWorks SDK available here:

https://bdsc.webapps.blackberry.com/html5/download/sdk

 

I copied the config.xml sample here:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Creating-your-first-application-...

 

And modified only the <content> src attribute to point at:

http://igl-security.blogspot.com

 

I then packaged and loaded the application onto a real, physical device and it loaded just fine. I also tested on a simulator without issue. Can you also confirm the model and full OS version of your simulator?

 

Erik Oros

BlackBerry Development Advisor


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.