I am trying to use SDL2 in android using Lazarus. My first problem is that my project do not see my main android activity.
I added libsdlActivity.java in src/com/pascal/opengltest
then I changed in AndroidManifest.xml "package="com.pascal.opengltest"" and "activity android:name="libsdlActivity""
When I try to run my application I get: ava.lang.ClassNotFoundException: Didn't find class "com.pascal.opengltest.libsdlActivity" on path: /data/app/com.pascal.opengltest-1.apk
I do not understand what I am doing wrong.
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pascal.opengltest"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:glEsVersion="0x00020000" />
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" />
<uses-sdk android:minSdkVersion="12" android:targetSdkVersion="21" />
<application android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:allowBackup="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:hardwareAccelerated="true" >
<activity android:name="libsdlActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>