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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:01:39+00:00 2026-06-15T09:01:39+00:00

So I have an app that has a MySQL, PHP login..it was working great

  • 0

So I have an app that has a MySQL, PHP login..it was working great yesterday, but tonight is has been giving me this error whenever I try to log in:

Here is my LogCat:

    12-02 23:20:57.259: D/dalvikvm(10592): GC_CONCURRENT freed 65K, 52% free 2617K/5379K, external 1565K/2077K, paused 7ms+2ms
12-02 23:21:03.709: E/JSON(10592): {"tag":"login","success":1,"error":0,"uid":"50bc1f349f8b78.26242231","user":{"name":"jon","email":"jon","created_at":"2012-12-02 22:40:36","updated_at":null}}n
12-02 23:21:03.809: D/AndroidRuntime(10592): Shutting down VM
12-02 23:21:03.809: W/dalvikvm(10592): threadid=1: thread exiting with uncaught exception (group=0x2aac8560)
12-02 23:21:03.839: E/AndroidRuntime(10592): FATAL EXCEPTION: main
12-02 23:21:03.839: E/AndroidRuntime(10592): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.groupone.the.health.effect/com.groupone.the.health.effect.DashboardActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class com.groupone.the.health.effect.dashboard
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread.access$1500(ActivityThread.java:121)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.os.Looper.loop(Looper.java:123)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread.main(ActivityThread.java:3701)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at java.lang.reflect.Method.invokeNative(Native Method)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at java.lang.reflect.Method.invoke(Method.java:507)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at dalvik.system.NativeStart.main(Native Method)
12-02 23:21:03.839: E/AndroidRuntime(10592): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class com.groupone.the.health.effect.dashboard
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.Activity.setContentView(Activity.java:1657)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at com.groupone.the.health.effect.DashboardActivity.onCreate(DashboardActivity.java:27)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
12-02 23:21:03.839: E/AndroidRuntime(10592):    ... 11 more
12-02 23:21:03.839: E/AndroidRuntime(10592): Caused by: java.lang.ClassNotFoundException: com.groupone.the.health.effect.dashboard in loader dalvik.system.PathClassLoader[/data/app/com.groupone.the.health.effect-2.apk]
12-02 23:21:03.839: E/AndroidRuntime(10592):    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.createView(LayoutInflater.java:471)
12-02 23:21:03.839: E/AndroidRuntime(10592):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
12-02 23:21:03.839: E/AndroidRuntime(10592):    ... 19 more
12-02 23:21:03.899: D/dalvikvm(10592): GC_CONCURRENT freed 224K, 50% free 2870K/5703K, external 1565K/2077K, paused 2ms+14ms

Here is my XML:

<?xml version="1.0" encoding="utf-8"?>
<com.groupone.the.health.effect.dashboard
     xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#3b3b3b">

    <TextView android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:text="WELCOME"
              android:textSize="40dip"
              android:gravity="center"
              android:layout_marginTop="20dip"/>

    <Button android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Log Me Out"
        android:textSize="20dip"
        android:textColor="#21dbd4"
        android:textStyle="bold"
        android:id="@+id/btnLogout"
        android:layout_marginTop="80dip"
        android:background="@null"/>

    <Button
        android:id="@+id/btn_news_feed"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/healthbook"
        android:text="Activities" />

    <Button
        android:id="@+id/btn_messages"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/mental"
        android:text="Mental Input" />

    <!--  Events Button -->
    <Button
        android:id="@+id/btn_events"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/graph"
        android:text="Results" />

    <!--  Photos Button -->
    <Button
        android:id="@+id/btn_photos"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/doctor"
        android:text="Map" />

    <!--  Friends Button -->
    <Button
        android:id="@+id/btn_friends"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/btn_facebook"
        android:text="Facebook" />

    <!--  Messages Button -->


    <!--  Places Button -->
    <Button
        android:id="@+id/btn_places"
        style="@style/DashboardButton"
        android:drawableTop="@drawable/twitter_logo"
        android:text="Health Tweets" />




</com.groupone.the.health.effect.dashboard>

And here is my .LoginActivity:

import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.groupone.the.health.effect.library.DatabaseHandler;
import com.groupone.the.health.effect.library.UserFunctions;

public class LoginActivity extends Activity {
    Button btnLogin;
    Button btnLinkToRegister;
    EditText inputEmail;
    EditText inputPassword;
    TextView loginErrorMsg;

    // JSON Response node names
    private static String KEY_SUCCESS = "success";
    private static String KEY_ERROR = "error";
    private static String KEY_ERROR_MSG = "error_msg";
    private static String KEY_UID = "uid";
    private static String KEY_NAME = "name";
    private static String KEY_EMAIL = "email";
    private static String KEY_CREATED_AT = "created_at";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login);

        // Importing all assets like buttons, text fields
        inputEmail = (EditText) findViewById(R.id.loginEmail);
        inputPassword = (EditText) findViewById(R.id.loginPassword);
        btnLogin = (Button) findViewById(R.id.btnLogin);
        btnLinkToRegister = (Button) findViewById(R.id.btnLinkToRegisterScreen);
        loginErrorMsg = (TextView) findViewById(R.id.login_error);

        // Login button Click Event
        btnLogin.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                String email = inputEmail.getText().toString();
                String password = inputPassword.getText().toString();
                UserFunctions userFunction = new UserFunctions();
                JSONObject json = userFunction.loginUser(email, password);

                // check for login response
                try {
                    if (json.getString(KEY_SUCCESS) != null) {
                        loginErrorMsg.setText("");
                        String res = json.getString(KEY_SUCCESS);
                        if(Integer.parseInt(res) == 1){
                            // user successfully logged in
                            // Store user details in SQLite Database
                            DatabaseHandler db = new DatabaseHandler(getApplicationContext());
                            JSONObject json_user = json.getJSONObject("user");

                            // Clear all previous data in database
                            userFunction.logoutUser(getApplicationContext());
                            db.addUser(json_user.getString(KEY_NAME), json_user.getString(KEY_EMAIL), json.getString(KEY_UID), json_user.getString(KEY_CREATED_AT));                        

                            // Launch Dashboard Screen
                            Intent dashboard = new Intent(getApplicationContext(), DashboardActivity.class);

                            // Close all views before launching Dashboard
                            dashboard.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                            startActivity(dashboard);

                            // Close Login Screen
                            finish();
                        }else{
                            // Error in login
                            loginErrorMsg.setText("Incorrect username/password");
                        }
                    }
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        });

        // Link to Register Screen
        btnLinkToRegister.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                Intent i = new Intent(getApplicationContext(),
                        RegisterActivity.class);
                startActivity(i);
                finish();
            }
        });
    }
}

Thanks!

  • 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-15T09:01:40+00:00Added an answer on June 15, 2026 at 9:01 am

    dashboard is in lower case so it looks like a package. If you create a custom layout class, you should reference that class and not the parent package in your xml tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem like an obvious question but we have a PHP/MySQL app that
I have an app that has PHP API Classes to connect to a MySQL
We have a C# app that has been working on three machines, 2 running
I have a web-app that has a master mysql db and four slave dbs.
I have an app written in PHP, MySQL, etc. The app has a few
I'm working on a PHP-based webapp that has an existing MySQL database where all
This has probably been asked before but I can't find it anywhere. I have
I have been trying to follow this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ . It is to create
i have a project i took over. it is an app that has been
I have a web application that has been done using Cakephp with MySql as

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.