BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-17-2009, 05:39 AM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: don't know
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Error Preverifying classTwittr4j.twitter

Please Login to Remove!

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;
}

}


thanks
Offline  
Old 09-17-2009, 08:09 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is a common problem in blackberry for external jars.
you have to separately Preverify that jar with the use of command line options.
__________________
blog.vimviv.com
Offline  
Old 09-18-2009, 02:34 AM   #3 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: don't know
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks 4 reply ,
can u tell me how can i do that with command line ...please
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.