1. Download our Official Android App: Forums for Android!

[APP] Scare App | Record your friends freight. Testers needed!

Discussion in 'Android Lounge' started by Bondos, May 1, 2012.

  1. Bondos

    Bondos Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 1, 2012

    May 1, 2012
    3
    0
    5
    Hi All,

    This app allows you scare an unexpected victim and record the
     

    Advertisement

  2. Bondos

    Bondos Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 1, 2012

    May 1, 2012
    3
    0
    5
    Hi Guys,

    I've just released a new version of ScareApp to the market (and attached)

    Some users have informed me that they are having trouble playing back the recorded video.

    Could somebody PLEASE help and test the following...
    Using any of the "Scare Options" and recording a scare
    1) Does a thumbnail show a frame of the video on the screen after the scare (the one which has HAHAHAHA at the top and the play button(s) at the bottom)
    2)on the play screen, does anything show? If not, can you click menu and see the options there, and does clicking on the screen cause anything to happen?
    2) check if the video plays when looking at it from the "Saved Scares" menu (top left button on the main menu)
    3) check if the video exists on the SD card (should be under [SD]/scareapp/videos) and whether it plays from there
    4) check if a recorded video plays with different configuration (try turning ON "custom record settings" and changing the resolution and framerate)
    (also, don't forget to note what device you are using!)

    If you would like a (licence free) copy of the PRO version of the app, sent me a DM with your e-mail and I will forward it to you.

    Thanks in advance...I appreciate the help!!

    Regards,
    Mark Bond
     

    Attached Files:

  3. Bondos

    Bondos Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 1, 2012

    May 1, 2012
    3
    0
    5
    Some good news.
    I found that weirdly, my app would work on a rooted ICS rom for the Droid Razr but not on the default rom.

    Thinking about how and why it would work for one rom and not another, I think I've resolved the issue.

    Attached is the latest APK,...can you please try the tests again, and let me know how you get on.



    And incase anybody else has this issue, here's the problem and solution

    The android MediaRecorder allows you to define the Video and Audio Encoder, and according to Google, DEFAULT can be used for each.
    However, this refers to the main camera's settings, which is often a far higher spec than the front facing camera.
    DEFAULT on the Droid Razr for example, selects an encoding (MPEG_4_SP) that isn't available for the Front facing camera, and this results in an empty (0kb) file being produced (or on some other devices a Camera 100 - start failed error).

    My other option was to use the CameraProfile.get method to lookup what the HIGH_QUALITY settings, but again, this by default uses the main camera.
    To get around this, you can set the ID of the front facing camera by using
    CameraProfile.get(CameraID, CamcorderProfile.QUALITY_HIGH);

    My current work around is as follows:

    CamcorderProfile profile = CamcorderProfile.get(FrontFacingCameraId, CamcorderProfile.QUALITY_HIGH);
    if(profile != null) {
    _recorder.setAudioEncoder(profile.audioCodec);
    _recorder.setVideoEncoder(profile.videoCodec);
    }else {
    //default to basic H263 and AMR_NB if profile not found
    _recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    _recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
    }

    Or alternatively, you can skip setting the Encoders, and just use

    _recorder.setProfile(profile);

    But as my app allows the user to select the resolution, I need to set the encoder's.

    Hopefully this will help the next developer who comes across this issue.
     

    Attached Files:

  4. AndroidMan1

    AndroidMan1 Member
    Rank:
    None
    Points:
    36
    Posts:
    67
    Joined:
    Jan 24, 2012

    Jan 24, 2012
    67
    3
    36
    Student
    Manchester, UK
    cool idea, i guess its problem will be it limited to phones with front cameras only, but still i like the idea
     

Share This Page

Loading...