I'm new to StackOverflow and Android altogether. I successfully parsed JSON from a direct URL
http://jsonapptest.x10host.com/index.php
The problem I'm facing is I'm trying to make everything a little more complex by adding PHP's URL ?= function. So, on a normal browser loading up :
http://jsonapptest.x10host.com/index.php?page=
works fine. In my App; it doesn't work at all (blank white screen)
public class MainActivity extends Activity{
// Log tag
private static final String TAG = MainActivity.class.getSimpleName();
// Movies json url
private static final String url = "http://jsonapptest.x10host.com/index.php?page=";
private ProgressDialog pDialog;
private List<Movie> movieList = new ArrayList<Movie>();
Please give me a hand, I'm confused.
The problem was in my index.php file. I had <HTML>
and <body>
tags. I removed all tags except for my <?php
and it loads up fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.