Salve a tutti, volevo parlarvi di un problema strano.
Ho trovato su internet una guida dove spiegava come realizzare un parser per feed rss.
Seguendo la guida, sono riuscito a scriver un parser che mette in una listview i feed rss.
Ho collegato il Galaxy S un Debug mode, mentre al Galaxy Y ho solo mandato l'Apk firmato via bluetooth.
Nel Virtual Device il parser funziona, sul Galaxy S no. Mi Da' un errore come se non ci fosse connessione ad internet, eppure la wifi sul Galaxy S è collegata al router e funziona.
Vi allego il codice Java e il logcat del Galaxy S
layour main
Classi utilizzate:
Logcat Galaxy S:
codice:
08-07 21:53:15.044: D/AndroidRuntime(11093): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
08-07 21:53:15.044: D/AndroidRuntime(11093): CheckJNI is OFF
08-07 21:53:15.052: D/AndroidRuntime(11093): setted country_code = ITALY
08-07 21:53:15.052: D/AndroidRuntime(11093): setted sales_code = OMN
08-07 21:53:15.052: D/AndroidRuntime(11093): readGMSProperty: start
08-07 21:53:15.052: D/AndroidRuntime(11093): readGMSProperty: already setted!!
08-07 21:53:15.060: D/AndroidRuntime(11093): readGMSProperty: end
08-07 21:53:15.076: D/PoliciesMultiplexer(8605): grouping policies by name
08-07 21:53:15.076: D/PoliciesMultiplexer(8605): grouped policies by name
08-07 21:53:15.076: D/PoliciesMultiplexer(8605): finding the strongest policies
08-07 21:53:15.076: D/PoliciesMultiplexer(8605): found the strongest policies
08-07 21:53:15.076: D/PoliciesMultiplexer(8605): applying policies to the device
08-07 21:53:15.083: D/ExchangeService(8655): collect eas accounts
08-07 21:53:15.099: D/ExchangeService(8655): onAccountChanged(): mAccountList size is 1
08-07 21:53:15.123: I/ExchangeService(8655): updateAccountDb start
08-07 21:53:15.123: I/ExchangeService(8655): 3: in offpeak=[-2] db interval=[-2]
08-07 21:53:15.138: D/EmailProvider(8617): getDB first open?false
08-07 21:53:15.138: D/EmailProvider(8617): get used db ok
08-07 21:53:15.138: I/ExchangeService(8655): updateAccountDb end
08-07 21:53:15.138: D/ActivityThread(8617): Loading provider com.android.email.provider;com.android.email.notifier: com.android.email.provider.EmailProvider
08-07 21:53:15.177: D/PoliciesMultiplexer(8605): update
08-07 21:53:15.177: D/PoliciesMultiplexer(8605): getAllPolicies
08-07 21:53:15.185: D/PoliciesMultiplexer(8605): grouping policies by name
08-07 21:53:15.185: D/PoliciesMultiplexer(8605): grouped policies by name
08-07 21:53:15.185: D/PoliciesMultiplexer(8605): finding the strongest policies
08-07 21:53:15.185: D/PoliciesMultiplexer(8605): found the strongest policies
08-07 21:53:15.185: D/PoliciesMultiplexer(8605): applying policies to the device
08-07 21:53:15.208: I/ExchangeService(8655): updateAccountDb start
08-07 21:53:15.208: I/ExchangeService(8655): 3: in offpeak=[-2] db interval=[-2]
08-07 21:53:15.216: I/ExchangeService(8655): updateAccountDb end
08-07 21:53:15.240: D/LibQmg_native(11093): register_android_app_LibQmg
08-07 21:53:15.271: D/AndroidRuntime(11093): Calling main entry com.android.commands.am.Am
08-07 21:53:15.279: I/power(210): *** acquire_dvfs_lock : lockType : 1 freq : 1008000
08-07 21:53:15.279: I/ActivityManager(210): START {intent.toShortString} from pid 11093
08-07 21:53:15.279: D/PowerManagerService(210): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1008000 uid : 1000 pid : 210 tag : ActivityManager
08-07 21:53:15.279: W/ActivityManager(210): mDVFSLock.acquire()
08-07 21:53:15.294: D/dalvikvm(8605): GC_EXPLICIT freed 363K, 10% free 7795K/8647K, paused 2ms+3ms
08-07 21:53:15.341: D/KeyguardViewMediator(210): setHidden false
08-07 21:53:15.357: D/AndroidRuntime(11093): Shutting down VM
08-07 21:53:15.357: D/ActivityManager(210): Trying to launch applicationName
08-07 21:53:15.365: D/dalvikvm(11093): GC_CONCURRENT freed 102K, 81% free 509K/2560K, paused 0ms+1ms
08-07 21:53:15.365: D/jdwp(11093): Got wake-up signal, bailing out of select
08-07 21:53:15.365: D/dalvikvm(11093): Debugger has detached; object registry had 1 entries
08-07 21:53:15.373: I/AndroidRuntime(11093): NOTE: attach of thread 'Binder Thread #3' failed
08-07 21:53:15.373: D/OpenGLRenderer(10353): Flushing caches (mode 1)
08-07 21:53:15.388: D/KeyguardViewMediator(210): setHidden false
08-07 21:53:15.412: E/ITCRssReader(10865): Couldn't open http://mic87xp1.altervista.org/wordpress/?feed=rss2
08-07 21:53:15.427: D/STATUSBAR-StatusBarManagerService(210): setSystemUiVisibility(0x0)
Nel Manifest ho messo questo permesso:
Forse ne devo aggiungere altri?