안녕하세요.
겔럭시노트로 연결하여 테스트 중입니다.
화면이 켜져있을때는 잘 작동됩니다.
그런데 절전모드가 되기만하면,
이런 오류가 뜨면서, 꺼지네요...
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length는 찾아보니
삼성단말기에서 나는 오류로, 무시해도 큰 문제가 없다고는 하는데...
절전모드에서 왜 어플이 이런오류가 나면서 종료되는지 궁금합니다.
수고하세요.
ErrorLog
10-15 13:04:51.561: E/(4669): <s3dReadConfigFile:75>: Can't open file for reading
10-15 13:04:51.561: E/(4669): <s3dReadConfigFile:75>: Can't open file for reading
10-15 13:04:55.735: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-15 13:04:55.735: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-15 13:04:56.946: E/SensorManager(4669): thread start
10-15 13:04:57.386: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-15 13:04:57.386: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-15 13:05:02.521: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-15 13:05:02.521: E/SpannableStringBuilder(4669): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
자바코딩
package com.game.dietdfclient;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.util.DisplayMetrics;
import android.util.Log;
import android.widget.ImageView;
public class M_Act_06_Item extends Activity {
// Commons
private final String TAG = "TestClient";
private final String HEAD = "[ITEM]";
// Activity
DisplayMetrics metrics = new DisplayMetrics();
private Bitmap m_06_item;
private ImageView imgBack2;
private double screenWidth, screenHeight;
private double imageWidth = 800D, imageHeight = 480D;
private double widthRate, heightRate;
private int reWidth, reHeight;
private int resultRate;
// Application
private final int RECEIVE_MSG = 2;
private String get_Msg, set_Msg;
M_Net_01_SC_Application app;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.m_06_item);
getWindowManager().getDefaultDisplay().getMetrics(metrics);
screenWidth = metrics.widthPixels;
screenHeight = metrics.heightPixels;
heightRate = screenHeight/480D;
widthRate = screenWidth /800D;
reWidth = (int) (800D * heightRate);
resultRate = reWidth/800;
switch (resultRate) {
case 0 :
reWidth = (int) (800D * heightRate);
reHeight = (int) (480D * heightRate);
break;
case 1 :
reWidth = (int) (800D * widthRate);
reHeight = (int) (480D * widthRate);
break;
}
m_06_item = BitmapFactory.decodeResource(getResources(), R.drawable.m_06_item);
m_06_item = Bitmap.createScaledBitmap(m_06_item, reWidth, reHeight, true);
imgBack2 = (ImageView)findViewById(R.id.imgBack);
imgBack2.setImageBitmap(m_06_item);
}