• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. H

    Apps How to draw

    Hi, i need to create app in which will user draw simple lines through onTouchEvent. It had to be possible to save drawed image as bitmap. At Graphics | Android Developers I read there are 2 ways to do it. But as i wrote with SurfaceView it is impossible to save it as bitmap. But I don't know...
  2. H

    Apps Draw on canvas (SurfaceView)

    Hi, I'm trying to do easy app for draw on screen. I followed the tutorial on Graphics | Android Developers. In my onTouchEvent method I have: _canvas = holder.lockCanvas(); if (event.getAction() == MotionEvent.ACTION_DOWN) { _path = new Path(); _path.moveTo(event.getX()...
  3. H

    Apps onTouch and onLongClick together

    Hi, I've got problem with using onTouch and onLongClick events together. My code looks like that: SurfaceView sv = (SurfaceView)findViewById(...); sv.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) {...