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

Java Development

Reply
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Silly Unified Search question...

Anyone found a way (if there is a way) to access Unified Search through code compiled under 5.0?

 

One can dream :smileyhappy:

 

Having hard time justifying making a new build for just a single feature.

 

Seems like the only new thing is the unified search, everything else can be replicated on 5.0 and below devices, maybe some social additions (really no use for an enterprise developer).

 

 

Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Silly Unified Search question...

[ Edited ]

Hmn, I'm pretty sure its implementable using decoupled libraries which communicate solely through GlobalEvents or similar.

 

5.0 compiled app would check for presence of the class, if its present, it will start the 6.0 app.    So the 5.0 doesn't throw verification errors.  6.0 library would still be able to be installed, it just wouldn't be able to run...

 

Going to try it :smileyvery-happy:

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Silly Unified Search question...

Not sure if that would work. For my Bing library I did a wrapper like feature:

http://bbing.codeplex.com/

 

This way on 5.0 (or earlier) it would say it isn't supported though it still needs a seperete compile.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Silly Unified Search question...

It works.

 

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Silly Unified Search question...

Please explain to the crowd what you did :smileywink:

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Silly Unified Search question...

Implemented a bit differently, but allowed myself to keep a single build.

 

You have your main application check for 6.0 device being present and download and install the module with 6.0 support.   5.0 app controls 6.0 app through global events, which works out really great for Unified Search logic.

 

The idea is to completely decouple implementations into two separate apps so there is no library dependency and no verification errors :smileyvery-happy:

 

Basically what you described in your previous reply.  

 

 

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Silly Unified Search question...

Well, I decoupled it but it still requires two builds of the library though from what you said you still need two builds as well, just they are not the same app/library.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Silly Unified Search question...

Library only needs to be built under 6.0 to enable the Unified Search (can't build it under 5.0).

The core app is built under 5.0 to support all 5.0+ devices.

 

So in the essense we build two apps, but there is only one version/build for the core application.

 

Instead of having to build a 5.0 and a 6.0 version of the core applicaton, which brings a lot of overhead to QA/Sales/Support, etc.   A tiny plugin makes it seem easy to the end user and non-dev crowd.

 

 

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Silly Unified Search question...

True

 

It would be a good thing to be able to do but I don't have a server that can be referenced for downloading a COD file that matches a specific OS.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Silly Unified Search question...

I believe it would still install the 6.0 cod on a 5.0 device if you include it into a single jad batch.

 

It wouldn't be able to run on a 5.0 device, but it would install fine.  As it's a tiny system module, the users wouldn't know any better either way. 

 

No need for a server to host it, just bundle it :smileyhappy: