[android-developers] Re: Build app using video camera that stores separate preferences and doesn't prompt to save videos

2015-12-18 Thread gjs
Hi,

See http://developer.android.com/guide/topics/media/camera.html#capture-video

For (1) As per the link provided, ordinarily the video is saved to (the 
nominated) file automatically, there is no prompt to save or discard the 
(video) file, that would require extra effort if you did wish to discard 
the file, via a Dialog screen of some sort.

For (2) You can save (and read) your custom "camera" properties as Key 
Value pairs from persistent memory using SharedPreferences, 
see 
http://developer.android.com/reference/android/content/SharedPreferences.html 

If you wish to edit your custom "camera" property values you probably need 
to develop an Activity screen or perhaps just a Dialog if you only have a 
few things to configure for the camera.

Regards

On Friday, December 18, 2015 at 6:07:13 AM UTC+11, David Karr wrote:
>
> I'm a very experienced Java dev, but an Android dev newbie (although I 
> went through a lot of Eclipse-based Android dev tutorials years ago).
>
> I'm starting with a simple open-source app that runs the camcorder 
> (probably mostly based on a tutorial itself).
>
> Using a remote bluetooth button device, I can start the app recording.  I 
> can use the same device to stop the recording.  On the app, this brings up 
> a "Save" or "Discard" prompt.  When I click "Save", this saves the video 
> and then I can click again to get back to the camcorder screen, where I 
> could then click the record button again.
>
> Starting with this, I'm wondering how difficult it would be to implement 
> the following features:
>
> 1. When I click the "stop recording" button, either with the app in front 
> of me or with the remote bluetooth button (the primary use case), I want it 
> to just save the video and immediately return to the camcorder screen.  
> This is the most important feature.
>
> 2. The preferences for the app are the common "camera" preferences.  I'd 
> like to store separate preferences for this, particularly the shutter delay 
> (I would make it ten seconds by default). This is not critical, although 
> from the tutorials I went through a few years ago, I think I understand the 
> basic steps for this.
>
> As I said, the first feature is the most important.  If I can't do that, I 
> won't bother with this.
>
> Could someone outline the basic elements of a solution for this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5fa9323a-4e2f-4f35-b536-06ca9717438e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Build app using video camera that stores separate preferences and doesn't prompt to save videos

2015-12-18 Thread David Karr
On Friday, December 18, 2015 at 1:31:45 AM UTC-8, gjs wrote:
>
> Hi,
>
> See 
> http://developer.android.com/guide/topics/media/camera.html#capture-video
>
> For (1) As per the link provided, ordinarily the video is saved to (the 
> nominated) file automatically, there is no prompt to save or discard the 
> (video) file, that would require extra effort if you did wish to discard 
> the file, via a Dialog screen of some sort.
>
> For (2) You can save (and read) your custom "camera" properties as Key 
> Value pairs from persistent memory using SharedPreferences, see 
> http://developer.android.com/reference/android/content/SharedPreferences.html
>  
>
> If you wish to edit your custom "camera" property values you probably need 
> to develop an Activity screen or perhaps just a Dialog if you only have a 
> few things to configure for the camera.
>

Thanks.  I was able to find a small example app to use as a base for this: 
http://examples.javacodegeeks.com/android/core/android-video-capture-example/ 
.  It had some bugs wrt proper ordering of sources, encoders, and formats 
(pretty gnarly to get it all right, and I'm fairly certain it isn't 
bulletproof yet), but it's basically working as advertised.  Now I have to 
make several adjustments to get it closer to what I need. 


> Regards
>
> On Friday, December 18, 2015 at 6:07:13 AM UTC+11, David Karr wrote:
>>
>> I'm a very experienced Java dev, but an Android dev newbie (although I 
>> went through a lot of Eclipse-based Android dev tutorials years ago).
>>
>> I'm starting with a simple open-source app that runs the camcorder 
>> (probably mostly based on a tutorial itself).
>>
>> Using a remote bluetooth button device, I can start the app recording.  I 
>> can use the same device to stop the recording.  On the app, this brings up 
>> a "Save" or "Discard" prompt.  When I click "Save", this saves the video 
>> and then I can click again to get back to the camcorder screen, where I 
>> could then click the record button again.
>>
>> Starting with this, I'm wondering how difficult it would be to implement 
>> the following features:
>>
>> 1. When I click the "stop recording" button, either with the app in front 
>> of me or with the remote bluetooth button (the primary use case), I want it 
>> to just save the video and immediately return to the camcorder screen.  
>> This is the most important feature.
>>
>> 2. The preferences for the app are the common "camera" preferences.  I'd 
>> like to store separate preferences for this, particularly the shutter delay 
>> (I would make it ten seconds by default). This is not critical, although 
>> from the tutorials I went through a few years ago, I think I understand the 
>> basic steps for this.
>>
>> As I said, the first feature is the most important.  If I can't do that, 
>> I won't bother with this.
>>
>> Could someone outline the basic elements of a solution for this?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2c0587ae-af08-4791-807c-139dbd9f3228%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.