반응형

Scaloid - 오픈소스 안드로이드 라이브러리

 

https://github.com/pocorall/scaloid

 

스칼라 언어로 안드로이드 개발의 어려움을 줄여주고자 만들어졌다.

 

Less painful Android development with Scala

Scaloid is a library aimed to simplify your Android code. It makes your code easy to write and understand by leveraging Scala language.

For example, the code block shown below:

val button = new Button(context)
button.setText("Greet")
button.setOnClickListener(new OnClickListener() {
  def onClick(v: View) {
    Toast.makeText(context, "Hello!", Toast.LENGTH_SHORT).show()
  }
})
layout.addView(button)

is reduced to:

SButton("Greet", toast("Hello!"))

Benefits

  • Write elegant Android software
    Scaloid provides a concise and type-safe way of writing Android application.
  • Simple to use
    Check our quick start guide
  • Compatible with your legacy code
    You can use both Scaloid and plain-old Java Android API. You can gradually improve your legacy code.
  • Maintained actively
    Scaloid is a dogfooding software. This is originally created to be used for my own Android apps.

Demos

If you want to see how Scaloid can be used in action, check a Scala port of apidemos app.

Need help using Scala language on your Android project?

There is an out-of-the-box solution. Just fork this project and start your Scala-Android app.

Features

...and many other things! Check the official Scaloid blog for news and announcements.

 

반응형
반응형

JSP에서 안드로이드 아이스크림 확인하기.



String ua    = request.getHeader("USER-AGENT");

if(ua.indexOf("Android") > -1){
    int    ver_num = 0;
    String an_d_v  = ua.substring(ua.indexOf("Android"));

    try{
        ver_num = Integer.parseInt( an_d_v.substring(an_d_v.indexOf(" ") + 1, an_d_v.indexOf(".")) );
    }catch(Exception e){
        ver_num = 4;
    }

}




  if(useragent.indexOf("android 4.0") >= 0){
        payMethodDisable = true;
    }


반응형
반응형

2012.04 현재 분포되어 있는 디바이스 버전별 현황

2012.04 현재 분포되어 있는 디바이스 버전별 현황2012.04 현재 분포되어 있는 디바이스 버전별 현황. The following pie chart and table is based on the number of Android devices that have accessed Google Play within a 14-day period ending on the data collection date noted below.


안드로이드 버전별 정리

* 현재 시점에 아이스크림으로 업데이트한 갤럭시 S2에서 많은 문제점을 보이고 있다.


 

 코드네임

 내용

 

 Ice Cream Sandwich 4.0

 Simple, Beautiful, Useful ?

태블릿과 스마트폰 공용OS

 

 Honeycom 3.~

 태블릿 전용

 

 Gingerbread 2.3

인터넷접속으로 OS업데이트,

NFC지원 등등

 

 Froyo 2.2

 
 

 Eclair 2.0/2.1

 
 

 Donut 1.6
 
   Cupcake 1.5
 
   B Android 1.1
 Android 1.0
 




반응형

+ Recent posts