ImageView imageView = (ImageView)findViewBy ( R.id.image1 ) ;
Bitmap bmp = ((BitmapDrawable)imageView.getDrawable()).getBitmap();

    static public void i( String message, Object ... obj) {
        String methodName ="";

        try {
            methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
        } catch( Exception e ){
            Log.e("Debug", e.getMessage());
        }

        if( DEBUG_WRITE  == true ) {
            Log.i(methodName, String.format( message, obj) );
        }

        put( message );
    }

呼び出し

Log2.i("x:%d y%d", 100,200 ) ;
© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha