<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.cgclient">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Material.Light">
<activity
android:name=".LoginActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ClientDashboardActivity"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="false" />
<activity
android:name=".CreateClientAccount"
android:exported="false" /> <!-- Add these new activities -->
<activity
android:name=".FindCaterersActivity"
android:exported="false" />
<activity
android:name=".MyBookingsActivity"
android:exported="false" />
</application>
</manifest>
this is the old androidmnifest can you check and provide me the new working
I can see your existing AndroidManifest.xml. I'll add the ProfileSettingsActivity to it while keeping all your existing activities. Here's the updated manifest:
app/src/main/AndroidManifest.xml
Now, you also need to update your existing activity (probably ClientDashboardActivity since that seems to be your main dashboard) to handle the Profile Settings button click.
Here's how to add the Profile Settings functionality to your existing ClientDashboardActivity:
app/src/main/java/com/example/cgclient/ClientDashboardActivity.java
And create the ProfileSettingsActivity.java file in your project:
app/src/main/java/com/example/cgclient/ProfileSettingsActivity.java
Summary of changes:
ProfileSettingsActivity to your AndroidManifest.xmlClientDashboardActivity to handle the Profile Settings button clickProfileSettingsActivity.java with the correct package name (com.example.cgclient)Now when you click the orange "PROFILE SETTINGS" button in your app, it should open the profile settings screen!
error
I see the error in your Android Studio. The issue is that your code is trying to reference MainActivity.class, but it can't find that class. Based on your project structure, it looks like you have ClientDashboardActivity and other activities, but no MainActivity class is found.
Let's fix this error by updating your code:
app/src/main/java/com/example/cgclient/LoginActivity.java
This way, you're always redirecting to ClientDashboardActivity, but you're passing different extras to indicate whether the user is a caterer or a regular client.
For your ProfileSettingsActivity, make sure you've created the layout file:
app/src/main/res/layout/activity_profile_settings.xml
Also, make sure you have the necessary drawable resources:
app/src/main/res/drawable/edit_text_background.xml
app/src/main/res/drawable/circle_background.xml
app/src/main/res/drawable/ic_arrow_back.xml
These changes should fix your error and allow the profile settings functionality to work properly.
another error