开发者

Getting ActivityNotFoundException

I am getting ActivityNotFoundException though i register the Activity class in the Manifest file. Can you help me please...

Thanks..

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="Login"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".Registration" android:label="Registration"
    ></activity>
     <activity android:name=".Dashboard" android:label="Dashboard"
    ></activity>
     <activity android:name="com.innominds.BillDetails" 
    ></activity>
</application>

This the Manifest file.

Now I wrote the below code for BillDetails class

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;

public class BillDetails extends FragmentActivity
{

 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.details_bill);
 }

  public static class BillSearch extends Fragment
   {
        开发者_高级运维 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
         {
             return inflater.inflate(R.layout.billsearch, container, false);
         }

         public void onActivityCreated(Bundle savedState) 
         {
              super.onActivityCreated(savedState);
         }
   }

    public static class DetailBill extends Fragment
    {
         public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
         {
             return inflater.inflate(R.layout.billdetails, container, false);
         }

         public void onActivityCreated(Bundle savedState) 
         {
              super.onActivityCreated(savedState);
         }
    }
}


<activity android:name="yourPackage.YourActivity" />


Is your activity in a different package than the application package? If so, then in the manifest file enter the activity's full package name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜