Recent

Author Topic: Lazarus android SDL  (Read 1788 times)

Imants

  • Full Member
  • ***
  • Posts: 181
Lazarus android SDL
« on: February 25, 2016, 10:14:09 am »
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  [Select][+][-]
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3.       package="com.pascal.opengltest"
  4.       android:versionCode="1"
  5.       android:versionName="1.0">
  6.  
  7.     <uses-permission android:name="android.permission.VIBRATE" />
  8.     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />    
  9.  
  10.     <uses-feature android:glEsVersion="0x00020000" />
  11.  
  12.     <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" />
  13.     <uses-sdk android:minSdkVersion="12" android:targetSdkVersion="21" />
  14.     <application android:label="@string/app_name"
  15.                  android:icon="@drawable/ic_launcher"
  16.                  android:allowBackup="true"
  17.                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  18.                  android:hardwareAccelerated="true" >
  19.         <activity android:name="libsdlActivity"
  20.                   android:label="@string/app_name"
  21.                   android:configChanges="keyboardHidden|orientation"
  22.                   >
  23.             <intent-filter>
  24.                 <action android:name="android.intent.action.MAIN" />
  25.                 <category android:name="android.intent.category.LAUNCHER" />
  26.             </intent-filter>
  27.         </activity>
  28.     </application>
  29. </manifest>

 

TinyPortal © 2005-2018