mentby.com
Blog | Jobs | Help | Signup | Login

loading

getCurrentActivity()

Mon, 12 Mar 2012 11:46:05 -0700 Post Comments

"this" on a class that extends Activity isn't simple enough?

Read more »

Hope I win ;) Good luck for me :P
Hi

You're complicating.

String stripped = "";

for (int i = 0; i < sss1.lenght(); i++)
if (sss1.charAt(i) >= '0' && sss1.charAt(i) <= '9')
stripped += sss1.charAt(i);

int start = sss1.indexOf(sss0);
int stop = start + sss0.lenght();

Hope it helps.
BTW, this group is for Android related questions, not Java questions.
Profile Widget
Copy and paste this HTML code to your blog or website: