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

Apps Why is the above codes in .java file not recording any videos?

imso

Member
Mar 8, 2011
56
0
Because i doing an android application similar to this apps
Traffic Recorder (Android) - Screenshots
but it seems like the above code i copied in this website Writing code that captures videos on Android Integrating Stuff does not seems to allow me record any videos and saving it into an SD Card location? What should i do to get the video recorded and saved into an sd card.. Can someone help me i'm actually new in Eclipse and java programming so pardon me for any stupid thing i do in programming..
 
Will removing this statement really work after leaving surfacedestroy without any codes seems weird in the sense the camera will not be release or stop preview running when there's really a need to end the application by the user?

And another question, now i wanted to replace the buttons to surfaceview click, something similar to youtube where user click to start the recording and click to stop the recording by clicking on the surfaceview, how should i come about doing it.. How should i come about doing it? Thanks i really appreciate your help :)
 
Upvote 0
No the thing is that it still give error where it demands the surfacedestroy method the application is force to close... It seems like i need to construct another method to handle the background service isn't it.. Because my lect uses service to do the background recording while multitasking eg; sms and calling.. Can u guide me on this service thing, i tried reading the android developer site but i just don;t get.. :(
 
Upvote 0
It seems like i need to construct another method to handle the background service isn't it.. Because my lecturer uses service to do the background recording while multitasking eg; sms and calling.. But he just won't teach me how as it is a project. Can u guide me on this service thing, i tried reading the android developer site and the site u offer but i still don't understand.. :(
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones