RSS

4 responses to “Android Login System with PHP,MySQL and SQLite

  1. fononi • (@fononi)

    October 14, 2012 at 12:56 pm

    init.php and index.php are the same?

    i found this >> loginURL = “http://10.0.2.2/business_directory/includes/mobile/index.php

     
    • Rajitha

      October 14, 2012 at 1:57 pm

      Obviously not. index.php is the file which is going to validate user credentials sent with HTTP Request. It gets the request and generate a json response. init.php is only for defining some PHP variables.(database username,password)
      If you still have problems pls let me know.

       
  2. liviu todoran (@liviu_todoran)

    October 25, 2012 at 2:38 pm

    Hey ,I have a problem with “Acces Denied /JSON Parser / org.JSONException: Value Access of type java.lang.String cannot be converted to JsonObject”.
    I think there is a problem when I pas my “TAG” to url , it don´t creat me a JSON.
    Can you help me?

     
    • Rajitha

      October 26, 2012 at 9:48 am

      Hi liviu,
      Sorry for late reply. It seems that json response can not be parsed well. Make sure your response does not include unnecessary HTML.
      Server may produce standard HTML with headers.
      Try sending the header(‘Content-type: json/application’) before printing json_encode($response).

       

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: