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

24/25 series EEPROM Flash USB Programmer CH341A with Software&driver 5V
$3.58
24/25 series EEPROM Flash USB Programmer CH341A with Software&driver 5V pictureTape of QTY 100 Microchip 93LC56A-I/OTG 2 KB Serial EEPROM TSSOP8 NEW
$30.0
Tape of QTY 100 Microchip 93LC56A-I/OTG 2 KB Serial EEPROM TSSOP8 NEW pictureTube of 45 XICOR / IC Microesystems X24C02S8-2.7 Serial EEPROM IC SMT NOS
$18.0
Tube of 45 XICOR / IC Microesystems X24C02S8-2.7 Serial EEPROM IC SMT NOS pictureAPPRX 400PC SMD 93C46 1K BIT SERIAL EEPROM LOT 128X8 - SOIC8
$9.95
APPRX 400PC SMD 93C46 1K BIT SERIAL EEPROM LOT 128X8 - SOIC8 pictureAllen Bradley 1785-ME64/A 64K EEPROM Memory Cartridge
$499.99
Allen Bradley 1785-ME64/A 64K EEPROM Memory Cartridge picture






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