• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Need Help with Login App Using XML/HttpURL/PHP/SQL

ac4android

Well-Known Member
Nov 3, 2015
198
29
I am trying to create a login app using email and a password using HttpURL.
I am getting an email/password error back from the PHP I've created on the remote server.

Here is the XML that gets the email/password variables, the work well:
Code:
           <EditText
                android:id="@+id/et_email"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/prompt_email"
                android:inputType="textEmailAddress"
                android:maxLines="1"
                android:singleLine="true" />

            <EditText
                android:id="@+id/et_password"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/email"
                android:layout_marginTop= "25dp"
                android:hint="@string/prompt_password"
                android:inputType="textPassword"
                android:maxLines="1"
                android:singleLine="true" />

Here is the part of the Android Java that grabs the email/login and send the pair to PHP, the logindata seems to have some spurious characeters in it, there also seems to be an extra space before the "com"...
View attachment 121550
 
Last edited:
I added a few lines of codes to allow URI chars, that didn't work either. I am sending a .jpg with the debug data.
 

Attachments

  • JunkInLogin222.JPG
    JunkInLogin222.JPG
    131.1 KB · Views: 73
Last edited:
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones