java - ClassLoader referenced unknown path when going to next activity -
i have 4 different buttons. 3 of them lead same activity, populate arraylist different data. difference between different sets of data size.
everytime use working button selectcountryandstatebutton
works fine. when use getallfacilitiesbutton
application returns previous activity , following in logcat
02-08 11:56:26.649 22325-22325/? w/system: classloader referenced unknown path: /data/app/com.company.app-1/lib/x86 02-08 11:56:26.668 22325-22325/? i/gmpm: app measurement starting up, version: 8487 02-08 11:56:26.668 22325-22325/? i/gmpm: enable debug logging run: adb shell setprop log.tag.gmpm verbose 02-08 11:56:26.791 22325-22336/com.company.app i/art: background partial concurrent mark sweep gc freed 418(17kb) allocspace objects, 0(0b) los objects, 40% free, 4mb/7mb, paused 9.593ms total 21.620ms 02-08 11:56:27.097 22325-22359/com.company.app d/openglrenderer: use egl_swap_behavior_preserved: true 02-08 11:56:27.177 22325-22359/com.company.app i/openglrenderer: initialized egl, version 1.4 02-08 11:56:27.187 22325-22359/com.company.app w/egl_emulation: eglsurfaceattrib not implemented 02-08 11:56:27.187 22325-22359/com.company.app w/openglrenderer: failed set egl_swap_behavior on surface 0xad7e0960, error=egl_success
prior error, received following.
02-08 11:38:41.064 14907-14907/? e/gmpm: googleservice failed initialize, status: 10, missing expected resource: 'r.string.google_app_id' initializing google services. possible causes missing google-services.json or com.google.gms.google-services gradle plugin.
however corrected error adding google_app_id.xml
resources.
why getting class loader unknown reference problem when same exact code works set of data smaller?
edit: 2/8/2016 1:25pm [central]
found out messages filtered. i'm getting following error:
e/javabinder: !!! failed binder transaction !!! (parcel size = 526172)
which means list of 644 objects big pass next activity. answer solution
-----below code-----
working button (facilities.size() < 100 )
selectcountryandstatebutton.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { serviceconnector sc = getserviceconnector(); sc.execute(apicallenum.search_by_country, countryselected, stateselected); try { string data = sc.get(); list<facility> facilities = jsonparser.getfromjson(data); //open list activity of facilities openlistactivity(facilities); } catch (executionexception e) { e.printstacktrace(); } catch (interruptedexception e) { e.printstacktrace(); } } });
button not work (facilities.size() = 644)
getallfacilitiesbutton.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { log.i("search", "get all"); serviceconnector sc = getserviceconnector(); sc.execute(apicallenum.get_all_facilities); try { string data = sc.get(); list<facility> facilities = jsonparser.getfromjson(data); openlistactivity(facilities); } catch (executionexception e) { e.printstacktrace(); } catch (interruptedexception e) { e.printstacktrace(); } } });
open next activity code
private void openlistactivity(list<factility> f) { intent intent = new intent(findlocation.this, listingactivity.class); intent.putextra("facilities", new facilitylist(f)); startactivity(intent); }
the issue caused trying pass large list of facilities through intent.
i solved performing retrieved data in new activity, , instead passing information needed get.
Comments
Post a Comment