我的Web应用程序在localhost服务器中运行.在我的模拟器中,URL是http:// localhost:8080/myaction
是否可以从服务器检索信息?
当我启动我的Android模拟器它需要一些时间,然后它将显示模拟器-5554断开连接的消息.谁能告诉我这是什么问题?
String url =" http://127.0.0.1:8080/SampleServlet/TestServlet?"; URL url =新网址(con_url);
在android emualator中运行.但我得到了连接错误02-20 13:05:08.745:错误/服务器连接(230):java.net.ConnectException:/127.0.0.1:8080 - 连接被拒绝
请回复我
谢谢
<TextView
android:id="@+id/first_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/black"
android:textColor="@color/light_grey"
android:text="FirstName"
></TextView>
TextView first_text_view;
first_text_view = (TextView)this.findViewById(R.id.first_name);
try {
first_text_view.setText("Android");
}catch(Exception e) {
}
Run Code Online (Sandbox Code Playgroud)
我得到了nullpointer异常.
什么是解决方案.请回复我
[2010-03-04 11:50:15 - AndroidSamples]安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY
当我使用
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="com.google.android.maps" />
..
</application>
Run Code Online (Sandbox Code Playgroud)
请回复我