Reputation: 21
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.example.sudoku"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Sudoku"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
//error here->// <activity android:name=".about"
android:label="@string/about_title">
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
</manifest>
//Th problem is ,when I was developing a sudoku game I got an error in defining the activity (.about). Above I have written the code and the place where the error occurred. Please help//
Upvotes: 2
Views: 5793
Reputation: 93123
Some things to check:
About
starts with capital letter as Nanne said.About
should be in package org.example.sudoku
.About
should extend Activity
.Also notice that instead of doing:
<activity android:name=".About"
android:label="@string/about_title">
</activity>
You can do:
<activity android:name=".About"
android:label="@string/about_title"/>
Upvotes: 2
Reputation: 41749
Try this code:
<activity
android:label="@string/about_title"
android:name=".About"
android:theme="@android:style/Theme.Dialog"
/>
Upvotes: 0
Reputation: 64399
I see nothing strange. Could it be that you where trying for ".About"
instead of ".about
" ?
Upvotes: 3