Forum > General

Lazarus android SDL

(1/1)

Imants:
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:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---<?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>

Navigation

[0] Message Index

Go to full version