homepage Welcome to WebmasterWorld Guest from 50.19.206.49
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
Forum Library, Charter, Moderators: bakedjake

Smartphone, Wireless, and Mobile Technologies Forum

    
OMA Java Integration with WURFL
Issues in WURFL detection
agbenny




msg:931669
 12:02 pm on Nov 24, 2005 (gmt 0)

Hi

I am integrating WURFL in java to develop a mobile catalogue.

The main objective is to identify the mobile device type and there by to verify whether the capabilities like OMA Support and others.

What we need is if they support OMA download then we need to redirect them to the catalogue page, if not then we need to intimate the user that his device doesnt support OMA Downloads.

The below given is the code i referred and wrote, to identify the device id and check whether they support OMA.

<%@page
import="java.io.*,java.lang.*,net.sourceforge.wurfl.wurflapi.*"%>
<%
UAManager uam =
ObjectsManager.getUAManagerInstance();
CapabilityMatrix cm =
ObjectsManager.getCapabilityMatrixInstance();
String ua_string =
request.getHeader("User-Agent");
String dev_id =
uam.getDeviceIDFromUA(ua_string);
String isOma =
cm.getCapabilityForDevice(dev_id,"oma_support");
if (isOma.equals("true"))
{
out.println("<a
href=\"prdcat.jsp\">Catalogue</a><br />");
}
else
{
out.println("Device id:"+dev_id+"<br />");
out.println("User Agent
:"+ua_string+"<br />");
out.println("Oma Support:"+isOma+"<br
/>");
out.println("Sorry your device does not support OMA downloads");

}
%>

I am using netbeans4.1 (Apache tomcat 5.5.7), when i tried through the openwave V7 Simulator, Ver 7.0.107, it works just fine.

But when we tried through the Nokia 6101 (Asia),Nokia
6620(US) and Nokia 6600 (Asia) model mobile phones. It returns OMA Support as "False".

It returned that the mobile does not support OMA. When i referred the Nokia series list under the "object_download" node, it shows that 6620,6101,6600 supports OMA.

Could you please help me in this regard.

Thanks
Benny

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved