Android :: Processing Events In SurfaceView

Jun 10, 2009

I am creating a custom Widget which extends SurfaceView and I am planning to use it for camera preview.In the main activity I tried to implement some event listeners but can't catch any event.If I press a button the LogCat outputs "Continuing to wait for key to be dispatched" line.Does anyone know how to implement event listeners in main activity using SurfaceView classes?

Android :: Processing events in SurfaceView


Android :: Droid Background Service Stops Processing Broadcas Events / Solve It?

Nov 6, 2010

I've a problem with my android application.
I'm using a background service (with notification on the status bar) which performs an audio sample every hour. To perform this sample I generate a broadcast event every hour and when I capture the event the audio recording starts. During the day, when I'm using the phone, I've no problems. The strange behavior happens during night, when it seems like if the phone goes to an "idle" state: the broadcast events are no more processed. From the log file I understood that the events are generated and putted in a queue... and when I start using again the phone, all those events are raised in the same moment.
Do u have any idea about how to solve this problem? How can I force the phone to continue processing my events? do I have to set any variable of flag to avoid the phone going in this kind of "idle" state?

View 1 Replies View Related

Android :: SurfaceView Vs Custom View / SurfaceView Is Slower

Aug 20, 2010

One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.

View 1 Replies View Related

Android :: Processing Raw Audio Data

Apr 10, 2009

I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data.Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an application level for security reasons.I'm trying to see if this is possible with native code linking to public or private API of Android.

View 3 Replies View Related

Android :: How Does Touch Gesture Processing?

Dec 15, 2009

I want to know that android has a touchscreen requirement about hardware and software.And how does touch gesture processing where, for example, in driver layer or framework or application,

View 4 Replies View Related

Android :: Processing RSS Feeds With Namespaces

Apr 23, 2010

I'm trying to write an XML parser that takes an RSS feed & fetches the image urls shown in the url attribute of the <media:thumbnail> tag. This is all being done via android.Util.Xml, & is an adaptation of the code shown here. An example RSS feed that I'm trying to use is the BBC News RSS feed. However, media is an additional namespace & (probably) as a result my parser isn't working as it should. A version of my parse method is below. Is there any (no doubt simple) way to get my list of image URLs working?

..................

View 2 Replies View Related

Android :: WebView And Response Processing

Nov 8, 2010

Currently, I use a regular activity with some EditText fields as a registration screen in my application.The inputs are used to construct a soap message which is posted to the registration server, with the response being parsed to do some configuration of the application.I'd like to change this to have the registration page load in a WebView instance, so that the registration process takes place on an external web page.This would make it easier to make changes to the registration process without having to deploy a new build, as it would just be a matter of changing the web page that is loaded in the WebView.The question is would there be any way for me to get the response that is sent back from my registration server to the client? From what I can tell, if I went this route, there wouldn't be a way for me to parse the response like I currently do to initialize the application settings.

View 2 Replies View Related

Android :: Activity Background Processing

Apr 17, 2010

"Note that when you write an activity, you can make it stop or continue running when it is moved to the background (see onStop() in Activity Lifecycle). For activities that download data from the network, it's recommended to let them continue downloading so the user can multi-task." As far as I was aware I had to create a service if I wanted to have a background activity such as a media player, internet download, or processing of data in files on the SD card continue when the activity was no longer in the foreground.I went and reread the onStop information on the "Activity Lifecycle" page, which was referred to. But I didn't find any mention of how an activity might continue to run in the background after onStop was called.

View 3 Replies View Related

Android :: App Is Getting - Trouble Processing - Error

Aug 10, 2010

My android app was running ok under Eclipse, then I tried to add some GridView sample code from some online examples and now it will not build/run anymore.

I keep getting the major error:

CODE:..

Attempt to include a core VM class in something other than a core library.

I have never put anything to do with 'SocketFactory' in any of my code. I searched all of my code and can't find any code that I did that contains the SocketFactory.class.

I deleted my xml's and classes that I was working on that had to do with the GridView and reverted back to the code I had before, when it was running - but now I continue to get the above error. I even try to use 'Clean' but the error continues. Does anyone know what I should do about this error?

View 1 Replies View Related

Android Image Processing Functions

Oct 15, 2011

I want to perform various image processing functions such as threshold,equalize etc on the image i capture from the camera...What should i use in order to do that?

Also,when i installed the app in my phone, after clicking the pic, the next screen appears, and after clicking the button for performing other functions, force close comes up...what could be the reason,because my code works fine without the camera portion...

View 2 Replies View Related

Android :: Processing And Regular Input Apps

Oct 7, 2010

Processing has Android support and it seems to be pretty awesome from my 10 minutes of playing with it. But I would like to make a regular (nongraphics) application like a twitter feed reader or something. So is there something like Processing that can do regular apps? Besides Titanium.Basically I am looking for anything that will make coding for android easier, processing was so easy to get working that I was very happy with it, but it is for graphics only. Titanium didn't give me the same wow factor and it isn't open so that kind of takes away from it. What other tools are out there?

View 2 Replies View Related

Android :: Image Processing On Picture Taken From Camera

Jan 11, 2010

I'm writing an application for Android. I need to make some image processing on the picture taken from camera.I use Camera.PictureCallback to get the photo, and I get picture in byte array.The problem is I want to make operations on every pixel of photo (some filtering and other stuff) so I guess, have photo in byte array is not a bad idea. But I don't know how interpret information in this byte array... The only way I know to make the processing is use BitmapFactory.decodeByteArray() and then use Bitmap object. Is this a good way to handle a lot of image processing?

View 1 Replies View Related

Android :: Obtaining Video Frames For Processing

Dec 31, 2009

I am trying to decode and obtain all frames in a video stream, each of which would be processed by a native signal processing engine and re-encoded back to a MPEG4/MP4 file. I noticed that there was a getFrameAt() function in earlier versions of SDK but its not available in v 1.6 on which I am working. As I am fairly new to Android, I would like to know from more experienced people around here as to how I can extract video frames into a buffer for processing.

View 2 Replies View Related

Android :: How Can I Do Image Processing On JPEG Data

Apr 13, 2009

I am confused on how to implement image processing algorithm on JPEG data.I have set P.setpicturesize (640,480) so the camera.takepicture (null,null,Imagecapture callbck) returns the image data. Void onPictureTaken(byte[] data, Camera Camera) returns JPEG data, but(x = data.length), the value of x is less than 640*480 bytes.Please kindly let me know how can I start editing pixel information of the image and image comparison algorithms.

View 2 Replies View Related

Android :: Audio Programming / Sound Processing And DSP

Jun 23, 2010

The application allowed its users to control the volume of the artist; even mute it.How is this possible?Does adjusting artist sound/setting equalizer etc. mean performing some transformation of required frequencies? What sort of mathematics is required here(frequency domain transformations)?The application recorded users voice input via a mic. Assuming that the sound is recorded in some format, the application was able to mix the recording with the karaoke track(with artists voice muted). How can this be done?Did they play both the track and voice recording simultaneously? Or maybe they inserted additional frequency(channel?) in the original track, maybe replaced it?What sort of DSP is involved here? Is this possible in Java, Objective C?

View 1 Replies View Related

Android :: Real Time Audio Processing

Feb 13, 2010

I'm trying to figure out how to write an app that can decode audio morse code on the fly. I found this document which explains how to record audio from the microphone in Android. What I'd like to know is whether it's possible to access the raw input from the microphone or whether it has to be written/read to a file.

View 3 Replies View Related

Android :: Optimizing Image Processing Algorithms

Aug 19, 2010

I am developing a mobile application that involves complex image processing operations. The app is designed in Java while the core image processing ops are implemented in native code, and compiled using the Android NDK.Now, I know that native code will *not* yield any significant performance improvement over Java code, and that the NDK purpose is only to support re-use of code libs (or to quickly integrate legacy code).are there any resources/tips-n-tricks/white papers/ samples on optimizing image processing algorithms for Android? To be even more specific, I am looking out for optimizing memory operations (cache misses, memory stalls, etc.). I profiled my application code and came to the conclusion that memory issues are causing the *maximum* performance penalty. (Nothing surprising over there, it is expected, but just verified with profile data as well).

View 1 Replies View Related

Android :: Java Example Of Processing JSON Response?

Aug 27, 2010

I am writing a simple Android app and have a database that will send back information into the app. I am new to Android and am looking for a simple example that demonstrates how the Android App can process a JSON response received from a HTTP request. I need to see what classes are used for Android apps to process a HTTP response. A reference to a good tutorial, or if you're keen, write a very basic method to do the job.

View 1 Replies View Related

Android :: Processing Video And Sound On Phone

May 19, 2010

I want to merge a sound file and a video file (remove the sound from the video file and replace it with my own sound) and this should happen on the phone.I have done this through ffmpeg, but I can't do that now.Any help appreciated,

View 1 Replies View Related

Android :: Get Performance Increases Using Processing For Droid?

Oct 14, 2010

I have converted a few of my Processing sketches into Android apps, but they seem to run really slowly in the emulator and on my device.

Are there any tips on how to increase the speed and performance of my sketch running as an Android app? Are there things or parts of the Processing API I should avoid?

View 1 Replies View Related

Android :: Way To Allow For Pre / Post-processing Of All Notifications And Additional Workflow?

Nov 2, 2010

Or extend it in some way to allow for pre/post-processing of all notifications and additional workflow?

View 6 Replies View Related

Android :: Catching AudioRecord Exception When Not Processing Fast Enough

Jun 19, 2009

In the Eclipse log I can clearly see a warning pop up (something about buffer overflow) every time I don't read from the AudioRecord buffer fast enough and consequently miss a chunk of audio samples. Is there any way I can detect that notification programatically so I know exactly when I have missed a chunk?

View 2 Replies View Related

Android :: Handling Out Of Memory Exception On Image Processing

Sep 16, 2010

This is the sequence part of this question: http://stackoverflow.com/questions/3674441/combining-2-images-overlayed

so the problem is: if the image size is too big - it'll got an exception (out of memory exception)
what i want is, to handle even if the handset got the lower spec hardware, it doesn't go to that exception (but it'll take a longer time to process the image) is it possible to do that?

The code snippet is like this:

CODE:......

And that block of code is inside the async task.

View 1 Replies View Related

Android :: Processing More Than One Button Click At Droid Widget?

Mar 18, 2010

I saw this topic and implement IntentService as describes, but what if I want more that one button? How can I distinguish button from each other?
I'm trying to setFlags, but cannot read it at onHandleIntent() method code...

At this little piece of code I have two PendingIntent linked with setOnClickPendingIntent, can I distinguish this intent for different actions and processing?

View 1 Replies View Related

Android :: Microphone Access / Audio Processing And Recording Simultaneously

Mar 8, 2010

Is it only possible for one object to access the microphone at a time? That is, could I simultaneously use an AudioRecord to do some audio processing and use a MediaRecorder to record the incoming audio?

View 2 Replies View Related

Android :: Safe To Queue KeyEvents And MotionEvents For Deferred Processing?

Sep 11, 2009

I decided to start pipelining input to increase responsiveness in my games. Basically what I do is when the activity receives a Key or Motion event, it sends it to a feed method in the game, which encapsulates it with a time and whatever else I need and puts it in a queue then immediately returns so the UI loop is never held up waiting for long. The main loop later processes the queue, applying the events in it at the appropriate times.

This works great and makes the games snappy, although now I'm starting to miss touch events intermittently. I realized that the events could be recycled objects and that could make them not safe to queue. Is this the case or is it safe to queue them for deferred processing like I'm doing?

View 5 Replies View Related

General :: Screen Off But Still Processing

Feb 28, 2012

There some apps that when you turn off the screen it just stops, freezes... How to turn off the screen but make the device think that it's on? I wanna leave it for all night, but I don't wanna leave the screen on...

R800i

View 8 Replies View Related

HTC Incredible :: Way To Disable To Voice Processing

Oct 20, 2010

I migrated from AT&T/iPhone due to crappy coverage, and mostly like the Incredible.However, one area that it's pretty bad is voice quality.The reception is fine.I'm talking about the processing that the phone itself does (when using the handset itself as a phone) to attempt to make the caller at the other end more clear-sounding. It cuts out background noise but is too sensitive and often makes it difficult to understand the person on the other end of the line. When I put the phone on speakerphone mode or use it with Bluetooth in my car I don't seem to have this problem.it's only when I'm using the handset itself as a phone. When I've been on a single call I've tried switching between the three in my car when stopped, and I can always hear perfectly with the speakerphone or Bluetooth.when I use the handset is does that weird cutoff thing. I work in audio for a living and it's just like a bad noise gate.

View 4 Replies View Related

General :: Camera App That Takes Pic Without Processing?

Jan 16, 2012

I have a Q:

I am coming from the graphic design and Photoshop and I knew few things about camera and image processing and after looking in the camera app on android I cant find good app that can just take a pic without processing! (sharpening, noise redaction, etc)

I wonder why no 1 made such app that gives the user option to take the natural photo prom the sensor without the stupid image processing algorithm!

I want the natural photo and edit it later in pro software (Photoshop)

View 3 Replies View Related

Android :: Switch To SurfaceView

Mar 25, 2009

Im creating a simple game using a SurfaceView for drawing the Graphics. It works fine, but now I tried to add a title screen, which is (for now) only a LinearLayout and a Start-button, specified in XML. However, when I click this button and try to switch to my SurfaceView (By doing setContentView(R.layout.game), the screen turns black. But if I do setContentView(R.layout.game) immediatly in my Activity.onCreate it works. But not if I start with my Title-screen and then try to switch

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved