Errors of other java package
<p>Android,</p>

<p>Will you do favor to me?  have these following questions. These errors are not coming in Mainactivity.java but these errors are coming in other java(Not an activity) package And everything are imported.</p>

<p>1.I want to split a sentence by space. </p>

<pre><code>  messages = message.split(" ");
</code></pre>

<p><br/>
2. trim() funcion is not working.</p>

<pre><code>  messages[0].trim();
</code></pre>

<p><br/>
3."AlertDialog.Builder(this)" is underlined red color.</p>

<pre><code>  final AlertDialog.Builder alert = new AlertDialog.Builder(this);
</code></pre>

<p><br/>
4.Cant resolve "getApplicationContext()"</p>

<pre><code>   Toast.makeText(getApplicationContext(), "You have abourted SMS &amp; FMS will not reply automatically", Toast.LENGTH_LONG).show();
</code></pre>

<p><br/>
5."NOTIFICATION_SERVICE" &amp; "new Intent(this, fmsActivity.class" are underlined in red color</p>

<pre><code>  NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);

  Intent notificationIntent = new Intent(this, fmsActivity.class);
</code></pre>

<p>Thanks in advance..:)</p>
