This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Basado en: http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/ | |
/** | |
* Setup TabHost | |
*/ | |
private void initialiseTabHost(Bundle savedInstanceState) { | |
mTabHost = (TabHost)findViewById(android.R.id.tabhost); | |
mTabHost.setup(); | |
//****** tab1 start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean process(TextDocument doc) | |
throws BoilerpipeProcessingException { | |
boolean changes = false; | |
// long t = System.currentTimeMillis(); | |
for (TextBlock tb : doc.getTextBlocks()) { | |
final int numWords = tb.getNumWords(); | |
if (numWords < 15) { | |
final String text = tb.getText().trim(); |