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
Highlighted
Regular Contributor
Posts: 75
Registered: ‎07-22-2010
My Device: Not Specified
My Carrier: Trainee

No contentHandlers found

How can i remove the Exception

My code is:

 void myVideo()
    {
       
           Invocation invocation = new Invocation();//filePathTemp);
          String f = BlackBerryContentHandler.class.getName();
          System.out.println("Content Handler "+f);
          Registry _registry=Registry.getRegistry("BlackBerryContentHandler");                 //"net.rim.device.api.content.BlackBerryContentHandler");
        try {
        StringBuffer response = (fbc.getHttpClient()).doGet(filePathTemp);
        byte[] data = response.toString().getBytes();
        if (data.length > 0) 
        {
         invocation.setData(data);
        } 
        }catch(Exception er){System.out.println(" C         "+er);}
        try{
             
        _registry.invoke(invocation);
}
catch(Exception y){System.out.println("Problem is : "+y);}
}

Please help me..