soltane7posh

توسعه دهنده اندروید
  • تعداد ارسال ها

    5
  • تاریخ عضویت

  • آخرین بازدید

اعتبار در انجمن

0 Neutral

درباره soltane7posh

  • درجه
    Newbie

Converted

  • website
    http://mohajeranifard.ir
  • yahoo
    soltane7posh
  1. ممنون عکس ها لود شدن توی دیتابیس و همون قسمت کد توی اندروید استودیو ای پی جنی موشن رو وارد کردم الان فقط میخام اسکرول کنم ارور میده 06-28 10:55:51.461 5522-5522/realmadridparsi.realmadrid E/InputEventReceiver: Exception dispatching input event. 06-28 10:55:51.461 5522-5522/realmadridparsi.realmadrid E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 06-28 10:55:51.461 5522-5522/realmadridparsi.realmadrid E/MessageQueue-JNI: java.lang.IllegalArgumentException: Path must not be empty. at com.squareup.picasso.Picasso.load(Picasso.java:297) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:40) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:22) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6400) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6433) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5377) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5640) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5482) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5478) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2215) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1542) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1502) at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1316) at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1061) at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1727) at android.support.v7.widget.RecyclerView.onGenericMotionEvent(RecyclerView.java:3020) at android.view.View.dispatchGenericMotionEventInternal(View.java:8581) at android.view.View.dispatchGenericMotionEvent(View.java:8562) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2377) at com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1729) at android.app.Activity.dispatchGenericMotionEvent(Activity.java:2778) at android.support.v7.view.WindowCallbackWrapper.dispatchGenericMotionEvent(WindowCallbackWrapper.java:80) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2344) at android.view.View.dispatchPointerEvent(View.java:8668) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.ja 06-28 10:55:51.461 5522-5522/realmadridparsi.realmadrid D/AndroidRuntime: Shutting down VM 06-28 10:55:51.462 5522-5522/realmadridparsi.realmadrid E/AndroidRuntime: FATAL EXCEPTION: main Process: realmadridparsi.realmadrid, PID: 5522 java.lang.IllegalArgumentException: Path must not be empty. at com.squareup.picasso.Picasso.load(Picasso.java:297) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:40) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:22) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6400) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6433) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5377) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5640) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5482) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5478) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2215) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1542) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1502) at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1316) at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1061) at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1727) at android.support.v7.widget.RecyclerView.onGenericMotionEvent(RecyclerView.java:3020) at android.view.View.dispatchGenericMotionEventInternal(View.java:8581) at android.view.View.dispatchGenericMotionEvent(View.java:8562) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1919) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1870) at android.view.View.dispatchGenericMotionEvent(View.java:8555) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2377) at com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1729) at android.app.Activity.dispatchGenericMotionEvent(Activity.java:2778) at android.support.v7.view.WindowCallbackWrapper.dispatchGenericMotionEvent(WindowCallbackWrapper.java:80) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2344) at android.view.View.dispatchPointerEvent(View.java:8668) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563) a اینو کامت میکنم /* Picasso.with(context).load(post.getPostImageUrl().replace("10.0.3.15","192.168.1.7")).into(holder.newsImage); */ میتونم اسکرول کنم مشکل چیه ؟ کل کد های این بخش رو بزارم ؟ adapter رو بزارم ؟
  2. این قسمت منظورتون هست ؟
  3. بجای 192.168.1.103 یا بجای getpostimageurl عکس ها تو این مسیر هست http://localhost/RealMadrid/uploads/ که توی دیتابیس هم وارد شده میشه یکم راهنمایی جزئی تر بکنید ممنون میشم
  4. درود هنگامی که میخوام تصاویر رو دریافت کنم اول از همه که تصویر پست ها نیست بعد تا اسکرول می کنم که باقی خبرها رو بخونم کرش میکنه اپ و این ارور رو میده 06-24 18:11:18.807 4695-4695/realmadridparsi.realmadrid E/RecyclerView: No adapter attached; skipping layout 06-24 18:11:18.902 4695-4695/realmadridparsi.realmadrid W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value. 06-24 18:11:18.925 4695-4700/realmadridparsi.realmadrid I/art: Do partial code cache collection, code=30KB, data=30KB 06-24 18:11:18.927 4695-4700/realmadridparsi.realmadrid I/art: After code cache collection, code=30KB, data=30KB 06-24 18:11:18.927 4695-4700/realmadridparsi.realmadrid I/art: Increasing code cache capacity to 128KB 06-24 18:11:18.980 4695-4725/realmadridparsi.realmadrid D/OpenGLRenderer: endAllActiveAnimators on 0x8c249d80 (RippleDrawable) with handle 0x8be1bc20 06-24 18:11:34.895 4695-4695/realmadridparsi.realmadrid D/AndroidRuntime: Shutting down VM 06-24 18:11:34.896 4695-4695/realmadridparsi.realmadrid E/AndroidRuntime: FATAL EXCEPTION: main Process: realmadridparsi.realmadrid, PID: 4695 java.lang.IllegalArgumentException: Path must not be empty. at com.squareup.picasso.Picasso.load(Picasso.java:297) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:36) at realmadridparsi.realmadrid.NewsAdapter.onBindViewHolder(NewsAdapter.java:19) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6400) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6433) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5377) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5640) at android.support.v7.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:282) at android.support.v7.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:336) at android.support.v7.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:349) at android.support.v7.widget.GapWorker.prefetch(GapWorker.java:356) at android.support.v7.widget.GapWorker.run(GapWorker.java:387) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) و به این دو خط اشاره میکنه Picasso.with(context).load(post.getPostImageUrl().replace("localhost","192.168.1.103")).into(holder.newsImage); public class NewsAdapter extends RecyclerView.Adapter<NewsAdapter.NewsViewHolder> { private Context context; private List<Post> posts; public NewsAdapter (Context context, List<Post> posts){ this.context = context; this.posts = posts; }
  5. سلام بعد از ایمپورت کردن پروژه ای که با اکلیپس نوشته شده مشکلاتی داره اول اینکه برخی قسمت ها علامت سوال میاره ! و وقتی میخوام ران کنم این ارور رو میده Error:Execution failed for task ':app:mergeDebugResources'. > org.xml.sax.SAXParseException; systemId: file:/Users/Ali/AndroidStudioProjects/appmoharrammud/app/src/main/res/drawable-xhdpi/moodmoharram.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.