1. saurabhdiamond's Avatar
    hello to all of u ,
    i want to create a Twitter login gateway in blackberry .i import twitter4j.jar
    but i got Error Preverifying classTwittr4j.twitter .
    please help me .......
    how can i resolve that
    the code is
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import twitter4j.*;

    /**
    *
    */
    public class TwitterAut extends UiApplication
    {


    public static void main(String[] args)
    {
    TwitterAut theApp = new TwitterAut();
    theApp.enterEventDispatcher();
    }

    public TwitterAut()
    {

    pushScreen(new TwitterAutScreen());

    }
    }

    final class TwitterAutScreen extends MainScreen
    {

    private HorizontalFieldManager hrz;

    LabelField title = new LabelField(" Twitter Login ",
    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);

    public TwitterAutScreen()
    {
    hrz = new HorizontalFieldManager()
    {
    protected void paintBackground(Graphics graphics)
    {
    graphics.setBackgroundColor(0x00382B79);
    graphics.clear();
    super.paint(graphics);

    }

    };
    try{
    Twitter twitter = new Twitter("saurabhdiamond", "###########");
    twitter.verifyCredentials();
    add(new RichTextField("Login "));
    } catch(TwitterException e){
    add(new RichTextField(" error "));
    hrz.add(title);
    }
    }
    .......
    ........
    ........

    public boolean onClose()
    {
    Dialog.alert("thanks for using it!");
    System.exit(0);
    return true;
    }

    }
    09-17-09 06:15 AM
LINK TO POST COPIED TO CLIPBOARD