cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
stapes
Level 8

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

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."

stapes
Level 8

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,559)