Question: I started with my first Apps on Android some days ago.
I'm using Eclipse with Android SDK.

In every Tutorial, I see Code in onCreate().
But whenever I'm doing something in onCreate(), my App crashes at the start.

Do you know what the problem could be?

If I do things like

```
Button btn1 = (Button) findViewById(R.id.button1);

```

in onCreateOptions(), it's working fine...

Answer: 
Try:

```
string = 'shid!'
reg = Regexp.new string.split('').join('+')

!!('shid!' =~ reg)    #=> true
!!('shid' =~ reg)     #=> false
!!('shhhhiddd!' =~ reg) #=> true
!!('ssssshhhhiiiiiddd!!!!' =~ reg)  #=> true
!!('hsid!' =~ reg) #=> false

```
I'm not sure I've got the question. But maybe it's what you are looking for:

```
str = 'ssssshhhhiiiiiddd!!!!'
str.split('').uniq.join == 'shid!' #=> true

```