android studio - App unfortunately closing -
i receiving "app has unfortunately stopped" error. using parse assuming issue lies somewhere within that.
this java file causes error when loading
public class newtipactivity extends activity { private tip tip; @override protected void oncreate(bundle savedinstancestate) { tip = new tip(); requestwindowfeature(window.feature_no_title); getwindow().addflags(windowmanager.layoutparams.flag_fullscreen); super.oncreate(savedinstancestate); //new tip fragment setcontentview(r.layout.activity_new_tip); fragmentmanager manager = getfragmentmanager(); fragment fragment = manager.findfragmentbyid(r.id.fragmentcontainer); if (fragment == null) { fragment = new newtipfragment(); manager.begintransaction().add(r.id.fragmentcontainer, fragment) .commit(); } } public tip getcurrenttip() { return tip; } }
java.lang.runtimeexception: unable start activity componentinfo{com.holyapp.danshinn.wingman_etiquette/com.holyapp.danshinn.wingman_etiquette.newtipactivity}: java.lang.illegalargumentexception: cannot setreadaccess user null id @ android.app.activitythread.performlaunchactivity(activitythread.java:2211) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2261) @ android.app.activitythread.access$600(activitythread.java:141) @ android.app.activitythread$h.handlemessage(activitythread.java:1256) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:5103) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:737) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) @ dalvik.system.nativestart.main(native method) caused by: java.lang.illegalargumentexception: cannot setreadaccess user null id @ com.parse.parseacl.setreadaccess(parseacl.java:308) @ com.parse.parseacl.getdefaultacl(parseacl.java:61) @ com.parse.parseobject.setdefaultvalues(parseobject.java:3385) @ com.parse.parseobject.(parseobject.java:181) @ com.parse.parseobject.(parseobject.java:127) @ com.holyapp.danshinn.wingman_etiquette.tip.(tip.java:17) @ com.holyapp.danshinn.wingman_etiquette.newtipactivity.oncreate(newtipactivity.java:20) @ android.app.activity.performcreate(activity.java:5133) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) @ android.app.activitythread.performlaunchactivity(activitythread.java:2175) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2261) @ android.app.activitythread.access$600(activitythread.java:141) @ android.app.activitythread$h.handlemessage(activitythread.java:1256) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:137) at android.app.activitythread.main(activitythread.java:5103) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:737) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) @ dalvik.system.nativestart.main(native method)
Comments
Post a Comment