I used this but when i set the variable im getting an error: 03-28 09:01:36.492: WARN/System.err(706): java.lang.ClassCastException: android.app.Application
What is this? I added the <application android:name="MyApplication" android:icon="@drawable/icon" android:label="@string/app_name">
after i close the . If i do it before the close its also not working.
EDIT: Okay it was because i have two times Application. Now i added it to the Application which was created by eclipse but it wants now permissions?!
EDIT2: Got it!