Android 안드로이드2014. 10. 13. 13:24

실제 단말기에서는 잘 나올지 곧 테스트할 예정이다.

그전에 에러를 캡쳐해보았다.

아래에 보면 AdRequest를 하나 마지막 줄에서 Ad를 끝내버린다.


11-24 23:49:58.891: I/Ads(2786): Starting ad request.

11-24 23:49:58.919: I/Ads(2786): Use AdRequest.Builder.addTestDevice("B3EEABB8EE11C2BE770B684D95219ECB") to get test ads on this device.

11-24 23:49:59.163: I/Ads(2786): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.

11-24 23:50:00.261: I/Choreographer(2786): Skipped 129 frames!  The application may be doing too much work on its main thread.

11-24 23:50:00.453: D/gralloc_goldfish(2786): Emulator without GPU emulation detected.

11-24 23:50:01.325: I/art(2786): Background sticky concurrent mark sweep GC freed 1639(131KB) AllocSpace objects, 0(0B) LOS objects, 6% free, 3MB/3MB, paused 2.245ms total 659.502ms

11-24 23:50:05.988: I/Choreographer(2786): Skipped 36 frames!  The application may be doing too much work on its main thread.

11-24 23:50:08.704: W/art(2786): Suspending all threads took: 16.056ms

11-24 23:50:08.788: I/art(2786): Background partial concurrent mark sweep GC freed 643(42KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 3MB/4MB, paused 72.351ms total 1.275s

11-24 23:50:08.798: I/Choreographer(2786): Skipped 65 frames!  The application may be doing too much work on its main thread.

11-24 23:50:13.314: W/chromium(2786): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation

11-24 23:50:13.358: W/chromium(2786): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup

11-24 23:50:13.534: W/art(2786): Attempt to remove local handle scope entry from IRT, ignoring

11-24 23:50:13.598: W/AwContents(2786): onDetachedFromWindow called when already detached. Ignoring

11-24 23:50:20.284: I/Ads(2786): Scheduling ad refresh 30000 milliseconds from now.

11-24 23:50:20.314: I/Ads(2786): Ad finished loading.



Posted by 코드버무려
Android 안드로이드2014. 9. 4. 15:15

안드로이드 코드를 쓰고 컴파일하면 도무지 알 수 없는 결과가 나온다.

혹시 이클립스 IDE 툴 자체 결함이 아닐까도 생각해보았다.


안드로이드 가상 장치 AVD에 앱을 설치하고 실행한다. 화면에 선을 그리고 이미지 파일로 만들어 안드로이드 버추얼 디바이스에 저장을 시도하면 실패한다. 이리저리 찾는 중 DDMS와 안드로이드 디버그 브릿지 ADB까지 알아보게되었다. DDMS에서 파일 익스플로어로 SDCard에 파일을 넣으면 나타나지 않고 에러가 나온다. 물론 AVD 생성하면서 512MiB를 추가 해주었다. 디디엠스 파일 익스플로어에서 보여지는 sdcard의 권환은 777로 chmod 777 /mnt/sdcard이 기본으로 적용되어 lrwxrwxrwx이다.


[2014-09-05 12:57:53 - ddms] transfer error: Read-only file system

[2014-09-05 12:57:53] Failed to push selection: Read-only file system

[2014-09-05 15:40:39] Failed to push the items

[2014-09-05 15:40:39] null


50여번 이렇게도 저렇게도 하면서 2일을 보냈다. DDMS상의 File Explorer를 잘 보면 sdcard와 같은 위계에 storage 폴더가 루트폴더 자식으로 있는 것을 방금에서야 발견했다. storage를 클릭하면 또 다른 sdcard폴더가 있다. 그리고 DDMS상의 File Explorer에서 끌어다 놓거나 화면 우측 Push a file onto the device버튼을 누르고 추가 해보아도 나타나지 않았던 파일이 갑자기 나타났다.


이후로는 앱에서 저장하는 데이터가 이클립스 안드로이드 에물레이터 가상 외장메모리 SDCard에 정확히 저장이 된다.



Posted by 코드버무려