mohammad1243

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

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

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

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

0 Neutral

درباره mohammad1243

  • درجه
    Newbie
  1. نوشته های android monitor : 07-20 11:32:48.950 4366-4366/? I/art: Not late-enabling -Xcheck:jni (already on) 07-20 11:32:48.951 4366-4366/? W/art: Unexpected CPU variant for X86 using defaults: x86 07-20 11:32:49.223 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System: ClassLoader referenced unknown path: /data/app/app.zendgi.zanashoie.ir.zendegi-2/lib/x86 07-20 11:32:49.233 4366-4366/app.zendgi.zanashoie.ir.zendegi I/InstantRun: starting instant run server: is main process 07-20 11:32:49.403 4366-4366/app.zendgi.zanashoie.ir.zendegi W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 07-20 11:32:49.502 4366-4366/app.zendgi.zanashoie.ir.zendegi I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead. 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: java.io.IOException: Permission denied 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at java.io.UnixFileSystem.createFileExclusively0(Native Method) 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:280) 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at java.io.File.createNewFile(File.java:948) 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at app.zendgi.zanashoie.ir.zendegi.MainActivity.onCreate(MainActivity.java:104) 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.Activity.performCreate(Activity.java:6679) 07-20 11:32:49.752 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.os.Looper.loop(Looper.java:154) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6119) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at java.lang.reflect.Method.invoke(Native Method) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 07-20 11:32:49.753 4366-4366/app.zendgi.zanashoie.ir.zendegi W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 07-20 11:32:49.861 4366-4406/app.zendgi.zanashoie.ir.zendegi I/OpenGLRenderer: Initialized EGL, version 1.4 07-20 11:32:49.862 4366-4406/app.zendgi.zanashoie.ir.zendegi W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 07-20 11:32:49.947 4366-4366/app.zendgi.zanashoie.ir.zendegi W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView و کدهای کلاس Befaria package app.zendgi.zanashoie.ir.zendegi; /** * Created by Mohammad on 14/07/2017. */ public class Befaria { public String title; public String data; public int fav; public String subject; public int id; Befaria(int id, String title, String data, int fav, String subject){ this.title = title; this.data = data; this.fav = fav; this.subject = subject; this.id = id; } public String getTitle(){ return title; } public void setTitle(String title){ this.title = title; } public String getData(){ return data; } public void setData(String data){ this.data = data; } public int getFav(){ return fav; } public void setFav(int fav){ this.fav = fav; } public String getSubject(){ return subject; } public void setSubject(String subject){ this.subject = subject; } public int getId(){ return id; } public void setId(int id){ this.id = id; } }
  2. با عرض سلام خسته نباشید من برنامه ای نوشتم میخواهم مقادیر یک ستون از دیتابیس را در ریسایکر ویو نمایش بدم اما چیزی نشون داده نشون داده نمیشه تابع واکشی اطلاعات دیتابیس: private void selectsub(){ database = SQLiteDatabase.openOrCreateDatabase(destPath + "/dbook.sqlite", null); Cursor cu = database.rawQuery("SELECT * FROM main WHERE subject = 'a'", null); while (cu.moveToNext()){ String title = cu.getString(cu.getColumnIndex("title")); String data = cu.getString(cu.getColumnIndex("data")); int fav = cu.getInt(cu.getColumnIndex("fav")); String subject = cu.getString(cu.getColumnIndex("subject")); int id = cu.getInt(cu.getColumnIndex("id")); Befaria befaria = new Befaria(id,title,data,fav,subject); befaria.setTitle(title); befaria.setData(data); befaria.setFav(fav); befaria.setSubject(subject); befaria.setId(id); sub.add(befaria); } کد های رسایکر ویو : package app.zendgi.zanashoie.ir.zendegi; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; /** * Created by Mohammad on 13/07/2017. */ public class AdapterRecy extends RecyclerView.Adapter<ViewHolder> { Context context; LayoutInflater layoutInflater; TextView tvName; ImageView ImgView; public AdapterRecy(Context context) { this.context = context; layoutInflater = LayoutInflater.from(context); } @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = layoutInflater.inflate(R.layout.options_recy, parent, false); tvName = (TextView) view.findViewById(R.id.tvName); ImgView = (ImageView) view.findViewById(R.id.imView); ViewHolder viewHolder = new ViewHolder(view); return viewHolder; } @Override public void onBindViewHolder(ViewHolder holder, int position) { tvName.setText(MainActivity.sub.get(position).getTitle()); } @Override public int getItemCount() { return MainActivity.sub.size(); } } و خطای های android monitor