[BlackBerry] Run As BlackBerry Device

155 views
Skip to first unread message

Jacques2

unread,
Jan 20, 2010, 10:52:03 AM1/20/10
to phonegap

Hi,

In Eclipse I have "run as/Blackberry Simulator" and it works fine to
deploy to the simulator.

I want to deploy an App to the BlackBerry device too.

- I installed the BlackBerry desktop software on my Windows XP.
- In the "BlackBerry Device Manager Properties" I see the device
connected by USB

Despite of this fact I cannot see an item "Blackberry Device" in the
Eclipse "Run as" menu.

Could you guys tell me how I can do that ?

Thanks,

ade

unread,
Jan 20, 2010, 10:55:42 AM1/20/10
to phonegap
you need to be able to sign the app before you can deploy to an actual device ($20 from blackberry)
--
ade
...........................................................................................
www.ibizaA-Z.com
www.iphoneibiza.com
www.podcast-ibiza.com
www.ishopibiza.com
www.ibiza-blog.com
www.ibizawinter.com
www.ibizaa-z.com/webcam
http://twitter.com/blogibiza
Ibiza NOW - The Islands Magazine

jab...@gmail.com

unread,
Jan 20, 2010, 11:12:50 AM1/20/10
to ade, phonegap
Not entirely true. You dont need to sign to test.  You will see warning msgs though.  

Try putting the jar/jad files on a server that you can connect the bb over the air. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

jab...@gmail.com

unread,
Jan 20, 2010, 11:14:23 AM1/20/10
to ade, phonegap
Not entirely true. You dont need to sign to test.  You will see warning msgs though.  

Try putting the jar/jad files on a server that you can connect the bb over the air. 

Sent from my iPhone

On Jan 20, 2010, at 9:55 AM, ade <adei...@gmail.com> wrote:

-- 

You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email tophon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go towww.phonegap.com

Sent from my iPhone

On Jan 20, 2010, at 9:55 AM, ade <adei...@gmail.com> wrote:

--

Jacques2

unread,
Jan 20, 2010, 12:32:21 PM1/20/10
to phonegap

Thanks JABone,

Could you please explain this procedure ?
When those files are on a server, how can I call them from the BB ?

On Jan 20, 5:14 pm, "JAB...@gmail.com" <jab...@gmail.com> wrote:
> Not entirely true. You dont need to sign to test.  You will see  
> warning msgs though.
>
> Try putting the jar/jad files on a server that you can connect the bb  
> over the air.
>
> Sent from my iPhone
>

> > To post to this group, send email topho...@googlegroups.com


> > To unsubscribe from this group, send email to
> > phonegap+u...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > For more info on PhoneGap or to download the code go  
> > towww.phonegap.com
>
> Sent from my iPhone
>

Jacques2

unread,
Jan 20, 2010, 1:03:14 PM1/20/10
to phonegap

Currently I've deployed the .cod file with javaloader

javaLoader -u load PhGapTest.cod

It deployes the app in "download" and when I load it it says:
"Error starting PhGapTest: Module 'PhGapTest' attempts to access a
secure API"
(so this way I have to sign my app)

Having thought about what you said "over the air" I found in
JavaLoader the arg "otasl load"
which means: Over the Air Software Loading
I tried it with the device on USB with the command:

javaLoader -u otasl load cod PhGapTest.cod

It seems to load it because in console I see bytes actually loading
and on the device the connection symbol is displayed.

But when it's finished the console says: 0 bytes sent at 0 bps
and on the device the connection symbol disapear and nothing happen

Is that what you meant ?
At your opinion why is it unable to finally load it ?

The app is the default test app of the BB PhoneGap 0.8 project

Thanks,

filmaj

unread,
Jan 20, 2010, 1:10:00 PM1/20/10
to phonegap
Hi Jacques,

If you are loading onto a device, it needs to be signed if it accesses
secure APIs (and PhoneGap does access secure APIs).

The procedure to get these is not straightforward and takes some time.
See http://na.blackberry.com/eng/developers/javaappdev/codekeys.jsp

Jeremy Wadsack

unread,
Jan 20, 2010, 1:34:17 PM1/20/10
to phonegap
OTA installation just means that you put the .cod and all the .jad files on a web server somewhere and point your BlackBerry Browser at the .cod file.

A couple of notes:

The .jad file that Eclipse makes is really a zip file, so rename and uncompress it to get all the .jad files that are in it. These have to be separately loaded on the server and should match the names inside the .cod file (which is text).

To use OTA with your BlackBerry you must use the BlackBerry Browser (not Opera Mini) because only the BlackBerry Browser is associated with .cod/.jad file handling. As it is possible with some carriers to get a BlackBerry without the BlackBerry apps (like browser and maps) you (or your customers) may not have this ability.

--
Jeremy Wadsack

John Britton

unread,
Jan 20, 2010, 4:20:23 PM1/20/10
to filmaj, phonegap
filmaj,

Thanks.  I appreciate the correction.  I guess in previous development cycles I haven't hit secure APIs.

JAB

jacques

unread,
Jan 20, 2010, 4:25:41 PM1/20/10
to phonegap

Thank you all for your quick answers, I like that :-)

I'll let you know if everything is ok.

On 20 jan, 22:20, John Britton <jab...@gmail.com> wrote:
> filmaj,
>
> Thanks.  I appreciate the correction.  I guess in previous development
> cycles I haven't hit secure APIs.
>
> JAB
>
>
>
> On Wed, Jan 20, 2010 at 12:10 PM, filmaj <filip....@nitobi.com> wrote:
> > Hi Jacques,
>
> > If you are loading onto a device, it needs to be signed if it accesses
> > secure APIs (and PhoneGap does access secure APIs).
>
> > The procedure to get these is not straightforward and takes some time.

> > Seehttp://na.blackberry.com/eng/developers/javaappdev/codekeys.jsp

> > > > > > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>

> > > > > > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>


> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > > For more info on PhoneGap or to download the code go
> > towww.phonegap.com
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "phonegap" group.
> > To post to this group, send email to phon...@googlegroups.com
> > To unsubscribe from this group, send email to

> > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>

jacques

unread,
Jan 20, 2010, 4:22:06 PM1/20/10
to phonegap
Thank you all for your quick answers. I like that :-))

I'll let you know if everything is ok.

On 20 jan, 19:34, Jeremy Wadsack <jeremy.wads...@gmail.com> wrote:
> OTA installation just means that you put the .cod and all the .jad files on
> a web server somewhere and point your BlackBerry Browser at the .cod file.
>
> A couple of notes:
>
> The .jad file that Eclipse makes is really a zip file, so rename and
> uncompress it to get all the .jad files that are in it. These have to be
> separately loaded on the server and should match the names inside the .cod
> file (which is text).
>

> To use OTA with your BlackBerry you *must* use the BlackBerry Browser (not


> Opera Mini) because only the BlackBerry Browser is associated with .cod/.jad
> file handling. As it is possible with some carriers to get a BlackBerry
> without the BlackBerry apps (like browser and maps) you (or your customers)
> may not have this ability.
>
> --
> Jeremy Wadsack
>
>
>
> On Wed, Jan 20, 2010 at 10:10 AM, filmaj <filip....@nitobi.com> wrote:
> > Hi Jacques,
>
> > If you are loading onto a device, it needs to be signed if it accesses
> > secure APIs (and PhoneGap does access secure APIs).
>
> > The procedure to get these is not straightforward and takes some time.

> > Seehttp://na.blackberry.com/eng/developers/javaappdev/codekeys.jsp

> > > > > > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>

> > > > > > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>


> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > > For more info on PhoneGap or to download the code go
> > towww.phonegap.com
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "phonegap" group.
> > To post to this group, send email to phon...@googlegroups.com
> > To unsubscribe from this group, send email to

> > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>

Reply all
Reply to author
Forward
0 new messages