2015-09-27 120 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之外的所有標籤,並且加載正常。