I'm trying to use the android's AudioRecord in LibGdx, but when I press on "Add library 'android-android-25' to classpath" nothing happens.
I cannot use LibGdx's AudioRecorder, because I want to get the amplitude of the microphone (like .getMaxAmplitude).
Thanks
You can't use AudioRecord class of Android platform because LibGDX is cross platform development library.
but you can use it only for Android platform using interface and core module of LibGDX
Related
Is there are a way to control the screen brightness from a flash app using AS3?
I would like to create a slider that will control the brightness of 3 screens.
Flash Player holds no such a capability by default. However, your app is an AIR app, thus there is a way. You will need ANE (AIR Native Extension) that grants the access to the display(s) and its(their) properties.
You might find an existing one for your needs, or, if there are none, build your own: http://www.adobe.com/devnet/air/native-extensions-for-air.html
Does smb knows how to pass a context to InterstitialAd in LibGDX?
In Android it is simply
InterstitialAd interstitial = new InterstitialAd(this);
My class extended from Screen. or I can intialize it in class extended Game.. Or how to pass the context in this case?
And if smb knows any problem related to this, I'll be very thankfull to any advice!
To show ads from inside other classes not from the main activity you need to use a facade. Basically, you make use of a listener to load/display the ads.
Follow this libgdx official tutorial guide. It covers both banner and interstitial ads and it isn't outdated. It uses the new admob via the google play services
Just that: is there any possibility to control the iPhone's flashlight using any class in ActionScript 3?
Thanks in advance,
DGM.-
I do not believe you will be able to do this via any ActionScript API.
You will probably have to write an AIR Native Extension for this.
I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS.
I have some custom UI classes, like buttons, that I want to use it in another projects.
How can I make an actionscript mobile library project?
I'm using Flash Builder 4.5, and I'm not using Flex in my code.
Using Flash Builder 4.5:
choose File > Project > New
choose "library project"
check the "include AIR features" box.
This will compile a .swc, a binary file you can distribute easily.
Including AIR in this .swc ensures that all the mobile-oriented features will be compiled as well, i.e. TouchEvent.
Flex classes, that you're not using, won't be included.
You can create ActionScript project, then add it to your mobile project's references (as a source.) Or create Flex library and link it with mobile project.
What's the difference between the the two display states?
StageDisplayState.FULL_SCREEN doesn't support keyboard interactivity. StageDisplayState.FULL_SCREEN_INTERACTIVE does, but it works only with Adobe AIR.
Source: Adobe ActionScript3 Reference
StageDisplayState.FULLSCREEN is available in both AIR and normal Flex web apps, Keyboard is not traced
StageDisplayState.FULLSCREEN_INTERACTIVE available ONLY IN AIR and it allows you to used the keyboard. for ex you can type inside a TextInput in FS only with FullScreenInteractive.
StageDisplayState.FULL_SCREEN_INTERACTIVE can work in flex webapp.when you compile web app,you just need to replace the playerglobal.swc by high version,like 11.7。。。
hope it helps you