انجمن سایت کلیدستان



مشکل در فایل xmlزمان کنونی: ۱۳۹۵/۰۹/۱۴، ۰۸:۴۷ ب.ظ
کاربران در حال بازدید این موضوع: 1 مهمان
نویسنده: server0098
آخرین ارسال: Java_man
پاسخ 9
بازدید 882

رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
مشکل در فایل xml

مشکل در فایل xml

#1
با عرض سلام و خسته نباشید . دوستان بنده در یک Xml  میام یک اسکرول ویو تعریف میکنم بعدش 21 تا ایمیج ویو قرار میدم اما در شماره 22 ایراد میده نمی دونم مشکل از کجاست لطفا راهنمایی کنید خیلی نیاز دارم ...
 


فایل‌های پیوست

عکس(ها)
   
پاسخ

مشکل در فایل xml

#2
سلام.
کدتان را ذکر کنید.

bookbook 
لطفا برای درج کد، از دکمه مخصوص درج کد در ادیتور انجمن استفاده کنید.
در مورد برنامه نویسی، مدیران تنها راهنمایی می کنند و نوشتن برنامه نهایی، به عهده کاربران می باشد (اینجا محلی برای یادگیری است، نه سفارش کدنویسی).
کاربران باید ابتدا خود به خطایابی برنامه بپردازند، نه اینکه به محض دیدن خطا، کدها را در انجمن، copy و paste کرده و از مدیران انتظار بررسی داشته باشند.
پاسخ

مشکل در فایل xml

#3
با سلام بفرمایید 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >
      <ImageView
                android:id="@+id/imageView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                androidConfusedrc="@drawable/miyane" />

      <ImageView
          android:id="@+id/imageView2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/gergi" />
      <ImageView
          android:id="@+id/imageView3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/khar" />
      <ImageView
          android:id="@+id/imageView4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/sogot" />
      <ImageView
          android:id="@+id/imageView5"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/negah" />
      <ImageView
          android:id="@+id/imageView6"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/rod" />
      <ImageView
          android:id="@+id/imageView7"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/peyma" />
      <ImageView
          android:id="@+id/imageView8"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/docharkhe" />
      <ImageView
          android:id="@+id/imageView9"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/amozesh" />
      <ImageView
          android:id="@+id/imageView10"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/keif" />
      <ImageView
          android:id="@+id/imageView11"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/keik" />
      <ImageView
          android:id="@+id/imageView12"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/laky" />
      <ImageView
          android:id="@+id/imageView13"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/khab" />
      <ImageView
          android:id="@+id/imageView14"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/morde" />
      <ImageView
          android:id="@+id/imageView15"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/yakh" />
      <ImageView
          android:id="@+id/imageView16"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/nahang" />
      <ImageView
          android:id="@+id/imageView17"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/koodaky" />
      <ImageView
          android:id="@+id/imageView18"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/mojasame" />
      <ImageView
          android:id="@+id/imageView19"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/ziady" />
      <ImageView
          android:id="@+id/imageView20"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/dahan" />
      <ImageView
          android:id="@+id/imageView21"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          androidConfusedrc="@drawable/sohbat" />                                              
    
   </LinearLayout>
 </ScrollView>
 </LinearLayout>
پاسخ

مشکل در فایل xml

#4
 
کد پی‌اچ‌پی:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >
      <ImageView
                android:id="@+id/imageView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/miyane" />

      <ImageView
          android:id="@+id/imageView2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/gergi" />
      <ImageView
          android:id="@+id/imageView3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/khar" />
      <ImageView
          android:id="@+id/imageView4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/sogot" />
      <ImageView
          android:id="@+id/imageView5"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/negah" />
      <ImageView
          android:id="@+id/imageView6"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/rod" />
      <ImageView
          android:id="@+id/imageView7"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/peyma" />
      <ImageView
          android:id="@+id/imageView8"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/docharkhe" />
      <ImageView
          android:id="@+id/imageView9"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/amozesh" />
      <ImageView
          android:id="@+id/imageView10"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/keif" />
      <ImageView
          android:id="@+id/imageView11"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/keik" />
      <ImageView
          android:id="@+id/imageView12"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/laky" />
      <ImageView
          android:id="@+id/imageView13"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/khab" />
      <ImageView
          android:id="@+id/imageView14"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/morde" />
      <ImageView
          android:id="@+id/imageView15"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/yakh" />
      <ImageView
          android:id="@+id/imageView16"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/nahang" />
      <ImageView
          android:id="@+id/imageView17"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/koodaky" />
      <ImageView
          android:id="@+id/imageView18"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/mojasame" />
      <ImageView
          android:id="@+id/imageView19"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/ziady" />
      <ImageView
          android:id="@+id/imageView20"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/dahan" />
      <ImageView
          android:id="@+id/imageView21"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/sohbat" />                                              
    
   </LinearLayout>
 </ScrollView>
 </LinearLayout> 
 
پاسخ

مشکل در فایل xml

#5
دوست عزیز لوگ کت رو کامل بزارید و کد جاواتون هم قرار بدید

 
پاسخ

مشکل در فایل xml

#6
فایل جاواش
کد پی‌اچ‌پی:
package com.app.ajab;

import android.support.v7.app.ActionBarActivity;
import android.annotation.SuppressLint;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class 
Aks extends ActionBarActivity {

    @
Override
    
protected void onCreate(Bundle savedInstanceState) {
        
super.onCreate(savedInstanceState);
        
setContentView(R.layout.aks);
    }

    @
Override
    
public boolean onCreateOptionsMenu(Menu menu) {
        
// Inflate the menu; this adds items to the action bar if it is present.
        
getMenuInflater().inflate(R.menu.mainmenu);
        return 
true;
    }

    @
Override
    
public boolean onOptionsItemSelected(MenuItem item) {
        
// Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        
int id item.getItemId();
        if (
id == R.id.action_settings) {
            return 
true;
        }
        return 
super.onOptionsItemSelected(item);
    }

پاسخ

مشکل در فایل xml

#7
logcat
کد پی‌اچ‌پی:
07-23 04:21:47.775D/dalvikvm(983): GC_FOR_ALLOC freed 29K4free 18379K/19015Kpaused 6mstotal 6ms
07
-23 04:21:47.799I/dalvikvm-heap(983): Grow heap (frag case) to 28.500MB for 10575372-byte allocation
07
-23 04:21:47.815D/dalvikvm(983): GC_FOR_ALLOC freed 2K3free 28704K/29383Kpaused 14mstotal 14ms
07
-23 04:21:47.827D/dalvikvm(983): GC_CONCURRENT freed 0K3free 28704K/29383Kpaused 11ms+1mstotal 14ms
07
-23 04:21:47.911D/dalvikvm(983): GC_FOR_ALLOC freed 1K3free 28705K/29383Kpaused 3mstotal 3ms
07
-23 04:21:47.911I/dalvikvm-heap(983): Grow heap (frag case) to 30.903MB for 2520460-byte allocation
07
-23 04:21:47.931D/dalvikvm(983): GC_CONCURRENT freed <1K3free 31166K/31879Kpaused 12ms+1mstotal 16ms
07
-23 04:21:47.947D/dalvikvm(983): GC_FOR_ALLOC freed <1K3free 31168K/31879Kpaused 4mstotal 4ms
07
-23 04:21:47.963I/dalvikvm-heap(983): Grow heap (frag case) to 33.308MB for 2520460-byte allocation
07
-23 04:21:47.987D/dalvikvm(983): GC_CONCURRENT freed <1K3free 33629K/34375Kpaused 16ms+0mstotal 26ms
07
-23 04:21:47.995D/dalvikvm(983): GC_FOR_ALLOC freed <1K3free 33630K/34375Kpaused 4mstotal 4ms
07
-23 04:21:48.003I/dalvikvm-heap(983): Grow heap (frag case) to 35.713MB for 2520460-byte allocation
07
-23 04:21:48.019D/dalvikvm(983): GC_CONCURRENT freed <1K3free 36092K/36871Kpaused 11ms+1mstotal 16ms
07
-23 04:21:49.439D/dalvikvm(983): GC_FOR_ALLOC freed 30K2free 36150K/36871Kpaused 6mstotal 6ms
07
-23 04:21:49.459I/dalvikvm-heap(983): Grow heap (frag case) to 45.856MB for 10575372-byte allocation
07
-23 04:21:49.479D/dalvikvm(983): GC_CONCURRENT freed 10246K24free 36232K/47239Kpaused 11ms+1mstotal 15ms
07
-23 04:21:49.571D/dalvikvm(983): GC_FOR_ALLOC freed <1K24free 36237K/47239Kpaused 3mstotal 3ms
07
-23 04:21:49.571I/dalvikvm-heap(983): Grow heap (frag case) to 38.981MB for 3278092-byte allocation
07
-23 04:21:49.587D/dalvikvm(983): GC_CONCURRENT freed <1K17free 39438K/47239Kpaused 12ms+1mstotal 17ms
07
-23 04:21:49.599D/dalvikvm(983): GC_FOR_ALLOC freed <1K17free 39440K/47239Kpaused 3mstotal 3ms
07
-23 04:21:49.603I/dalvikvm-heap(983): Grow heap (frag case) to 42.109MB for 3278092-byte allocation
07
-23 04:21:49.619D/dalvikvm(983): GC_CONCURRENT freed <1K10free 42641K/47239Kpaused 13ms+0mstotal 17ms
07
-23 04:21:49.639D/dalvikvm(983): GC_FOR_ALLOC freed <1K10free 42643K/47239Kpaused 4mstotal 4ms
07
-23 04:21:49.639I/dalvikvm-heap(983): Grow heap (frag case) to 45.237MB for 3278092-byte allocation
07
-23 04:21:49.655D/dalvikvm(983): GC_CONCURRENT freed <1K3free 45844K/47239Kpaused 12ms+1mstotal 17ms
07
-23 04:21:49.667D/dalvikvm(983): GC_FOR_ALLOC freed <1K3free 45846K/47239Kpaused 3mstotal 3ms
07
-23 04:21:49.679I/dalvikvm-heap(983): Grow heap (frag case) to 48.365MB for 3278092-byte allocation
07
-23 04:21:49.695D/dalvikvm(983): GC_CONCURRENT freed <1K3free 49047K/50503Kpaused 10ms+1mstotal 14ms
07
-23 04:21:49.711D/dalvikvm(983): GC_FOR_ALLOC freed <1K3free 49048K/50503Kpaused 5mstotal 5ms
07
-23 04:21:49.715I/dalvikvm-heap(983): Grow heap (frag case) to 51.493MB for 3278092-byte allocation
07
-23 04:21:49.739D/dalvikvm(983): GC_CONCURRENT freed <1K3free 52250K/53767Kpaused 12ms+1mstotal 21ms
07
-23 04:21:50.931D/dalvikvm(983): GC_FOR_ALLOC freed 15K3free 52303K/53767Kpaused 8mstotal 9ms
07
-23 04:21:50.931I/dalvikvm-heap(983): Grow heap (frag case) to 53.352MB for 1895948-byte allocation
07
-23 04:21:50.947D/dalvikvm(983): GC_FOR_ALLOC freed 3K3free 54151K/55623Kpaused 5mstotal 5ms
07
-23 04:21:50.967D/dalvikvm(983): GC_FOR_ALLOC freed <1K2free 54984K/56071Kpaused 5mstotal 5ms
07
-23 04:21:50.999D/dalvikvm(983): GC_FOR_ALLOC freed 1K2free 56766K/57479Kpaused 6mstotal 8ms
07
-23 04:21:51.031D/dalvikvm(983): GC_FOR_ALLOC freed <1K2free 58148K/59015Kpaused 6mstotal 7ms
07
-23 04:21:51.067D/dalvikvm(983): GC_FOR_ALLOC freed 1K2free 59664K/60615Kpaused 8mstotal 8ms
07
-23 04:25:34.571D/dalvikvm(1060): GC_FOR_ALLOC freed 139K8free 8110K/8775Kpaused 4mstotal 4ms
07
-23 04:25:34.583I/dalvikvm-heap(1060): Grow heap (frag case) to 18.354MB for 10450956-byte allocation
07
-23 04:25:34.599D/dalvikvm(1060): GC_CONCURRENT freed 1K4free 18315K/19015Kpaused 11ms+0mstotal 14ms
07
-23 04:25:34.751D/(1060): HostConnection::get() New Host Connection established 0xb8aa2768tid 1060
07
-23 04:25:39.799D/dalvikvm(1060): GC_FOR_ALLOC freed 27K4free 18379K/19015Kpaused 3mstotal 3ms
07
-23 04:25:39.811I/dalvikvm-heap(1060): Grow heap (frag case) to 28.500MB for 10575372-byte allocation
07
-23 04:25:39.823D/dalvikvm(1060): GC_FOR_ALLOC freed 2K3free 28704K/29383Kpaused 13mstotal 13ms
07
-23 04:25:39.835D/dalvikvm(1060): GC_CONCURRENT freed 0K3free 28704K/29383Kpaused 10ms+1mstotal 13ms
07
-23 04:25:39.903D/dalvikvm(1060): GC_FOR_ALLOC freed 1K3free 28705K/29383Kpaused 3mstotal 3ms
07
-23 04:25:39.907I/dalvikvm-heap(1060): Grow heap (frag case) to 30.903MB for 2520460-byte allocation
07
-23 04:25:39.923D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 31166K/31879Kpaused 11ms+1mstotal 14ms
07
-23 04:25:39.931D/dalvikvm(1060): GC_FOR_ALLOC freed <1K3free 31168K/31879Kpaused 3mstotal 3ms
07
-23 04:25:39.935I/dalvikvm-heap(1060): Grow heap (frag case) to 33.308MB for 2520460-byte allocation
07
-23 04:25:39.951D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 33629K/34375Kpaused 12ms+0mstotal 16ms
07
-23 04:25:39.959D/dalvikvm(1060): GC_FOR_ALLOC freed <1K3free 33630K/34375Kpaused 4mstotal 5ms
07
-23 04:25:39.963I/dalvikvm-heap(1060): Grow heap (frag case) to 35.713MB for 2520460-byte allocation
07
-23 04:25:39.979D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 36092K/36871Kpaused 11ms+1mstotal 15ms
07
-23 04:25:41.439D/dalvikvm(1060): GC_FOR_ALLOC freed 30K2free 36150K/36871Kpaused 6mstotal 6ms
07
-23 04:25:41.451I/dalvikvm-heap(1060): Grow heap (frag case) to 45.856MB for 10575372-byte allocation
07
-23 04:25:41.467D/dalvikvm(1060): GC_CONCURRENT freed 10246K24free 36232K/47239Kpaused 13ms+1mstotal 17ms
07
-23 04:25:41.539D/dalvikvm(1060): GC_FOR_ALLOC freed <1K24free 36237K/47239Kpaused 3mstotal 3ms
07
-23 04:25:41.539I/dalvikvm-heap(1060): Grow heap (frag case) to 38.981MB for 3278092-byte allocation
07
-23 04:25:41.555D/dalvikvm(1060): GC_CONCURRENT freed <1K17free 39438K/47239Kpaused 11ms+0mstotal 16ms
07
-23 04:25:41.567D/dalvikvm(1060): GC_FOR_ALLOC freed <1K17free 39440K/47239Kpaused 3mstotal 4ms
07
-23 04:25:41.571I/dalvikvm-heap(1060): Grow heap (frag case) to 42.109MB for 3278092-byte allocation
07
-23 04:25:41.583D/dalvikvm(1060): GC_CONCURRENT freed <1K10free 42641K/47239Kpaused 10ms+1mstotal 14ms
07
-23 04:25:41.599D/dalvikvm(1060): GC_FOR_ALLOC freed <1K10free 42643K/47239Kpaused 5mstotal 5ms
07
-23 04:25:41.599I/dalvikvm-heap(1060): Grow heap (frag case) to 45.237MB for 3278092-byte allocation
07
-23 04:25:41.615D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 45844K/47239Kpaused 10ms+1mstotal 15ms
07
-23 04:25:41.627D/dalvikvm(1060): GC_FOR_ALLOC freed <1K3free 45846K/47239Kpaused 4mstotal 4ms
07
-23 04:25:41.631I/dalvikvm-heap(1060): Grow heap (frag case) to 48.365MB for 3278092-byte allocation
07
-23 04:25:41.647D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 49047K/50503Kpaused 11ms+1mstotal 16ms
07
-23 04:25:41.663D/dalvikvm(1060): GC_FOR_ALLOC freed <1K3free 49049K/50503Kpaused 5mstotal 5ms
07
-23 04:25:41.667I/dalvikvm-heap(1060): Grow heap (frag case) to 51.493MB for 3278092-byte allocation
07
-23 04:25:41.683D/dalvikvm(1060): GC_CONCURRENT freed <1K3free 52250K/53767Kpaused 11ms+1mstotal 16ms
07
-23 04:25:43.291D/dalvikvm(1060): GC_FOR_ALLOC freed 15K3free 52303K/53767Kpaused 7mstotal 8ms
07
-23 04:25:43.291I/dalvikvm-heap(1060): Grow heap (frag case) to 53.352MB for 1895948-byte allocation
07
-23 04:25:43.303D/dalvikvm(1060): GC_FOR_ALLOC freed 3K3free 54151K/55623Kpaused 4mstotal 4ms
07
-23 04:25:43.319D/dalvikvm(1060): GC_FOR_ALLOC freed <1K2free 54984K/56071Kpaused 5mstotal 5ms
07
-23 04:25:43.347D/dalvikvm(1060): GC_FOR_ALLOC freed 1K2free 56766K/57479Kpaused 5mstotal 6ms
07
-23 04:25:43.367D/dalvikvm(1060): GC_FOR_ALLOC freed <1K2free 58148K/59015Kpaused 4mstotal 4ms
07
-23 04:25:43.391D/dalvikvm(1060): GC_FOR_ALLOC freed 1K2free 59664K/60615Kpaused 5mstotal 6ms
07
-23 04:25:43.415D/dalvikvm(1060): GC_FOR_ALLOC freed 1K2free 61322K/62023Kpaused 5mstotal 6ms
07
-23 04:27:20.695D/AndroidRuntime(1095): Shutting down VM
07
-23 04:27:20.695W/dalvikvm(1095): threadid=1thread exiting with uncaught exception (group=0xa6311288)
07-23 04:27:20.719E/AndroidRuntime(1095): FATAL EXCEPTIONmain
07
-23 04:27:20.719E/AndroidRuntime(1095): java.lang.RuntimeExceptionUnable to instantiate application android.app.Applicationjava.lang.NullPointerException
07
-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.LoadedApk.makeApplication(LoadedApk.java:501)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4124)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.ActivityThread.access$1300(ActivityThread.java:130)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.os.Looper.loop(Looper.java:137)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.ActivityThread.main(ActivityThread.java:4745)
07-23 04:27:20.719E/AndroidRuntime(1095):     at java.lang.reflect.Method.invokeNative(Native Method)
07-23 04:27:20.719E/AndroidRuntime(1095):     at java.lang.reflect.Method.invoke(Method.java:511)
07-23 04:27:20.719E/AndroidRuntime(1095):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-23 04:27:20.719E/AndroidRuntime(1095):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-23 04:27:20.719E/AndroidRuntime(1095):     at dalvik.system.NativeStart.main(Native Method)
07-23 04:27:20.719E/AndroidRuntime(1095): Caused byjava.lang.NullPointerException
07
-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:377)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.LoadedApk.getClassLoader(LoadedApk.java:320)
07-23 04:27:20.719E/AndroidRuntime(1095):     at android.app.LoadedApk.makeApplication(LoadedApk.java:493)
07-23 04:27:20.719E/AndroidRuntime(1095):     ... 11 more
07
-23 04:27:22.219D/dalvikvm(1130): GC_FOR_ALLOC freed 145K8free 8110K/8775Kpaused 3mstotal 5ms
07
-23 04:27:22.235I/dalvikvm-heap(1130): Grow heap (frag case) to 18.354MB for 10450956-byte allocation
07
-23 04:27:22.247D/dalvikvm(1130): GC_CONCURRENT freed 1K4free 18315K/19015Kpaused 11ms+0mstotal 13ms
07
-23 04:27:22.419D/(1130): HostConnection::get() New Host Connection established 0xb8aaa190tid 1130
07
-23 04:27:27.479D/dalvikvm(1130): GC_FOR_ALLOC freed 27K4free 18379K/19015Kpaused 4mstotal 5ms
07
-23 04:27:27.487I/dalvikvm-heap(1130): Grow heap (frag case) to 28.500MB for 10575372-byte allocation
07
-23 04:27:27.503D/dalvikvm(1130): GC_FOR_ALLOC freed 2K3free 28704K/29383Kpaused 14mstotal 14ms
07
-23 04:27:27.519D/dalvikvm(1130): GC_CONCURRENT freed 0K3free 28705K/29383Kpaused 11ms+1mstotal 14ms
07
-23 04:27:27.591D/dalvikvm(1130): GC_FOR_ALLOC freed 1K3free 28705K/29383Kpaused 3mstotal 3ms
07
-23 04:27:27.591I/dalvikvm-heap(1130): Grow heap (frag case) to 30.903MB for 2520460-byte allocation
07
-23 04:27:27.607D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 31166K/31879Kpaused 14ms+0mstotal 18ms
07
-23 04:27:27.619D/dalvikvm(1130): GC_FOR_ALLOC freed <1K3free 31168K/31879Kpaused 3mstotal 3ms
07
-23 04:27:27.623I/dalvikvm-heap(1130): Grow heap (frag case) to 33.308MB for 2520460-byte allocation
07
-23 04:27:27.635D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 33629K/34375Kpaused 11ms+0mstotal 14ms
07
-23 04:27:27.647D/dalvikvm(1130): GC_FOR_ALLOC freed <1K3free 33631K/34375Kpaused 6mstotal 6ms
07
-23 04:27:27.651I/dalvikvm-heap(1130): Grow heap (frag case) to 35.713MB for 2520460-byte allocation
07
-23 04:27:27.663D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 36092K/36871Kpaused 10ms+0mstotal 14ms
07
-23 04:27:57.419D/dalvikvm(1130): GC_FOR_ALLOC freed 30K2free 36151K/36871Kpaused 4mstotal 5ms
07
-23 04:27:57.431I/dalvikvm-heap(1130): Grow heap (frag case) to 45.856MB for 10575372-byte allocation
07
-23 04:27:57.447D/dalvikvm(1130): GC_CONCURRENT freed 10246K24free 36232K/47239Kpaused 12ms+0mstotal 16ms
07
-23 04:27:57.523D/dalvikvm(1130): GC_FOR_ALLOC freed <1K24free 36237K/47239Kpaused 4mstotal 4ms
07
-23 04:27:57.523I/dalvikvm-heap(1130): Grow heap (frag case) to 38.981MB for 3278092-byte allocation
07
-23 04:27:57.535D/dalvikvm(1130): GC_CONCURRENT freed <1K17free 39439K/47239Kpaused 11ms+1mstotal 14ms
07
-23 04:27:57.551D/dalvikvm(1130): GC_FOR_ALLOC freed <1K17free 39440K/47239Kpaused 4mstotal 5ms
07
-23 04:27:57.551I/dalvikvm-heap(1130): Grow heap (frag case) to 42.109MB for 3278092-byte allocation
07
-23 04:27:57.563D/dalvikvm(1130): GC_CONCURRENT freed <1K10free 42641K/47239Kpaused 10ms+1mstotal 14ms
07
-23 04:27:57.579D/dalvikvm(1130): GC_FOR_ALLOC freed <1K10free 42643K/47239Kpaused 5mstotal 5ms
07
-23 04:27:57.579I/dalvikvm-heap(1130): Grow heap (frag case) to 45.237MB for 3278092-byte allocation
07
-23 04:27:57.595D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 45844K/47239Kpaused 11ms+1mstotal 14ms
07
-23 04:27:57.607D/dalvikvm(1130): GC_FOR_ALLOC freed <1K3free 45846K/47239Kpaused 4mstotal 4ms
07
-23 04:27:57.611I/dalvikvm-heap(1130): Grow heap (frag case) to 48.365MB for 3278092-byte allocation
07
-23 04:27:57.627D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 49047K/50503Kpaused 12ms+1mstotal 16ms
07
-23 04:27:57.639D/dalvikvm(1130): GC_FOR_ALLOC freed <1K3free 49049K/50503Kpaused 3mstotal 4ms
07
-23 04:27:57.643I/dalvikvm-heap(1130): Grow heap (frag case) to 51.493MB for 3278092-byte allocation
07
-23 04:27:57.659D/dalvikvm(1130): GC_CONCURRENT freed <1K3free 52250K/53767Kpaused 11ms+1mstotal 15ms
07
-23 04:27:58.771D/dalvikvm(1130): GC_FOR_ALLOC freed 15K3free 52303K/53767Kpaused 4mstotal 5ms
07
-23 04:27:58.775I/dalvikvm-heap(1130): Grow heap (frag case) to 53.352MB for 1895948-byte allocation
07
-23 04:27:58.787D/dalvikvm(1130): GC_FOR_ALLOC freed 3K3free 54151K/55623Kpaused 6mstotal 6ms
07
-23 04:27:58.803D/dalvikvm(1130): GC_FOR_ALLOC freed <1K2free 54984K/56071Kpaused 5mstotal 6ms
07
-23 04:27:58.827D/dalvikvm(1130): GC_FOR_ALLOC freed 1K2free 56766K/57479Kpaused 4mstotal 4ms
07
-23 04:27:58.847D/dalvikvm(1130): GC_FOR_ALLOC freed <1K2free 58148K/59015Kpaused 3mstotal 3ms
07
-23 04:27:58.871D/dalvikvm(1130): GC_FOR_ALLOC freed 1K2free 59664K/60615Kpaused 4mstotal 4ms
07
-23 04:27:58.895D/dalvikvm(1130): GC_FOR_ALLOC freed 1K2free 61322K/62023Kpaused 5mstotal 5ms
07
-23 04:27:58.915D/dalvikvm(1130): GC_FOR_ALLOC freed <1K2free 63004K/63815Kpaused 4mstotal 4ms
07
-23 04:27:58.935I/dalvikvm-heap(1130): Clamp target GC heap from 65.234MB to 64.000MB
07
-23 04:27:58.935D/dalvikvm(1130): GC_FOR_ALLOC freed <1K2free 64273K/65159Kpaused 4mstotal 4ms
07
-23 04:27:58.935I/dalvikvm-heap(1130): Forcing collection of SoftReferences for 518412-byte allocation
07
-23 04:27:58.943I/dalvikvm-heap(1130): Clamp target GC heap from 65.226MB to 64.000MB
07
-23 04:27:58.943D/dalvikvm(1130): GC_BEFORE_OOM freed 9K2free 64264K/65159Kpaused 10mstotal 10ms
07
-23 04:27:58.947E/dalvikvm-heap(1130): Out of memory on a 518412-byte allocation.
07-23 04:27:58.947I/dalvikvm(1130): "main" prio=5 tid=1 RUNNABLE
07
-23 04:27:58.947I/dalvikvm(1130):   | group="main" sCount=0 dsCount=0 obj=0xa63124b0 self=0xb89d3510
07
-23 04:27:58.947I/dalvikvm(1130):   | sysTid=1130 nice=0 sched=0/0 cgrp=[fopen-error:2handle=-1216420800
07
-23 04:27:58.947I/dalvikvm(1130):   | schedstat=( 687865100 286199327 709 utm=56 stm=11 core=0
07
-23 04:27:58.947I/dalvikvm(1130):   at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
07-23 04:27:58.947I/dalvikvm(1130):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500)
07-23 04:27:58.947I/dalvikvm(1130):   at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:353)
07-23 04:27:58.947I/dalvikvm(1130):   at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781)
07-23 04:27:58.947I/dalvikvm(1130):   at android.content.res.Resources.loadDrawable(Resources.java:1930)
07-23 04:27:58.947I/dalvikvm(1130):   at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
07-23 04:27:58.967I/dalvikvm(1130):   at android.widget.ImageView.<init>(ImageView.java:120)
07-23 04:27:58.967I/dalvikvm(1130):   at android.widget.ImageView.<init>(ImageView.java:110)
07-23 04:27:58.971I/dalvikvm(1130):   at java.lang.reflect.Constructor.constructNative(Native Method)
07-23 04:27:58.971I/dalvikvm(1130):   at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.createView(LayoutInflater.java:587)
07-23 04:27:58.975I/dalvikvm(1130):   at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
07-23 04:27:58.975I/dalvikvm(1130):   at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
07-23 04:27:58.975I/dalvikvm(1130):   at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
07-23 04:27:58.975I/dalvikvm(1130):   at android.app.Activity.setContentView(Activity.java:1867)
07-23 04:27:58.975I/dalvikvm(1130):   at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:216)
07-23 04:27:58.975I/dalvikvm(1130):   at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
07-23 04:27:58.975I/dalvikvm(1130):   at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)
07-23 04:27:58.975I/dalvikvm(1130):   at com.app.ajab.Aks.onCreate(Aks.java:19)
07-23 04:27:58.975I/dalvikvm(1130):   at android.app.Activity.performCreate(Activity.java:5008)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.ActivityThread.access$600(ActivityThread.java:130)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
07-23 04:27:58.979I/dalvikvm(1130):   at android.os.Handler.dispatchMessage(Handler.java:99)
07-23 04:27:58.979I/dalvikvm(1130):   at android.os.Looper.loop(Looper.java:137)
07-23 04:27:58.979I/dalvikvm(1130):   at android.app.ActivityThread.main(ActivityThread.java:4745)
07-23 04:27:58.979I/dalvikvm(1130):   at java.lang.reflect.Method.invokeNative(Native Method)
07-23 04:27:58.979I/dalvikvm(1130):   at java.lang.reflect.Method.invoke(Method.java:511)
07-23 04:27:58.979I/dalvikvm(1130):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-23 04:27:58.979I/dalvikvm(1130):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-23 04:27:58.979I/dalvikvm(1130):   at dalvik.system.NativeStart.main(Native Method)
07-23 04:27:58.979D/skia(1130): --- decoder->decode returned false
07
-23 04:27:58.979D/AndroidRuntime(1130): Shutting down VM
07
-23 04:27:58.979W/dalvikvm(1130): threadid=1thread exiting with uncaught exception (group=0xa6311288)
07-23 04:27:58.983E/AndroidRuntime(1130): FATAL EXCEPTIONmain
07
-23 04:27:58.983E/AndroidRuntime(1130): java.lang.RuntimeExceptionUnable to start activity ComponentInfo{com.app.ajab/com.app.ajab.Aks}: android.view.InflateExceptionBinary XML file line #142: Error inflating class <unknown>
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread.access$600(ActivityThread.java:130)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.os.Looper.loop(Looper.java:137)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread.main(ActivityThread.java:4745)
07-23 04:27:58.983E/AndroidRuntime(1130):     at java.lang.reflect.Method.invokeNative(Native Method)
07-23 04:27:58.983E/AndroidRuntime(1130):     at java.lang.reflect.Method.invoke(Method.java:511)
07-23 04:27:58.983E/AndroidRuntime(1130):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-23 04:27:58.983E/AndroidRuntime(1130):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-23 04:27:58.983E/AndroidRuntime(1130):     at dalvik.system.NativeStart.main(Native Method)
07-23 04:27:58.983E/AndroidRuntime(1130): Caused byandroid.view.InflateExceptionBinary XML file line #142: Error inflating class <unknown>
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.createView(LayoutInflater.java:613)
07-23 04:27:58.983E/AndroidRuntime(1130):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
07-23 04:27:58.983E/AndroidRuntime(1130):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.Activity.setContentView(Activity.java:1867)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:216)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)
07-23 04:27:58.983E/AndroidRuntime(1130):     at com.app.ajab.Aks.onCreate(Aks.java:19)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.Activity.performCreate(Activity.java:5008)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
07-23 04:27:58.983E/AndroidRuntime(1130):     ... 11 more
07
-23 04:27:58.983E/AndroidRuntime(1130): Caused byjava.lang.reflect.InvocationTargetException
07
-23 04:27:58.983E/AndroidRuntime(1130):     at java.lang.reflect.Constructor.constructNative(Native Method)
07-23 04:27:58.983E/AndroidRuntime(1130):     at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.view.LayoutInflater.createView(LayoutInflater.java:587)
07-23 04:27:58.983E/AndroidRuntime(1130):     ... 29 more
07
-23 04:27:58.983E/AndroidRuntime(1130): Caused byjava.lang.OutOfMemoryError
07
-23 04:27:58.983E/AndroidRuntime(1130):     at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:353)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.content.res.Resources.loadDrawable(Resources.java:1930)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.widget.ImageView.<init>(ImageView.java:120)
07-23 04:27:58.983E/AndroidRuntime(1130):     at android.widget.ImageView.<init>(ImageView.java:110)
07-23 04:27:58.983E/AndroidRuntime(1130):     ... 32 more 
پاسخ

مشکل در فایل xml

#8
ینی هیشکی بلد نیست ؟؟؟؟؟؟؟؟؟؟
اسم خودتونو واقعا گذاشتین توسعه دهنده ؟!؟!؟!
پاسخ

مشکل در فایل xml

#9
(۱۳۹۴/۰۵/۰۲, ۰۹:۲۳ ق.ظ)'server0098' نوشته: ینی هیشکی بلد نیست ؟؟؟؟؟؟؟؟؟؟
اسم خودتونو واقعا گذاشتین توسعه دهنده ؟!؟!؟!


 
خب اینجوری که نمیشه باید دیباگ کنید ببینید دقیقا کدوم خط مشکل داره

اما حدسی که من میزنم اینه که ممکنه عکسی که در ایمیج ویو گذاشتید مشکل داشته باشه

یا ممکنه قسمتی که اینفیلت انجام دادید اشتباه باشه

 
پاسخ


پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان

آخرین کلیدهای غیررایگان

شما هم می توانید کلیدهای غیررایگان منتشر کنید (بیشتر بدانید)