Showing posts with label Android Tip. Show all posts
Showing posts with label Android Tip. Show all posts

Sunday, December 23, 2012

도대체 어느 API 레벨에 맞춰 개발해야하는 거야?




보통 범하기 쉬운 실수가 '2.1에서 젤리빈(Jelly Bean)까지, 어느 플랫폼에서든 돌아가는 앱을 만들어야지' 생각하면서 타겟을 떡하니 2.1로 잡는 것이다. 결론부터 말하자면 '넌 잘못 생각해도 너~~~~무 잘못 생각한겨'

자 지금부터 version을 지정하는 몇 개의 값들을 하나 하나 살펴보면서 어떻게 설정해서 작업을 해야할지를 생각해 보자.

Friday, August 31, 2012

Android: failed to find style 'mapviewstyle' in current theme ?

It seems that the default style for MapView is specified with 'mapViewStyle', and the style 'mapViewStyle'  is defined  in Android public.xml file. But Android style 'mapViewStyle' is not defined in android styles.xml file. So I guess that the problem occurred.

So, I tried to solve that problem, as follows...

public.xml and styles.xml : You can find them in 'android-sdk/platforms/<android-api-level>/data/res/values folder.


1.GO-TO : android-sdk/platforms/ <android-api-level> /data/res/values 
2.In public.xml,  check the mapViewStyle's definition and id value.











3. In styles.xml,  insert 'mapViewStyle' item element as shown below.
(Note : 'mapViewStyle's id values' and insert point )



***  If you find anything that you think is wrong or unclear, please let me know by dropping a line in the comments section.