[android-developers] MotionEvent touch events

2011-10-17 Thread loril...@gmail.com
Hi I'm working on a drawing app and using openGL to draw the bitmaps on all touch points. So far I'm successful in drawing bitmaps on all touch points I get (including touch points in historical data) and the speed is good. But if I move my finger fast on the screen, I do not get all the touch

[android-developers] Re: MotionEvent touch events

2011-10-17 Thread loril...@gmail.com
I'm not using paint or canvas, I'm using openGL and I need to draw a bitmap on all touch points (it is not a solid color bitmap but has a texture in it). On Oct 17, 4:58 pm, Aks aks0...@gmail.com wrote: Use drawline() in ACTION_MOVE instead of drawPoint() ... -- You received this message

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-27 Thread loril...@gmail.com
. There is bug reported in the android bug base: http://code.google.com/p/android/issues/detail?id=1740 Could it be because of the same reason? Is there a better way of doing it? Is it possible to improve performance using a canvas? On Sep 19, 11:14 am, loril...@gmail.com loril...@gmail.com wrote

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-19 Thread loril...@gmail.com
Historical data for motion events helped! Thank you Blake! On Sep 19, 9:05 am, loril...@gmail.com loril...@gmail.com wrote: Will it not just move the element as I move my finger on the screen. I want to draw the element at all positions where my finger has touched so that I can see

[android-developers] onTouchEvent not called on every touch motion

2011-09-18 Thread loril...@gmail.com
I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) {

[android-developers] Re: onTouchEvent not called on every touch motion

2011-09-18 Thread loril...@gmail.com
Programming Android, FTW On Sep 18, 5:20 am, loril...@gmail.com loril...@gmail.com wrote: I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) {                         float x = event.getX

[android-developers] How to scroll a background on a glSurfaceView

2011-08-25 Thread loril...@gmail.com
Hello All, Can anyone point to good tutorials which describe how I can smoothly scroll a background on a glSurfaceView? I need to have a horizontally scrolling background with various objects that auto-scrolls as your character/player moves just like various car/motorbikes games. -- You

[android-developers] How to use drawBitmapMesh method for image warping

2011-02-21 Thread loril...@gmail.com
Hi, I need to apply mesh warping on an image in android. Method drawBitmapMesh can be used to define a mesh and apply the bulge warp effect on an image. This is the algorithm that can be used: Remap pixels according to: For each x, y x' - rn*Cos[a] + .5 y' - rn*Sin[a] + .5 where a = ArcTan[x

[android-developers] drawBitmapMesh

2011-02-19 Thread loril...@gmail.com
Hi, I want to apply a bulge effect on my image using a circular brush. I found a useful method drawBitmapMesh using which I can define a mesh and apply the warp effect. But I'm not sure how to define a bulge effect. Can anyone please help? -- You received this message because you are

[android-developers] parse plist

2010-10-14 Thread loril...@gmail.com
Hi Is there a way we can parse apple plist xml using any libraries or otherwise. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Display events in a Calendar like View

2010-06-21 Thread loril...@gmail.com
Hi, As a part of my application, I need to display months in a scrollable view similar to android native calendar app. I also need to include events to the calendar. From the information in the link (http://www.developer.com/ws/ article.php/3850276/Working-with-the-Android-Calendar.htm) I

[android-developers] How to prevent orientation change on keyboard flip until thread execution completes

2009-10-24 Thread loril...@gmail.com
When I flip the keyboard, the layout changes from portrait to landscape, activity is recreated but any background thread keeps running. How can I prevent orientation change/activity from being recreated until my background thread finishes. --~--~-~--~~~---~--~~

[android-developers] problem in playing mp4 video file

2009-10-20 Thread loril...@gmail.com
Hi All I am trying to play a mp4 video file from remote url on my device. (File size = 5.7 MB) I am getting following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback Could anyone please let me know how to resolve this error?

[android-developers] Re: problem in playing mp4 video file

2009-10-20 Thread loril...@gmail.com
with an error or info PVMFErrNoResources error (1, -15) Anyone having an idea please let me know. On Oct 20, 4:15 pm, loril...@gmail.com loril...@gmail.com wrote: Hi All I am trying to play amp4video file from remote url on my device. (File size = 5.7 MB) I am getting following error: Command

[android-developers] Re: problem in playing mp4 video file

2009-10-20 Thread loril...@gmail.com
, the video plays for a fraction of a sec and then there is only sound. Could anyone please help me in solving the issue. On Oct 20, 5:38 pm, loril...@gmail.com loril...@gmail.com wrote: The MediaPlayer / VideoView only support  progressive streamable contents Following link helped me in figuring out

[android-developers] how to pass complex objects between activities

2009-10-18 Thread loril...@gmail.com
I am trying to pass a user defined object to another activity Bundle bundle = new Bundle(); bund.putSerializable(myData, myData); intent.putExtra(bundle, bundle); where myData class implements Serializable interface. I am getting following error: java.lang.RuntimeException: Parcelable

[android-developers] byte array to bitmap

2009-07-06 Thread loril...@gmail.com
Hi there, Can someone please tell how to load byte buffer that is in the RGB565 format into a bitmap? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Help- Video Recording - Camcorder

2009-07-03 Thread loril...@gmail.com
Can anyone please let me know where can I get source code for camcorder? Also, it would be of much help to me if anyone could post a simple example for video recording, please. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] QualcommCameraHardware messages

2009-06-09 Thread loril...@gmail.com
Hi All, I am getting a force close message with following QualcommCameraHardware log messages when using takePicture method on G1 camera: ERROR/MemoryHeapBase: mmap(fd=18, size=8388608) failed (Invalid argument) ERROR/QualcommCameraHardware: pmem pool /dev/pmem_camera error: could not create

[android-developers] OutOfMemoryError at BitmapFactory.decodeByteArray

2009-06-08 Thread loril...@gmail.com
I get a OutOfMemoryError at BitmapFactory.decodeByteArray when bitmap size is large; Following is the code snippet: BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 8; Bitmap bitmap = null; bitmap = BitmapFactory.decodeByteArray(data, 0,

[android-developers] MemoryHeapBase Error + QualcommCameraHardware Error

2009-05-29 Thread loril...@gmail.com
Hi, I am trying to capture images using camera. I have set orientation to landscape. After few images are captured I get MemoryHeapBase error forcing the application to close: 05-30 10:35:14.283: DEBUG/QualcommCameraHardware(35): initRaw: clearing old mJpegHeap. 05-30 10:35:14.283:

[android-developers] Help for decoding the camera data from the PreviewCallback

2009-05-26 Thread loril...@gmail.com
Does anyone know how to decode the camera data from the PreviewCallback? I need to capture camera preview frames and process the bitmap obtained by decoding the frames before displaying. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] OpenGL .dae model loader

2009-05-20 Thread loril...@gmail.com
Does anyone know how to load .dae(collada) files in android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: OpenGL .dae model loader

2009-05-20 Thread loril...@gmail.com
it will take some knowledge of the collada file format to create a parser. On May 20, 5:00 am, loril...@gmail.com loril...@gmail.com wrote: Does anyone know how to load .dae(collada) files in android? --~--~-~--~~~---~--~~ You received this message because you

[android-developers] How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-05-16 Thread loril...@gmail.com
Hi there, I need to capture an image from camera and display on surfaceview for my project. I am trying to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas. Can someone please help me? Following steps were done: - created a Preview class