Flash Builder Burrito - Enabled Geolocation in running device?

Hi, I am developing a simple app that will show user's geolocation in 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 )
               // Don't do anything if device's sensor is muted.
                return;
           g.addEventListener(GeolocationEvent.UPDATE,geoLocation_UpdateHandler,false,0,true);
Then I modified application.xml in project like this (following Ryan Strewart's video in Adobe TV):
<android>
    <manifestAdditions><![CDATA[
    <manifest android:installLocation="auto">
        <!-- See the Adobe AIR documentation for more information about setting Google Android permissions -->
        <uses-permission android:name="android.permission.INTERNET"/>
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
        <uses-configuration android:reqFiveWayNav="true"/>
        <supports-screens android:normalScreens="true"/>
        <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
    </manifest>
]]></manifestAdditions>
  </android>
Then I use Flash Builder Burrito to install and run application into device. The Geolocation object is muted. Even I turn on all geolocation setting. An interesting thing is, Geolocation is work in Flex de tour Mobile application.
I use Samsung Galaxy S with Froyo 2.2

I was able to test the Geolocation object successfully on a Motorola Droid using the following code:
GeoTest1.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.GeoTest1Home">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
</s:MobileApplication>
GeoTest1Home.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" title="Home"
        creationComplete="view1_creationCompleteHandler(event)">
    <fx:Script>
        <![CDATA[
            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 )
                        // Don't do anything if device's sensor is muted.
                        msg.text = "geo muted";
                        return;
                    msg.text = "geo active";
                    g.addEventListener(GeolocationEvent.UPDATE,geoLocation_UpdateHandler, false,0,true);
            protected function geoLocation_UpdateHandler(event:Event):void
                msg.text += "\ngeolocation updated";
        ]]>
    </fx:Script>
    <s:Label id="msg" text="foo"/>
</s:View>
GeoTest1-app.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.6">
     <id>GeoTest1</id>
     <filename>GeoTest1</filename>
     <name>GeoTest1</name>
     <versionNumber>1.0.0</versionNumber>
     <initialWindow>
          <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
     </initialWindow>
     <android>
          <manifestAdditions>
          <![CDATA[
               <manifest android:installLocation="auto">
                    <uses-permission android:name="android.permission.INTERNET"/>
                    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                    <uses-configuration android:reqFiveWayNav="true"/>
                    <supports-screens android:normalScreens="true"/>
                    <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                    <application android:enabled="true">
                         <activity android:excludeFromRecents="false">
                              <intent-filter>
                                   <action android:name="android.intent.action.MAIN"/>
                                   <category android:name="android.intent.category.LAUNCHER"/>
                              </intent-filter>
                         </activity>
                    </application>
               </manifest>
          ]]>
          </manifestAdditions>
     </android>
</application>
Please try the above and see if it works.
-- Tom
Flex SDK engineer

Similar Messages

  • Flash Builder Burrito with Hero RUN disappears

    In trying to complete the Flex-In-A-Week tutorial series, I found it necessary to install Flash Builder Burrito with Hero for the "professional" features of the network monitor. The install went fine and on first opening the interface looks fine including the |> RUN button being visible.
    When I define a new workspace using Switch workspace to where the FIAW files are and open the lesson I am working on the |> RUN button disappears and there is no way to run the code. I can't find any way to get the run button back. I may have to abandon the trail and return to the Flash Builder standard that came with CS5 Web and give up on the network monitor. someone please help.

    does anyone know of a replacement for the network monitor? so i can run the standard version.
    http://www.riaspace.com Piotr Walczyszyns' Toaster Lite says it does but I can't figure out how to integrate it into the Flash Builder work flow to use as easilly as network monitor appears to work.
    Any suggestions would be appreciated.

  • Deployed Android project using Flash Builder Burrito not working on mobiles

    Hi,
    I have created a simple "Hello World" Application using Flash Builder Burrito SDK. I have tested the result in the emulator it is working great.
    After that i deployed the application using "Export Release Build Option" and entered valid certificate details and created the .apk file. I copied the .apk file into the device and i run the application. Iam unable to run the app. I have tried these in 3 android supported devices and in each of these i am getting different error messages. I have mentioned the device in which i have tested and the error message i got while i tried to install the app (.apk file)
    HTC Desire - "Error while parsing the package of the application"
    Samsung Galaxy Tab - "Error while parsing the package of the application"
    LG Optimus one (LG P500) - "Application not installed"
    I have created a New Mobile Project in the flash SDK and added simple label "HELLO WORLD" in the view section.
    Before deploying i have installed Adobe AIR 2.5 in the device.
    Whether iam missing any of the steps to deploy correctly in the device. If so, please let me know. Also i need to know whether any restrictions are there for applications developed using Flash Burrito Preview Release. (whether by default all android mobile version more than 2.1 will support it?)
    Also when i try to install "Tour De Mobile Flex" apk in LG Optimus, it is saying "Device not supported" message.
    How do i overcome these problems to run the apk file without any problems.
    If you need any other detail please let me know, i will explain it in detail.
    Thanks in Advance,
    Srinivasan.C

    Ok, this is an old post but i still needed a couple of hours to find a solution, so here we go:
    - Most likely you have TWO executable build targets in your project (two mxml that you can launch). If so, go to the Project settings > Flex Applications and remove the one you don't need so you only have one.
    - My case was a bit complex though - i was using an ANE and Coldfucion server. In this case change the Output folder in the Project Properties > Flex Server > Output folder to something like "temp" instead of "C:..." generated by Flex Builder. The Android device gets confused by a "C:" reference but still can understand a local "temp" folder
    I hope i have saved your day

  • Flash Builder Burrito Supported Android Phones?

    Hi there everyone. I am giong to start building an Android phone via Flash Builder Burrito.
    The question I wanted to post is, has any tried developing/debugging an Android application on Burrito and connected it with another phone other than the developer phone offered in the Android Developer Marketspace?

    Any Android 2.2 phone should work, and yes, provided you have the drivers for it installed if you are on Windows. We include the USB drivers for all the common supported phones in your Flash Builder Burrito installation at:
    <Adobe Flash Builder Burrito Home>\utilities\drivers\android\
    Refer to the documentation that came with Flash Builder Burrito for instructions on installing the drivers.
    Also, if you run into any other problems with a particular Android 2.2 device, please let us know!
    thanks,
    -george

  • Autocompletion not working in Flash Builder burrito

    Hello!
    What causes could prevent autocompletion from working in Flash Builder burrito? in flash builder 4 it works fine, but not at all in burrito. maybe I changed some settings somehow? If i open Settings->Flash Builder->Editors then "Enable Auto Activation" under "Code Assist" is checked.
    what other reason could there be for that problem?

    Hi,
    Are you using 'Flash Builder Burrito Preview'? You might have faced this known issue https://bugs.adobe.com/jira/browse/FB-28451 . This is fixed in future builds of Flash Builder.
    Workaround is, Click 'Restore defaults' in Preferences->Flash Builder->Editors->ActionScript Code->Content Assist Cycling
    Or Changing workspace.
    Let us know if this workaround solves the issue.
    -Radhakrishna

  • Flash Builder Burrito, Random Crash in Debug Build

    Hello:
    I have been working with Flash Builder Burrito for about a week. When I publish it to the Xoom device in debug mode, it will crash at random. When I publish it as a normal build, it works great.
    I'm not sure if it's actually a crash or it loses the Wi-Fi connection to the device and just quits out?
    I get no errors to the Debug window when it just random quits the app.
    I would suggest it's a coding error but it is just sitting at a simple MXML screen and not doing anything in the background. Plus it works when I do a normal build with out the Debug console.
    My guess is there is a packet loss or something and it quits out?

    This is a bug in AIR on the Xoom device.  As you pointed out it only happens when debugging.  We're aware of the issue and working on a fix, you can track the progress on this bug: http://bugs.adobe.com/jira/browse/FB-30457

  • Where can I download flash builder burrito standard preview release?

    Dear all,
    Where can I download the flash builder burrito?
    My current project is in burrito and I want to set up for my new pc but still can't find the archive of Burrito version and when I downloaded the latest version of flash builder 4.5 it can't run flex and showed this error:
    Description        Resource        Path        Location        Type
    Unknown Flex SDK: "Flex Hero"            MyGame                Unknown        Flex Problem
    Thank you all !
    I need that badly

    try the link : http://www.mydigitallife.info/adobe-flash-builder-4-free-download-with-serial-number/

  • Flash Builder Burrito serial expired

    Hoi there,
    i have made an app in Flash builder Burrito some time ago. Now i have used Flash builder 4.5 for some time but i can't use it for my app because of the skin changes (or i have too restyle the whole app whick will take to much time for such a small app). So i want to reinstall Flash builder Burrito again and make some bug fixes for my app. But now my Flash builder Burrito licens is expired which is strange because Flash builder 4.0 and 4.5 are running fine. So my question is has Adobe canceld support even for activitating Flash Builder Burrito?

    Thanks for letting us know about the this problem with the Burrito trial and the FB/CFB serial numbers.
    If you send me your amt logs, I'll follow up with the CF Builder team to figure out what's the matter. More info here on where to find the logs:
    http://kb2.adobe.com/cps/834/cpsid_83481.html
    In addition to the amt3.log, you might find others in that same location, so if you could send them all, that would help track this down faster.
    You could send them as an attachment to cagruss [at adobe dot com].
    Thanks,
    -Chris

  • Flash Builder doesn't see my ios8 devices

    My dev environment was working fine a couple months back, hadn't made any changes and came back to work on a mobile app.  Now Flash builder cannot see my ios 8 devices.  I think the problem is ios8 and related to provisioning profiles not being installed.  Which of course I can't verify because apple has conveniently removed the ability to see the installed profiles... I have regenerated the provisioning profile and know that the device I am attempting to use is listed.  Honestly this should have even been needed since it was working fine before. 
    Also I can manually install the app on the device using itunes, however the device will not open, again implying that the profile is missing which is causing the issue.
    If anyone has any suggestions please let me know.  This has been very frustrating-- apple always seems to be making things more difficult for those who don't follow their dotted line.
    Also updated my sdk to 4.14.1.
    Thank-you,
    Jonathan

    After I hit run the URL that is shown on Firefox is the last page that I was on, so in this case, 'this' pages url; therefore, has nothing to do with what I'm trying to run. So in this case it would be "http://forums.adobe.com/post!reply.jspa?message=3625965"
    Now as for which version:
    Flash Player version: MAC 10,2,153,1 debugger version
    Mac OS: 10.6.7
    Update: Alright, it seems to have been some Firefox bug. I upgraded to Firefox 4.x on a haunch and somehow it must of reset whatever that was causing the problem and it now works as nornal. Thanks for the help though, appreciated.

  • How to use Flex SDK 4.0.0 in Flash Builder Burrito?

    Hello!
    How can I create a project with Flash Builder Burrito that builds against the Flex 4.0 SDK? I tried to copy the 4.0.0 sdk folder over from my Flash Builder 4 installation, but if I create a new project in burrito, it still offers me only choice between 3.5 and 4.5
    what else do I have to do?

    Did you configure it in Window / Preferences / Flash Builder / Installed SDKs?

  • Purchasing Flash Builder Burrito

    Hi,
    Sorry if this is the wrong forum, but not sure where to ask. Was just wondering if Flash Builder Burrito will be released as an update for Flash Builder or if it will be a new version to purchase. I plan on purchasing Flash Builder, but wasn't sure if i should wait until Burrito is released or not.
    Thanks

    Hi,
    We have not announced pricing or availability as of yet for the upcoming version of Flash Builder.
    As the upcoming release contains new features it will be a paid upgrade from the current Flash Builder 4 release.
    Thanks,
    Andrew Shorten
    Group Product Manager, Developer Tools, Adobe

  • A puzzle game using Flash Builder Burrito

    I used the Flash Builder Burrito and AIR 2.5.1 to build a simple puzzle game for the Android market. It is called 'Ramanujam's Magic Square' and is live. Performance on Galaxy S is as good at it can be with a native app. considering that the puzzle is about number crunching.
    Here is the pic:

    it's ok, I figured it out.
    just using Flash builder 4.5 grid containers

  • Flash builder burrito

    hello
    I'm are using the flash builder burrito
    to make a few test's for android aplications.
    So my questions are
    When the final release for the burrito whe will be able to buid  aplications without adobe air requeriment?
    I ask that because on samples that i made not just one works because my android phone have a arm6 processor, so i think that
    aplications made on burrito just will work on the smartphones with arm7 processor because the air request, is correct?
    Sorry for my english
    Many thanks

    Hi Chris,
    The Burrito Preview installs to a different directory than your existing FB4 installation, by default, so there should be no conflict there. Also, it accepts the same Serial Number you have for FB4 if you purchased FB4 as an individual product.
    If you purchased FB4 as part of a CS5 Suite, there will be a site available you can use to obtain a Preview SN for Burrito, but you can still use Burrito in Trial mode until that is available.
    -Chris

  • Flash Builder Burrito 'unable to resolve ... for transcoding' error css file

    Hi,
    I am trying to dip my toes into the waters of mobile development with the preview release of flash builder burrito.
    I am doing so by trying to port over an application I have built in Flash Builder 4 for the web, by bringing it into a mobile app piece by piece, using the view stack struture peculiar to mobile apps.
    I am haivng an issue with my untouched css file that I am trying to use in the app. It's a direct copy from the other app in the same directory structure and yet I have declarations of embedded images of the form:
    .topLogo {
        url: Embed(source="assets/images/header-logo.png");
    Which continually cause:
    unable to resolve '/assets/css/assets/images/header-logo.png' for transcoding     Flex Style Problem
    errors.
    It is drving me utterly nuts. The images are there, and if I change the path to an invalid one I get a proper error in the editor, so it IS resolving them, but then these transcoding errors come up and seem to be triggering repeatedly as the problems pane keeps taking the focus away from the editor.
    It's driving me nuts.
    Anyone know if I've missed something?

    Problem solved by turning off Design View (which we never use anyway, useless thing for OO style programming), it's on by default with a new install of Flash builder.
    The mobile app looks promising, just waiting on a developer license to see how it goes on an iPad

  • I get some trouble exporting  mobile  application with Android Adobe Flash Builder Burrito

    Hi, eveybody.
    I make 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 android emulator. But I failed. I got some messages as follow:
    E:\android\a\android-sdk-windows\platform-tools>adb install Twitter.apk
    594 KB/s (875316 bytes in 1.437s)
            pkg: /data/local/tmp/Twitter.apk
    Failure [INSTALL_FAILED_INVALID_APK]
    Then, I download the AdobeAIRSDK2.6, unzip, and copy the files to the sdk(D:\Program Files\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 It can't export it as a .apk...
    Thanks!

    Thanks.
    But why I can't export a .apk as I update the sdk to air2.6?

Maybe you are looking for

  • Defaulting values in material master creation

    Hi, I want to have some filed values to be appeared as default in all the views while creation of material master. By user settings, I can restrict Org level values such as C Code,S Org Distribution Channel etc etc. But how to make field values such

  • Mapping problem in SOAP response to RFC response - RFC-XI-SOAP scenario

    Hi gurus, response structure from SOAP is as below (inbound msg - in SXMB_MONI) MONI and RWB shows successful(I am using graphical mapping) <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Inbound Message   --> - <ns0:testrequestRespo

  • Help!! I have deleted my pages in iWeb...

    Hey.. By mistake I deleted my pages in iWeb... Any ideas how to bring them back? My site is all right - my question is how to get back my pages in the program iWeb. Please help!!! Regards Erik

  • V1.4.0 on W95

    I tried to install Java SDK V1.4.0 (with Forte) on a 486/W95 machine by offline execution of the self extracting installation file. All appeared to work, there were no error messages and it informed me that the installation was successful. The instal

  • Installation Stuck in ABAP load phase due to MAXDB slow Performance

    Hello, We are installing ERP2005 on solaris 10 with MAXDB7.6 with build 35. During installtaion the Import ABAP phase stucks and running for a  so long time. As per the note SAPNOTE :848436 we have been trying to execute the statment CHECK TABLE "/MA