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 8170699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:12:43+00:00 2026-06-06T21:12:43+00:00

Im trying to make my first app with eclipse and phonegap. But when I

  • 0

Im trying to make my first app with eclipse and phonegap. But when I try to run the app I got this message:

06-26 20:50:03.736: E/AndroidRuntime(1449): FATAL EXCEPTION: main
06-26 20:50:03.736: E/AndroidRuntime(1449): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{my.first.app/my.first.app.MyFirstAppActivity}: java.lang.ClassNotFoundException: my.first.app.MyFirstAppActivity
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.os.Looper.loop(Looper.java:137)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread.main(ActivityThread.java:4424)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at java.lang.reflect.Method.invokeNative(Native Method)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at java.lang.reflect.Method.invoke(Method.java:511)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at dalvik.system.NativeStart.main(Native Method)
06-26 20:50:03.736: E/AndroidRuntime(1449): Caused by: java.lang.ClassNotFoundException: my.first.app.MyFirstAppActivity
06-26 20:50:03.736: E/AndroidRuntime(1449):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
06-26 20:50:03.736: E/AndroidRuntime(1449):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
06-26 20:50:03.736: E/AndroidRuntime(1449):     ... 11 more

The manifest:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > 
    <activity android:name=".MyFirstAppActivity" 
              android:configChanges="orientation|keyboardHidden|screenSize" 
              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>

I have followed exactly the instructions in http://docs.phonegap.com/en/1.8.1/guide_getting-started_index.md.html#Getting%20Started%20Guides

Here is my MyFirstAppActivity.java file:

package my.first.app;

import android.app.Activity;
import android.os.Bundle;
import org.apache.cordova.*;


public class MyFirstAppActivity extends DroidGap { // DroidGap
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");
    }
}

And AndroidManifest.xml

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity android:name=".MyFirstAppActivity" android:configChanges="orientation|keyboardHidden|screenSize" 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>
  • 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-06T21:12:44+00:00Added an answer on June 6, 2026 at 9:12 pm

    You probably forgot to declare MyFirstAppActivity in your AndroidManifest.xml.

    Make sure your manifest contains something like this in between the <application> and </application> tags:

    <activity android:name=".MyFirstAppActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a dumb question...but I am trying to make my first app
I'm trying to make my first mobile app using Appcelerator. When i try to
I'm trying to make my first app for Microsoft Surface. I need to use
I am trying to make my first app using XNA, and I am having
I am trying to make kind of online gallery, this is first .html doc
Recently started programming Android Java (Eclipse), Im trying to make a simple reader app
I'm trying make my first python app. I want make simple email sender form.
I'm trying to make my first App. based on OpenGl, i'm trying to draw
I am trying to make my first Android app. I noticed that the SQLiteOpenHelper.onCreate()
I am a noob trying to make my first app. to allow my kids

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.