I confuse why I can't download from emulator. from website i can download the file successful. but from emulator it appear error 500
this is the message that i got
Server error! the server encountered an internal error and was unable to complete your request. either the server is overloaded or there was an error in a CGI script. if you think this is a server error, please contact the webmaster.
ERROR 500 10.0.2.2 Apache/2.2.17(win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
this is my download config.java
public class Kondownload {
String urlKarismaLearning= "http://10.0.2.2/";
public Kondownload(String urlml){
urlKarismaLearning = urlKarismaLearning+urlml;
}
public String getUrl(){
return urlKarismaLearning;
}
}
this is my download.java to show the link
package mobile.download;
import java.util.regex.Pattern;
import mobile.config.Kondownload;
import com.karismaelearning.R;
import android.app.Activity;
import android.os.Bundle;
import android.text.util.Linkify;
import android.widget.TextView;
public class DownloadText extends Activity{
public Kondownload linkurl;
String url;
String SERVER_URL;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.linkdownload);
TextView mTextLink = (TextView) findViewById(R.id.LinkDownload);
Bundle bundle = this.getIntent().getExtras();
String param1 = bundle.getString("keyIdc");
String param2 = bundle.getString("keyReference");
linkurl = new Kondownload("moodledata/"+param1+"/"+param2);
SERVER_URL = linkurl.getUrl();
mTextLink.setText(SERVER_URL);
Pattern pattern = Pattern.compile(SERVER_URL);
Linkify.addLinks(mTextLink, pattern, "");
}
}
i already put internet permission in my manifest
<uses-permission android:name="android.permission.INTERNET"/>
my .htaccess - before i edited
order deny,allow
allow from all
.htaccess after i edited
order deny,allow
allow from all
<Directory />
AllowOverride All
</Directory>
please help me.. thank you