Android61 [Android/안드로이드]com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 오류 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 구글에서 메소드의 개수 제한을 두어 라이브러리를 많이 사용하는경우 위와 같은 에러가 발생한다고 한다. StackOverFlow에서 해결방법을 찾았다. 123456android { defaultConfig { ... multiDexEnabled true }}cs 1234dependencies { ... compile 'com.android.support:multidex:1.0.0'} Colored by Color Scriptercs 1234567 @Override protected void onCreate(Bundle savedInstanceState) { super.. 2017. 2. 12. [Android/안드로이드]GridView에서 중복현상 해결 BaseAdapter을 이용하여 GridView를 사용할 때 중복돼서 나타나는 문제가 발생한다. 많이 유명한 문제라고 하는데 아래와 같은 방법으로 해결할 수 있다. 123456789101112131415161718192021222324252627282930313233343536373839404142434445public class PokeDexAdapter extends BaseAdapter { ... @Override public int getCount() { return pokeObjects.size(); } @Override public Object getItem(int position) { return pokeObjects.get(position); } @Override public long ge.. 2017. 2. 12. [Android/안드로이드]CustomProgress Dialog 만들기[피카츄 Progress] 1234567 Colored by Color Scriptercs [progress_img.xml] Custom Progress에서 애니메이션 효과를 담당하는 xmldrawable에서 사진 리소스 경로를 지정해준다. 1234567891011121314 Colored by Color Scriptercs [custom_progress.xml] 1234567891011public class MyProgress extends Dialog{ public MyProgress(Context context) { super(context); requestWindowFeature(Window.FEATURE_NO_TITLE); // 제목 setContentView(R.layout.custom_progress); getWind.. 2017. 2. 9. [Android/안드로이드]포켓몬 고(Pokemon Go)관련 앱 개발(2)[drawable Array] 구글을 통해 인증을 하고 포켓몬 정보를 가지고 와서 포켓몬 도감처럼 GridView로 출력하는 것까지 구현을 했다. 이미지는 데이터를 절약하기 위해서 직접 리소스를 담아두고 사용할 예정이다. drawable 이미지를 포켓몬 번호에 맞춰서 배열로 사용하기 위해서 다음과 같이 이미지 리소스를 배열로 만들었다. 12345678 @drawable/pokemon_img_1 @drawable/pokemon_img_2 @drawable/pokemon_img_3 @drawable/pokemon_img_4 @drawable/pokemon_img_5 @drawable/pokemon_img_6cs 123TypedArray imgs = getResources().obtainTypedArray(R.array.pokemon); .. 2017. 2. 7. 이전 1 ··· 9 10 11 12 13 14 15 16 다음