2015-09-27 118 views
0

我是StackOverflow和Android的新手。我成功地解析JSON从直接URLAndroid JSON解析URL

http://jsonapptest.x10host.com/index.php 

我现在面临的问题是我试图让一切多一点加入PHP的网址是什么?=功能复杂。 因此,在一个正常的浏览器加载:

http://jsonapptest.x10host.com/index.php?page= 

工作正常。 在我的应用程序;它根本不起作用(空白屏幕)

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>(); 

请给我一只手,我很困惑。

+0

欢迎来到StackOverflow!请阅读[如何问](http://stackoverflow.com/help/how-to-ask) –

回答

0

问题出在我的index.php文件中。我有<HTML><body>标签。我删除了除我的<?php之外的所有标签,并且加载正常。