Welcome to WebmasterWorld Guest from 54.158.228.55

Forum Moderators: bakedjake

Message Too Old, No Replies

OMA Java Integration with WURFL

Issues in WURFL detection

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

10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month