you're not defining the activity correctly in the manifest...
the activity "name" field needs a fully classified path to the class or 
should start with a period to fill in the package declared in the manifest.

see:
http://developer.android.com/guide/topics/manifest/activity-element.html

On Thursday, March 14, 2013 9:38:36 AM UTC+2, RKJ (Android developer) wrote:
>
> I have a file called "Start" and extending FragmentActivity, this file is 
> listed in manifest file still showing File not found exception any clue 
> please - 
>
> 1. Here is error code
>
> 03-14 13:06:49.074: W/dalvikvm(25684): threadid=1: thread exiting with 
> uncaught exception (group=0x40eb8258)
> 03-14 13:06:49.078: E/AndroidRuntime(25684): FATAL EXCEPTION: main
> 03-14 13:06:49.078: E/AndroidRuntime(25684): java.lang.RuntimeException: 
> Unable to instantiate activity 
> ComponentInfo{com.playcez/com.playcez.Start}: 
> java.lang.ClassNotFoundException: com.playcez.Start
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2001)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread.access$600(ActivityThread.java:134)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.os.Looper.loop(Looper.java:154)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread.main(ActivityThread.java:4624)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> java.lang.reflect.Method.invoke(Method.java:511)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> dalvik.system.NativeStart.main(Native Method)
> 03-14 13:06:49.078: E/AndroidRuntime(25684): Caused by: 
> java.lang.ClassNotFoundException: com.playcez.Start
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:501)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:461)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.Instrumentation.newActivity(Instrumentation.java:1023)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1992)
> 03-14 13:06:49.078: E/AndroidRuntime(25684):     ... 11 more
> 03-14 13:06:49.109: D/dalvikvm(25684): GC_CONCURRENT freed 170K, 4% free 
> 9405K/9719K, paused 1ms+2ms
>
> 2. Manifest - 
> <activity
>             android:name="Start"
>             android:label="@string/app_name"
>             android:screenOrientation="portrait" >
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>
>                 <category android:name="android.intent.category.LAUNCHER" 
> />
>             </intent-filter>
>         </activity>
>
> 3. Here is class snapshot - 
>
> import com.facebook.Session;
> import com.facebook.SessionState;
> import com.facebook.UiLifecycleHelper;
>
> import android.content.Intent;
> import android.os.Bundle;
> import android.support.v4.app.Fragment;
> import android.support.v4.app.FragmentActivity;
> import android.support.v4.app.FragmentManager;
> import android.support.v4.app.FragmentTransaction;
> import android.view.Menu;
> import android.view.MenuItem;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.view.animation.AlphaAnimation;
> import android.view.animation.Animation;
> import android.view.animation.AnimationSet;
> import android.view.animation.AnimationUtils;
> import android.view.animation.LayoutAnimationController;
> import android.view.animation.RotateAnimation;
> import android.view.animation.TranslateAnimation;
> import android.widget.Button;
> import android.widget.ImageView;
> import android.widget.LinearLayout;
> import android.widget.RelativeLayout;
> import android.widget.SlidingDrawer;
> import android.widget.TextView;
>
>
>
> public class Start extends FragmentActivity {
>     private final int SPLASH_SCREEN_TIMEOUT = 3000;//1850
>     private static final int SPLASH = 0;
>     private static final int SELECTION = 1;
>     private static final int FRAGMENT_COUNT = SELECTION +1;
>     private int time=100;
>     private Fragment[] fragments = new Fragment[FRAGMENT_COUNT];
>     private MenuItem settings;
>     private boolean isResumed = false;
>     private UiLifecycleHelper uiHelper;
>     private Session.StatusCallback callback = new Session.StatusCallback() 
> {
>         @Override
>         public void call(Session session, SessionState state, Exception 
> exception) {
>             onSessionStateChange(session, state, exception);
>         }
>     };
>
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>
>         setContentView(R.layout.main);
> }
> }
>
> Thanks is Advance 
>
>
> -- 
> Thanks & Regards
>
> Rakesh
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to