Flash Builder Burrito - Geolocation-enabled device market?

Hi, I'm developing a simple application that will show you the location of the user on the map.

I use code like this:

protected function view1_creationCompleteHandler(event:FlexEvent):void
{
If (Geolocation.isSupported)
{
g = new Geolocation();
g.setRequestedUpdateInterval (100);
If (g.muted)
{

Do nothing if the sensor of the device is muted.

return;
}

g.addEventListener(GeolocationEvent.UPDATE,geoLocation_UpdateHandler,false,0,true);

}

}

Then I modified application.xml in project like this (according to Adobe TV video of Ryan Strewart ):

< android >
< manifestAdditions > <! [CDATA]

< manifest android: installLocation = "auto" >

<! - see the Adobe AIR documentation for more information on configuring the permissions of Google Android - >

< android:name="android.permission.INTERNET"/ uses-permission >
< android:name="android.permission.WRITE_EXTERNAL_STORAGE"/ uses-permission >
< android:name="android.permission.ACCESS_FINE_LOCATION"/ uses-permission >
< configuration uses android: reqFiveWayNav = "true" / >
< media screens android: normalScreens = "true" / >
< feature uses android: required = "true" android:name="android.hardware.touchscreen.multitouch"/ >

< / manifesto >

[]] > < / manifestAdditions >
< / android >

Then, I use Flash Builder Burrito to install and run the application in the device. The geolocation object is cut. Even I turn on all the settings of the geolocation. An interesting thing is, Geolocation is the work in the Flex Mobile application round.

I use the Samsung Galaxy S with Froyo 2.2

I could test the purpose of geolocation successfully on a Motorola Droid using the following code:

GeoTest1.mxml:

http://ns.Adobe.com/MXML/2009.

xmlns:s = "library://ns.adobe.com/flex/spark" firstView = 'views. GeoTest1Home">

GeoTest1Home.mxml:

http://ns.Adobe.com/MXML/2009.

xmlns:s = "library://ns.adobe.com/flex/spark" title = "home".

creationComplete = "view1_creationCompleteHandler (event)" > "

import flash.sensors.Geolocation;

Import mx.events.FlexEvent;

private var g:Geolocation;

protected function view1_creationCompleteHandler(event:FlexEvent):void

{

If (Geolocation.isSupported)

{

g = new Geolocation();

g.setRequestedUpdateInterval (100);

If (g.muted)

{

Do nothing if the sensor of the device is muted.

Msg. Text = "geo muted."

return;

}

Msg. Text = "active geo;

g.addEventListener (GeolocationEvent.UPDATE, geoLocation_UpdateHandler, false, 0, true);

}

}

protected function geoLocation_UpdateHandler(event:Event):void

{

Msg. Text += "\ngeolocation update";

}

]]>

GeoTest1 - App.Xml

http://ns.Adobe.com/air/application/2.6">

GeoTest1

GeoTest1

GeoTest1

1.0.0

[This value will be replaced by Flash Builder in the output app.xml]

]]>

Please try the above and see if it works.

-Tom

Flex SDK engineer

Tags: Flex

Similar Questions

  • Packaging and signing in Flash Builder Burrito using 0.9.4 SDK

    Hey guys. I know frankly, there are 1 million post on the forums about this, but I wanted to be sure and had a few questions myself. Good so I used Flash Builder Burrito to sign and package my request. My app is a Mobile Flex Application and I use 0.9.4 SDK. I used the MANY post on this forum through signature and methods of packaging and it worked perfectly, no errors at all. The two files that I got after conditioning and signature was my apps .bar and bar.sign files. I saw in other post to extract the .bar file to see if its signed and if the icon is there. How do you do this will WinRAR or PowerISO to extract this file type. I fear only because all Iv seen post are all saying theres tons of bugs with the packaging and signing using burrito, but all I could see was that they were using the SDK 0.9.3. Should I have a problem with my .bar file? I don't know how to extract my .bar file to view the contents, so I can at least check to make sure that it is signed and packaged properly. Can someone me another message or an article on how to extract the .bar file and check to make sure that its all good to present, RIMM. My previous version was rejected of RIMM is not signed and sent the Bug of version. I have just re-climbed the .bar I got to use the new SDK and had no errors, so I hope this is right. Anyway thanks in advance and any help would be great.

    The .bar file is just a zip file.  It will work any util that allows to read a zip file.  If you need to rename the .bar to a zip file, which is OK, but be sure to rename it before upload.

  • How to access the camera in the Blackberry Playbook using Adobe Air SDK (in Flash builder Burrito)

    Hi all

    How to access the camera in the Blackberry Playbook using Adobe Air SDK (in Flash builder Burrito).

    Provide me with examples of coding please.

    Thanks in advance.

    With respect,

    Sampath

    Not possible yet. See http://docs.blackberry.com/en/developers/deliverables/21880/Known_issues_1360895_11.jsp

  • AutoComplete does not work in Flash Builder burrito

    Hello!

    What are the causes could prevent the autocompletion of working in Flash Builder burrito? in flash builder 4, it works fine, but not at all in the burrito. Maybe I changed a few settings somehow? If I open settings-> Flash Builder-> Editors then 'activate the Activation Auto' under "Code Assist" is checked.

    What other reason could there be for this problem?

    Hello

    Using 'Flash Builder Overview Burrito'? You might have faced this known issue https://bugs.adobe.com/jira/browse/FB-28451 . This is fixed in the future of the generations of Flash Builder.

    Workaround is, click on "Restore defaults" in preferences-> editors-> ActionScript Code-> content-> Flash Builder Help cycling

    Or change your workspace.

    Let us know if this solution solves the problem.

    -Rahma

  • I have some difficulties to export a mobile application with Android Adobe Flash Builder Burrito

    Hi, eveybody.

    I do a simple mobile application with Adobe Flash Builder Burrito, and it works well on windows.

    Then, I want to export it as a .apk and install on the android emulator. But I failed. I have received a few messages as follows:

    E:\android\a\android-SDK-windows\platform-tools > ADB install Twitter.apk
    594 KB/s (875316 bytes in s 1.437)
    pkg: /data/local/tmp/Twitter.apk
    Failure [INSTALL_FAILED_INVALID_APK]

    Then I download AdobeAIRSDK2.6, unzip and copy the files in the sdk (D:\Program Adobe Adobe Flash Builder Burrito\sdks\4.5.0).

    "I change < application xmlns =http://ns.adobe.com/air/application/2.5> to < application xmlns ="http://ns.adobe.com/air/application/2.6">."

    Then he can't export it as a .apk...

    Thank you!

    Are you using the pre-release version of Burrito which was released to the MAX?  If so, I doubt that will support 2.6.  You can apply for the pre-release program get the latest versions.

  • Purchase of Flash Builder Burrito

    Hello

    Sorry if this is the wrong forum, but didn't know where to ask. Just wondering if Flash Builder Burrito will release an update for Flash Builder or if this will be a new version to buy. I have the intention to buy Flash Builder, but wasn't sure if I should wait Burrito is released or not.

    Thank you

    Hello

    We have not announced prices or availability yet for the next version of Flash Builder.

    The new version contains new features, it will be a paid upgrade of the current version of Flash Builder 4.

    Thank you

    Andrew Shorten

    Adobe Group Product Manager, development tools.

  • Debug Player Flash Builder burrito

    Is there a player of debugging on the release of Burrito FB? Mine has been to complain about the version of the player when I went to debug. I installed the latest version and now he isn't complaining, but I get no trace (which usually means the wrong version of the debug version).

    I have to reinstall FB (B) and hope for the best, or someone can direct me to a download of stand alone?

    See you soon!

    Hello

    There is a known bug with the pre-release of the trace() calls disappear when an FXG file is present in your project and creation mode.

    Can you please confirm if exit design mode by activating / disabling window-> Fashion Design allow, to restart Flash Builder with a clean project brings back traces for good?

    PS: It is in the release notes - http://labs.adobe.com/wiki/index.php/Flash_Builder_Burrito and this is the bug - https://bugs.adobe.com/jira/browse/FB-27654

    Thank you

    Rémy

  • Flash Builder Burrito will identify the plugin Playbook

    I installed the BlackBerry Tablet OS SDK for Adobe AIR by following the instructions included in the

    Getting Started Guide for Windows developers.

     

    Everything appears to install fine and when I go to help > about Flash Builder > installation details it shows that the Function of Blackberry Tablet OS is installed.

    When I go to create the Hello World application, I chose file > New > ActionScript Project Mobile enter a project name and choose the Flex SDK hero. [correction]

    I click Next and the settings of the Mobile screen. The only displayed target platform is the platform Google Android - Tablet Blackbery is not available.

    Can someone give me an idea of how to get the Playbook sdk to be recognized?

    -Bryan

    My problem was solved on the following thread:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/problem-connecting-Flash-Builder-...

  • App packaging and Code-signing (Flash Builder Burrito)

    Hi guys,.

    I would like to know if the function "export version Release" (the tab Flash Builder project in the top menu) does not work correctly or if I should use the command line for the packaging. I see that my .bar includes the META-INF / "MANIFEST. MF' it's supposed to get generated only after the signature of the app.

    Thank you

    Hi daniel,.

    Yes, you should always use the tools of command line to package and sign your applications. There is a bug in the IDE that prevents it to properly sign the app here is a thread that can help you with the signature of the command line:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/useful-tip-package-images-via-com...

    Good luck!

  • Burrito of flash builder design mode is a white screen and does not not all components

    Hey guys, for some reason none of my components appear any, when I go to design mode in flash builder burrito, and the screen is white. When I run the app, it works very well and seems very well my only problem is that I don't understand what is happening in "Design Mode". Someone has a similar problem to this, also, I don't get any errors about not being not able to load the design view just a pop-up that says that it takes a while to load and to continue or not. The only time I see a component is when I go to the source and highlight a component then go into design mode, then u see a blue outline of the component. You can see in my screenshot above. Any help would be great, thanks in advance.

    Thanks again,

    Brian

    Design mode does not work if you include qnx libraries in the path of the libraries due to a bug in FB, there is a flag to uncheck (qnx libraries) in the project to BBT properties

  • Flash Builder does not appear to be deployed to the Simulator:

    Hey guys!

    So here's the deal. I am running Win7 with the IDE Flash Builder Burrito. I followed the guide on the BB step by step to create my first Hello World project. When I try to debug, FB seems to show that it has installed the successful application on the Simulator, but still waiting to connect to the application until it finally expires with the message "the Flash BUilder debugger cannot connect to the running application".

    Host machine, I ping IP of the Simulator, and the mode of development.

    I inserted the target IP address in the Debug menu (it's 192.168.88.128) and the debug host is the IP address of the host too (10.0.3.136). I entered the correct device as password.

    Scratching my head here now, what Miss me?

    Alright! It is very very annoying. I discovered that I was in fact trying to deploy on the previous version of the Simulator... Sorry to lose all time on it. Consider this a rookie mistake

  • KeyboardDrake: changing the default blackberry type in Adobe Flash Builder

    Hey guys,.

    How can I change the default layout in Adobe Flash Builder Burrito using the SDK software BB Playbook

    Essentially, I want the navigation bar at the top down on the left side

    How can I do this

    Thank you

    Chris

    Hey chris,

    Sorry for the delay, the image takes some time before it appears (pending approval of the host). in any case the bar that is displayed is known as an "action bar" in MXML. IM unfamiliar with too much Flex, so I can't tell you how to position it yourself. just google or search for "Flex Action Bar" and which should help you in the right direction. hope that helps. Good luck!

  • Flash Builder 4.7 on Win7(64bit) can not debug on device ios - Air 19.0, iTunes 12.3, ios 9.0 latest

    Debugging on device worked fine then suddenly stopped a couple of weeks.

    I think that this has coincided with an update to iTunes, but cannot be sure cos I've had in a few days. many versions of compilers Air reloading, iTunes and trawling through dozens of related posts for the same problem with older combos Air/iTunes and I forgot how it started!

    Current error on compiling to debugging the ActionScript Mobile iPad device Air2 project creates the ipa file and then fails on install device with the error "unable to enumerate devices.

    "idb.exe - devices ' of Air 19.0 compiler detects correctly connected devices.

    I tried:

    -uninstall all the programs Apple (iTunes, support MobileDevice, Hello, Apple Software Update, App Support(32&64bit)) and Java and Adobe FlashBuilder then reinstall after a reboot.

    -Create a Flash Builder project

    -installation of Air 3.4, 18.0, 19.0

    -installation of iTunes 12.0.1, old 12.1.3 video cards (for), old video cards of 12.2.2 (for), 12.1.2 12.2.2 12.2.25

    -8 and 9.0 on the ipad ios

    Different combinations give different errors, but none work.

    I can load ipa to the device using iTunes, but does not connect compilation of debug debugger on usb.

    Will also load Simulator but as app for Retina display I don't see entire application on the screen (but that's another problem-_-)

    This problem seems to have been around for a few years with each new Air/iTunes combo.

    Does anyone have a current solution?

    Thank you

    Problem solved with 20.0 beta Air.

    The solution to this problem posted by team Adobe Air here:

    post # 39

    The AIR 17 iOS - impossible to enumerate devices.

  • Flash builder as a plug-in in eclipse burrito

    is there such a release planned for the beta period?

    Yes - aware Burrito preview also works as an eclipse plugin with your own copy of Helios.

    Unlike previous versions of FB, where separate downloads for autonomous in relation to the uses of plugin Burrito, a consolidated Installer includes who always has a copy grouped the Eclipse IDE for Java developers. By default, Burrito runs on top of this copy Group of Helios.

    After installing the Burrito, you will find a Utilities folder alongside the Flash Builder application which includes a plugin utility, you can use to associate your own copy of eclipse 3.6 the Burrito. Burrito currently, requires Helios 32 - bit and 32-bit cocoa Helios on OS X.

    -Chris

  • App integrated with Flash Builder 4.6 and compiled for iOS, error now when loading to the appstore

    I built a simple application using Flash Builder 4.6 and have successfully deployed to the Android Market (after testing on my own Android device).  I also took this same application and compiled for iOS and tested on my iPad.

    I then did the Release with the final 'Release for App Store Distribution' option in the release generation Wizard.  I have all the certificates supply correct in place and compiled the application in a .ipa file.

    At this point, you use a MAC, I ran the Application Loader utility to upload my app to itunesConnect portal to get it in the appstore.  I already went through the steps to enter metadata, pricing, and screenshots in itunes connect portal and just need to download it for review.

    When I download the .ipa file into the application loader, it gives me the following error:

    "iPhone/iPod Touch: contains executables of the application not supported architectures: arm.

    Anyone have any idea what this means and how I can fix this?  Any help is greatly appreciated!

    Thanks in advance!

    He solved.  Just add the following text in the tag for iPhone in my app descriptor XML file:

    UIRequiredDeviceCapabilities

    WiFi

    ARMv6

    ARMv7

Maybe you are looking for

  • Mid 2012 Mac Book Pro dough change

    Hello Can someone tell me if I can change my dough with new as 10 hours or 9 hours? Because only 5 hours to my mac 2012 internal mid pro with DVD player, I am not satisfied with the battery life. Will it be possible to change with the last? Thank you

  • Tecra M5: Need for a Slim Select Bay HARD drive adapter

    I bought the Tecra M5 last week and I'm very happy with it, but I also bought the disc adapter HARD Slim SelectBay (number PA3134U-2CTE)I already have a hard drive to go inside, but upon arrival, I found that they are not compatible, and I need a cad

  • Access the properties of USB camera

    I have a PointGrey (FMVU-13S2C-CS) camera that recognizes MAX and I can get images; However, I can only change some values such as brightness and exposure, but not others, such as gains in color. When I tried to read records in the hope to change the

  • sleep now works

    HelloI have acer aspire g v3 - 571. 2 days ago I have reinstall windows 8.1 and now I can't use spleep mode.When I press the speel mode on what he's going to hibernation.Help, please

  • I need portrait page orientation but the current orientation is landscape. How can I change the orientation?

    My monitor is square, not wide like the recent monitors. I want to be able to view an entire page without having to scroll from right to left to see much on the right side of the screen, what is hidden without scrolling.