실행 했는데 아래 코드에서 에러가 나고 있습니다.
=========================================================================
private void refreshEarthquakes() {
URL url;
try {
String quakeFeed = getString(R.string.quake_feed);
url = new URL(quakeFeed);
URLConnection connection;
connection = url.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection)connection;
int responseCode = httpConnection.getResponseCode();
if(responseCode == HttpURLConnection.HTTP_OK) {
InputStream in = httpConnection.getInputStream();
=========================================================================
Timeout이 되어 계속 에러 팝업이 발생하네요.
URL은 http://earthquake.usgs.gov/eqcenter/catalogs/1day-M2.5.xml 입니다.
Browser로 접속 시도시에는 정상적으로 Data 보여지고 있습니다.
Log cat 정보를 보려고 했으나 문제 상황의 Log를 받지를 못해서 같이 올리지 못 했습니다.
위 문제 확인 부탁 드립니다.
저도 검색해 봤는데 동작 안하는 분이 꽤 계셨으나 해결 방법에 대한 내용이 없어서 이렇게 문의 하게 되었습니다.
확인 부탁 드립니다.
Manifest 파일 입니다.
어느 부분 수정이 필요한 건가요???
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.paad.earthquake"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Earthquake"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="Preferences"
android:label="Earthquake Preferences"></activity>
</application>
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
10-22 23:44:15.941: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
10-22 23:44:15.941: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
10-22 23:44:15.941: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
10-22 23:44:15.941: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
10-22 23:44:27.582: ERROR/MemoryHeapBase(569): error opening /dev/pmem: No such file or directory
10-22 23:44:27.592: ERROR/SurfaceFlinger(569): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
10-22 23:44:27.632: ERROR/libEGL(569): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
10-22 23:44:28.102: ERROR/libEGL(586): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
10-22 23:44:31.511: ERROR/BatteryService(569): Could not open '/sys/class/power_supply/usb/online'
10-22 23:44:31.521: ERROR/BatteryService(569): Could not open '/sys/class/power_supply/battery/batt_vol'
10-22 23:44:31.521: ERROR/BatteryService(569): Could not open '/sys/class/power_supply/battery/batt_temp'
10-22 23:44:31.931: ERROR/EventHub(569): could not get driver version for /dev/input/mouse0, Not a typewriter
10-22 23:44:31.972: ERROR/EventHub(569): could not get driver version for /dev/input/mice, Not a typewriter
10-22 23:44:31.992: ERROR/System(569): Failure starting core service
10-22 23:44:31.992: ERROR/System(569): java.lang.SecurityException
10-22 23:44:31.992: ERROR/System(569): at android.os.BinderProxy.transact(Native Method)
10-22 23:44:31.992: ERROR/System(569): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
10-22 23:44:31.992: ERROR/System(569): at android.os.ServiceManager.addService(ServiceManager.java:72)
10-22 23:44:31.992: ERROR/System(569): at com.android.server.ServerThread.run(SystemServer.java:162)
10-22 23:44:31.992: ERROR/AndroidRuntime(569): Crash logging skipped, no checkin service
10-22 23:44:33.120: ERROR/LockPatternKeyguardView(569): Failed to bind to GLS while checking for account
10-22 23:44:38.511: ERROR/ActivityThread(618): Failed to find provider info for com.google.settings
10-22 23:44:38.511: ERROR/ActivityThread(618): Failed to find provider info for com.google.settings
10-22 23:44:41.530: ERROR/ApplicationContext(569): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
10-22 23:44:44.542: ERROR/vold(538): Cannot start volume '/sdcard' (volume is not bound)
10-22 23:44:41.987: ERROR/ActivityThread(616): Failed to find provider info for android.server.checkin
10-22 23:44:44.248: ERROR/ActivityThread(616): Failed to find provider info for android.server.checkin
10-22 23:44:44.457: ERROR/ActivityThread(616): Failed to find provider info for android.server.checkin
10-22 23:44:46.497: ERROR/MediaPlayerService(542): Couldn't open fd for content://settings/system/notification_sound
10-22 23:44:46.507: ERROR/MediaPlayer(569): Unable to to create media player