cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

When I touch an Icon in my App using an Android phone, it just goes on the blink?

My navigation menu works fine while building / testing the app on a PC, but when I run on my Android phone, it performs strangely.

This is the code behind the Hamburger Icon,  OnSelect property:

 

Select(
    MenuGallery1,
    3
);
If(
    HamburgerMenuVisibilty,
    Set(
        HamburgerMenuVisibilty,
        false
    ),
    Set(
        HamburgerMenuVisibilty,
        true
    )
);

 

 MenuGallery1 gets its Items from a collection, loaded in the App OnStart:

 

ClearCollect(
    callMenuItems,
    {
        id: 1,
        menuLabel: "Product List",
        screen: MainScreen1
    },
    {
        id: 2,
        menuLabel: "Finished Goods",
        screen: FinishedGoodsListScreen6
    },
    {
        id: 3,
        menuLabel: "Scan QR Code",
        screen: SelectLocationScreen
    }
);

 

So when I load this on my mobile, tapping the Hamburger Icon causes the screen to blink endlessly. This is not peculiar to my phone.

When I removed my code to select a menu item, it went away.

This bit:

 

Select(
    MenuGallery3,
    2
)

 

I only did this to cause the current screen to appear highlighted.

It seems to have sent it into a loop!

2 REPLIES 2
Highlighted
Resolver III
Resolver III

Re: When I touch an Icon in my App using an Android phone, it just goes on the blink?

Hello,

 

Instead of the IF statement you can do the following:

Select(
    MenuGallery1,
    3
);
    Set(
        HamburgerMenuVisibilty,
        !HamburgerMenuVisibilty
);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Continued Contributor
Continued Contributor

Re: When I touch an Icon in my App using an Android phone, it just goes on the blink?

Thanks @KennethNicasens 

I am testing with

 

Set(
        HamburgerMenuVisibilty,
        !HamburgerMenuVisibilty
);

That works OK. It seems it was the other bit causing the problem:

Select(
    MenuGallery1,
    3
);

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,687)