codingdir logo sitemap sitemap |
Home
PHP
C#
C++
ANDROID
JAVA
JAVASCRIPT
PYTHON

How to use getSupportedVideoSizes() on Android?


By : , Category : android

Try the following snippet:

CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
recorder.setVideoSize(profile.videoFrameWidth, profile.videoFrameHeight);
ReLated :

Open create-android-project.sh file, you should see two line codes like this:

NDK_ROOT_LOCAL="/home/laschweinski/android/android-ndk-r5"
ANDROID_SDK_ROOT_LOCAL="/home/laschweinski/android/android-sdk-linux_86"

Then what you just need replace these paths with yourself's paths, as mentioned in your post

NDK_ROOT_LOCAL="D:AndroidGameToolAndroid-ndk"
ANDROID_SDK_ROOT_LOCAL="D:Softwareadt-bundle-windows-x86_64-20130522sdk"

I confirm that is a bug in the IDE Beta. My issue on Code.google.com is categorized has "Labels: -Priority-Critical Priority-High ". I'll update this thread when this will be resolved.

$ cordova platforms remove android
$ cordova platforms add android@3.7.1

PROBLEM SOLVED

As the language Locale was set to danish on the phone, the program replaced . with , which caused the error.

I simply replaced my code with the following:

//Calculates the minimum optimal filter area requirement
public double CalculateFilterAreaRequirement(){
    CalculateTurnoverPerHour();
    double tmp = turnoverPerHour/turnoverRate;
    filterAreaRequirement = Math.floor(tmp * 100) / 100;
    return filterAreaRequirement;
}
Comments


Message :
Login to Add Your Comments .
How to disable registered OpenCL platforms on Windows?
Is Observable broken in Angular 2 Beta 3?
Cross-thread operation not valid when using Invoke
How to pass an IEnumerable or queryable list of properties from Controller to View
Finding numbers after a certain keyword using Python
Pocketsphinx recognizes random phrases in a silence
Passing non-thread-safe objects through thread-safe containers
React scroll nav
BizTalk WCF-BasicHttp Adapter does not allow Empty string for Service Certificate Props
Why property ''cause" of Exception is repeating forever?
Privacy Policy 2017 © codingdir.com All Rights Reserved .