Flex Mobile in Kiosk mode
Hi,
I was wondering if it is possible to run a Flex Application under Android in kiosk mode? I mean the application prevent the home button and any other way that makes the application to exit.
Any help or direction will be appreciated.
thanks
The first error I am receiving is "an incorrect number of arguments. Expected no more than 4" on the resource DatabaseEncryption.mxml
The source code is here where the error number faults to:
sqlConnection.open(_databaseFile, SQLMode.CREATE, false, 1024, encryptionKey);
Context.setAttribute("sqlConnection", sqlConnection);
dispatchEvent(new Event("success"));
The second error I am receiving is "Type was not found or was not a compile-time constant. Update Event" on the resource salesbuilder.mxml
The third and repeating group of errors are "Type was not found ...SandboxMouseEvent" on the resource salesbuilder.
Thank you.
Alex Dove
Similar Messages
-
Flex mobile orientation: force portrait mode and then allow auto orientation
I'm creating a flex mobile project and I want to force the app to portrait orientation when I click a button, and when I click other button allow again to change the orientation.
This is my code when I click the first button, where I want to force portrait mode:
protected function click(event:MouseEvent):void{ if(stage.orientation != StageOrientation.DEFAULT){ stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged); stage.setOrientation(StageOrientation.DEFAULT); }else{ doSomething(); } }
private function orientationChanged(event:StageOrientationEvent):void{ doSomething(); stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged); }
private function doSomething():void{ stage.autoOrients = false; }
It works ok and it changes the orientation if it's needed.
Now, when I want to allow orientation change again, I've only putted:
stage.autoOrients = true;
It works ok if when I click the first button the app is in portrait and it doesn't have to change anything. But if it's on landscape and it have to change to portrait, when I allow orientation change again, it doesn't work ok.
Do you know if I have to allow or change something? Or, is there any better way to do this?
Thanks in advanceThanks for your answer. It works, but I have the same problem that I have setting the orientation. If I'm on landscape, it changes to Portrait ok, but when I want to allow auto orientation again, it doesn't work well.
A little tricky I've found is:
When I want to force to portrait:
private var oldOrientation:String = null;
protected function click(event:MouseEvent):void{
if(stage.orientation != StageOrientation.DEFAULT){
oldOrientation = stage.orientation;
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChanged);
stage.setOrientation(StageOrientation.DEFAULT);
}else{
doSomething();
private function orientationChanged(event:StageOrientationEvent):void{
// do something if you are changing to portrait mode (the first change) and other thing if you are changing to old orientation
And when I want to allow auto orientation again:
if(oldOrientation != null){
stage.setOrientation(oldOrientation);
oldOrientation = null; -
Flex Mobile 4.5.1: Package contents and URLLoader
On Flash for web and desktop (Projector debugger), one can use a URLLoader to load local URLs (eg files off your hard drive). This is very useful for some development purposes, as you just need to make sure any external files (JSON & PNG) are in the same relative path as the SWF, and you then don't need to worry about different code paths whether you're loading these external files from local storage or http. URLLoader operates the same whether loading locally or remotely.
Is there any way to easily get the same behavior on a Flex Mobile 4.5.1 app (specifically for an iOS target)? Again, this is useful because in my live app, these external files will be loaded from our web server, but for testing purposes I would like to be able to run in a server-less mode and include them with the deployed debug IPA file. My first problem is that I cannot seem to figure out how to deploy these files to the application in the first place - I tried adding my external-files folder to the Flex Build Path as an additional Source folder, but they still don't show up under the Package Contents for iOS tab.
Any ideas? Are there any include-extra-files-in-package options in the -app.xml?
Or is there no way to use URLLoader for local storage on mobile, and I am stuck with using Embed? (I guess besides Embed I could manually deploy the files to the iOS file system and use the AIR api for access, but that's still a different code path, defeating my goal - we have a decent bit of code built around the idea that URLLoader is agnostic)Edit: Realized my original answer wasn't correct, the files were being pulled in from another setting.
After some experimenting, the answer is YES, and it's actually a bit unexpected: Just in fact adding the external files folder to the Flex Build path | Source Path actually pulls them all in. It seems those directories are passed to both mxmlc and adt. Unexpected surprise. -
Application Type: Flex Mobile Application
Target Platform: iPad
AIR Version: 4.0
Development Environment: Flash builder 4.6
I want to run some code just before iphone application goes into background. I need function similar to didEnterBackground
of native xcode app
(https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegat e_Protocol/Reference/Reference.h
tml#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:)
I tried using devactivated function of flash.display.STAGE.
I used following addEventListener:
STAGE = this.parent.stage;
STAGE.addEventListener(Event.DEACTIVATE, onAppDeactivated);
It worked for me but only when device is connected to development environment in debug mode. When I create my release build
it is not working.
So how can I make sure that my code runs before application goes into background.Even I am facing almost same issue
Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6 -
Flash Builder 4.5.1 - Problem compile Flex Mobile release build
I am building a flex mobile applicaiton using Flash Builder 4.5.1. The application works fine on the device (Nexus S) and desktop in the debug mode however, whenever I export the release build the app is not installed on the device automatically. When I manually install .apk it also fails (get Application not installed message with green check mark). Any thoughts?
Getting a big closer... Compiled .swf using mxmlc, then manually packaged .apk without any issues... When I try to run: adb install -r myapp.apk: I get the following error:
pkg: /data/local/tmp/myapp.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Perhaps certificates are not respected? -
Flex Mobile Auto Switch To Landscape
I am building a Flex Mobile app for a final project at school and I would like it to automaticly switch to landscape mode when debugged. As of right now it starts out in portrait mode and I have to click rotate left.
Any help would be awesome!
Thank you.
--Loganok for anyone with the same problem......
open up your xml file example test.xml
change the line.....
<aspectRatio>landscape</aspectRatio>
delete the comment charaters around it.
--Logan -
Flex Mobile Videoplayback ( GPU / CPU )
Hi,
I have problems with videoplayback on Android in an Flex Mobile app.
I using the pur AS3 Strobe Media Playback with OSMF. When a play in emulator the video is ok,
but on my Android device there are random lines on the Videos ( streamed or local )
Also is the video not in the right frame ( in the emulator the video is not zoomed in like on the device )
The app is set to autoOrient = false but for video i force it to landscape mode ( just for the playback )
If I force the app to gpu rendering the video is perfect but the whole app is very sluggy ( Samsung Galaxy SII )
Could someone help?Hi,
I have problems with videoplayback on Android in an Flex Mobile app.
I using the pur AS3 Strobe Media Playback with OSMF. When a play in emulator the video is ok,
but on my Android device there are random lines on the Videos ( streamed or local )
Also is the video not in the right frame ( in the emulator the video is not zoomed in like on the device )
The app is set to autoOrient = false but for video i force it to landscape mode ( just for the playback )
If I force the app to gpu rendering the video is perfect but the whole app is very sluggy ( Samsung Galaxy SII )
Could someone help? -
I downloaded and installed the Sunray 4u2 server software and it indicates that it can set DTU's in Kiosk mode now, not just per smartcard. This would be a good feature in our environment, since we use NSCM. However, I can't find a way to set a single DTU in to a Kiosk mode this without putting all of them in it. I would like one to display the window login via the connector all of the time. Any ideas or can someone point me to some good directions? Thanks!
I have figured out our problem. After we loaded the patches and rebooted the utpolicy changed to disable NSCM. We noticed then when we hit shift-pause and instead of disconnecting it just cut over to the screensaver. When I re-enabled non-smart card mobility with the ./utpolicy -M the DTU's that we had set to go into Kiosk mode (full screen windows) no longer worked, they had the gnome login. When I reran the ./utpolicy without the -M to disable NSCM the Kiosk mode for specific DTU's starting working again.
My conclusion is that NSCM and Kiosk mode by specific DTU's is incompatible.
Can someone at Sun confirm this? -
How to disable dangerous options in on screen keyboard in kiosk mode?
Hello,
I'm trying to make a kiosk like application based on Windows 7. I run locked down IE in kiosk mode and that's quite OK.
However when I run the OSK.exe (on screen keyboard) - it has two dangerous buttons: Options (where I can click on "Control whether the On-Screen Keyboard starts when I log on" link and then run Windows explorer, and Help (where I can go to Options, and then
click on "Read the privacy statement online" link that brings me fresh IE).
Is there way to disable in OSK those two buttons?
For instance, when I run OSK on logon screen it hides the Help button and the dangerous link in the Options button, so it's possible at least for MS. Is it possible for plain customers?
Thanks in advance,
Nikolai.
WBR, NikolaiHi,
Based on my test and research, I’m afraid that the two options of On-screen Keyboard may not be disabled.
Instead, you can use
Tablet PC Input Panel and see how it works.
Hope this helps.
Jeremy Wu
TechNet Community Support -
Can't convert Flex Mobile project to desktop project
I'm using the Flash Builder 4.6 trial, and I'm very new to flex development. I've been asked to convert an existing Flex Mobile project (appears to have been developed in Flash Builder 4.5) into an AIR desktop app.
The project imported without complaint. However, the Add/Change Project Type > Convert to Flex Desktop Project menu item is disabled.
I created a blank Flex Mobile project, then a blank Flex web project, then a blank ActionScript project. It's greyed out for those, too. I checked with the projects closed and open; the rest of the items on that submenu are enabled for all projects when closed.
Is this feature disabled in the trial version? Is something else going on?Clearly the device from verizon works, I would try to contact a computer tech to repair your computer
Really it should be as simple as turn on, connect, go. If it isn't there is a break down somewhere in that computer
What error msg? -
Flex Mobile Project unable to run on android device
Hi,
I Have created basic flex mobile project using flash builder and i could able to run on desk top, but while running the same on device i am getting force close exception also dint get any error log. i am using samsung galaxy pop GT-S5570 as my testing device. i have configured usb driver and enabled usb debugging in my device too. any help to resolve this process?08:20:45.751 Raw device 'sd=sd1,lun=/dev/rdsk/c3t5000CCA03EC50D5Dd0s0' does not exist, or no permissions.
Looks like either your lun doesnt exist OR you running vdbnech session not as root.
(Only a guess ) -
Is there a way to use Stage3D in Flex Mobile projects on iPad?
When I create a project of type "Action Script Mobile Project" the Stage3D works on iPad, Android device and in the AIR desktop simulator.
But when I create a project of type "Flex Mobile Project" it works in the desktop simulator and on Android device but does not work on iPad.
When running on iPad the stage.stage3Ds[] collection is empty.
Is it a sort of limitation made by intent? Or a bug? Or maybe I am doing something wrong?
What I actually need is an ability to render offscreen bitmaps with GPU in an application that uses Spark UI. This is why I need Flex Mobile project.
My configuration is the following:
iPad with retina display
Sony Xperia Tablet Z
AIR SDK 3.7 (and I have also tried AIR SDK 3.8 today)Hi,
Check this thread, discussing the similar issue
Re: What video format that is compatible with Muse -
How to launch a single URL in a locked windowed-kiosk mode?
We need to launch a specific URL in Firefox in a windowed-kiosk mode.
If this can be done via a command-line that would be great. The Company want to restrict the use of the browser to this one specific URL and only allow close controls on the opened app window.
Is this possible?
Any help much appreciated!See:
*https://developer.mozilla.org/Command_Line_Options
*FF Fullscreen: https://addons.mozilla.org/firefox/addon/FF_Fullscreen/
See also:
*http://mike.kaply.com/category/mozilla/
*http://mike.kaply.com/2014/01/08/can-firefox-do-this/
*CCK2 Wizard: https://addons.mozilla.org/firefox/addon/cck2wizard/ -
Is there a way to save data to just one view in Flex Mobile applications?
I am having trouble handling data between views in a Flex Mobile application that I am writing. I know how to pass data from one view to another, but I was wondering if there is a way to save that data to a view, then get more data from another view (in this case it would be the same view that the original data came from) and put that data on the same view without overwriting the original data. I would be glad to post some code if anyone needs to see it.
I think we realise that this is the same question as the other thread.
-
How to insert a background image in VGroup in Flex Mobile
I want to insert a background image for this VGroup. Help me out. I'm new to Flex !!
I'm using this code in Flex Mobile Application
<s:VGroup height="100%" width="100%"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<s:List id="homeList" height="100%"
labelField="title"
dataProvider="{homeNews}">
<s:layout>
<s:TileLayout requestedColumnCount="1"
verticalGap="5"/>
</s:layout>
<s:itemRenderer>
<fx:Component>
<s:ItemRenderer>
<s:VGroup>
<s:BitmapImage source="{data.source}"/>
<s:Label text="{data.title}" />
</s:VGroup>
</s:ItemRenderer>
</fx:Component>
</s:itemRenderer>
</s:List>
</s:VGroup>I don't think you can add a background image to a VGroup directly, nor can VGroup be skinned.
As far as I am aware there are probably 2 solutions
1) use a SkinnableContainer instead skin the container to have a background image and set its layout to VerticalLayout
2) enclose the VGroup in a Group with a BasicLayout. you can then add a background image to the Group and overlay the VGroup
Maybe you are looking for
-
Importing cd into itunes blues
Hi, I am a new user. First just a little background. When I used itunes to add my music some WAVs I had made with Media player had no names so everything imported as unknown. I went to the music folder and renamed each album from 'unknown' to its cor
-
Photosmart 4780 Wireless connection without USB cable on mac!!!
Dear all, My mac pro does recognize the printer via USB connection anymore. I tried to turn on the wireless connection on the 4780 but could not find 'hpsetup' in wireless networks..... Is there any other way to connect this thing wirelessly or do i
-
When I first purchased the phone the gentleman, just activated my phone handed it to me and that was it. Blank empty bran new iPhone 5s iOS 7 activated. I was stupid enough not to enter my iCloud info immediately but on that day we were rushing aroun
-
I have had my iPad for several years and recently it has started crashing for no reason, I am wondering if I need to replace it of if there is a fix. It doesn't matter if it has a full charge or if the charge is low. I have noticed that the battery d
-
Multiple buttons for a given validation
I want the same validation to be done on the click of two buttons. In the "Conditional Validation Processing", I see we can "select a button" which allows us to select only one button. How can I select multiple buttons for a given validation? Is ther