Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:07:19+00:00 2026-06-03T17:07:19+00:00

I just copied an example from AndEngine main page, but the app is always

  • 0

I just copied an example from AndEngine main page, but the app is always forced to stop in emulator:((. Please help me.
Here is main acitvity:

    public class HelloMe extends BaseGameActivity {

   private static final int CAMERA_WIDTH = 720;

   private static final int CAMERA_HEIGHT = 480;

  // ===========================================================
  // Fields
  // ===========================================================

   private Camera mCamera;
   private BitmapTextureAtlas mFontTexture;
   private Font mFont;

@Override
public Engine onLoadEngine() {
    // TODO Auto-generated method stub
    this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
       return new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.mCamera));

}

@Override
public void onLoadResources() {
    // TODO Auto-generated method stub
    this.mFontTexture = new BitmapTextureAtlas(256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

    this.mFont = new Font(this.mFontTexture, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32, true, Color.BLACK);

    this.mEngine.getTextureManager().loadTexture(this.mFontTexture);
    this.getFontManager().loadFont(this.mFont);

}

@Override
public Scene onLoadScene() {

    this.mEngine.registerUpdateHandler(new FPSLogger());

    final Scene scene = new Scene();
    scene.setBackground(new ColorBackground(0.09804f, 0.6274f, 0.8784f));

    final Text textCenter = new Text(100, 60, this.mFont, "Hello AndEngine!\nYou can even   have multilined text!", HorizontalAlign.CENTER);
    final Text textLeft = new Text(100, 200, this.mFont, "Also left aligned!\nLorem ipsum dolor sit amat...", HorizontalAlign.LEFT);
    final Text textRight = new Text(100, 340, this.mFont, "And right aligned!\nLorem ipsum dolor sit amat...", HorizontalAlign.RIGHT);

    scene.attachChild(textCenter);
    scene.attachChild(textLeft);
    scene.attachChild(textRight);

    return scene;
}

@Override
public void onLoadComplete() {
    // TODO Auto-generated method stub

}

}

And the manifest file:

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

<uses-sdk android:minSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".HelloMe"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

</manifest>

I used Android 4.0.3, and andengine.jar has been added to Build Path. Can AndEngine run only with Android 2.2? Thank in advance:D.

PS: This is stack trace:

        05-09 22:04:08.311: E/AndroidRuntime(628): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.hello/com.hello.HelloMe}: java.lang.ClassNotFoundException: com.hello.HelloMe
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.os.Handler.dispatchMessage(Handler.java:99)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.os.Looper.loop(Looper.java:137)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread.main(ActivityThread.java:4424)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at java.lang.reflect.Method.invokeNative(Native Method)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at java.lang.reflect.Method.invoke(Method.java:511)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at dalvik.system.NativeStart.main(Native Method)
        05-09 22:04:08.311: E/AndroidRuntime(628): Caused by: java.lang.ClassNotFoundException: com.hello.HelloMe
        05-09 22:04:08.311: E/AndroidRuntime(628):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
        05-09 22:04:08.311: E/AndroidRuntime(628):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:07:21+00:00Added an answer on June 3, 2026 at 5:07 pm

    AndEngine, the version you are using doesnt look like the latest one, does not support the emulator. Try plugging in your phone and running it, it might work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From here I've copied an example of python gui app, but it's not working.
I have copied this code from the official example... I just replaced the api
Just wondering how I can make my app open automatically at login, but make
I copied this code from another post. I tried the example, however, I am
I copied this example from api.jquery.com $('.target').change(function() { alert('Handler for .change() called.'); }); I
I'm trying the slider widget in jQuery Mobile, and just copied the code from
I've just been experimenting with MPI, and copied and ran this code, taken from
I just copied my current database to a new database to find out only
Is objects enqueued to a ConcurrentQueue are copied to the queue or just their
Just switched over from eclipse to vs 2008 for debugging javascript, i feel more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.