[Android Apps and Games] dancer_69:
I'm trying to use standout to build a simple Hello world window, but I get a crush and the following error:

Here is my code:

MainActivity

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StandOutWindow.closeAll(this, HelloWindow.class);

StandOutWindow.show(this, HelloWindow.class, StandOutWindow.DEFAULT_ID);
// show a MostBasicWindow. It is commented out because it does not
// support closing.

/*
* StandOutWindow.show(this, StandOutMostBasicWindow.class,
* StandOutWindow.DEFAULT_ID);
*/

finish();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {

// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}

}

HelloWindow

public class HelloWindow extends StandOutWindow{

@Override
public void createAndAttachView(int id, FrameLayout frame) {
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.hello_window, frame, true);

}

@Override
public int getAppIcon() {
// TODO Auto-generated method stub
return android.R.drawable.ic_menu_close_clear_cancel;
}

@Override
public String getAppName() {
// TODO Auto-generated method stub
return "HelloWindow";
}

@Override
public StandOutLayoutParams getParams(int id, Window window) {
return new StandOutLayoutParams(id, 250, 300,
StandOutLayoutParams.CENTER, StandOutLayoutParams.CENTER);
}

// move the window by dragging the view
@Override
public int getFlags(int id) {
return super.getFlags(id) | StandOutFlags.FLAG_BODY_MOVE_ENABLE
| StandOutFlags.FLAG_WINDOW_FOCUSABLE_DISABLE;
}

@Override
public String getPersistentNotificationMessage(int id) {
return "Click here to close";
}

@Override
public Intent getPersistentNotificationIntent(int id) {
return StandOutWindow.getCloseIntent(this, HelloWindow.class, id);
}

}

AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.floatinghello"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:excludeFromRecents="true"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoDisplay" >
<activity
android:name="com.example.floatinghello.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<service android:name=".HelloWindow" >
</service>
</application>

</manifest>

I also found this post:

http://xdaforums.com/showthread.php?p=37038690&highlight=noclassdeffounderror#post37038690

and followed the instructions until the

Here I cannot found the Project > Android > Library. So I tried from import suggestions on "wei.mark.standout.StandOutWindow", to add the library. But I get the same error, both if I add the project or the jar file(these to suggestions are available).

What I'm doing wrong?