Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 35

Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
12/15/12 08:43 PM (13 years ago)

Loading activity class from Android options menu?

I want to add an option to the android options menu, but I am not sure where this code is? From what I can find on Stack, there is typically a menu file in the resources folder. There is no such file in the BT source code that I could find. The code must be hiding in different screen build file. Currently it looks like the only option is to fire the refresh method, or close the option menu. I would like to add a button that launches another screen. I am trying to learn a little more about how the android code works, and I thought this would be a fun little project to find out just how it worked. Has anyone else modified the options menu? Jim
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/15/12 09:35 PM (13 years ago)
I did a little more digging and it turns out what we have is not really a true options menu, this was depreciated in 3.0. Android moved to the Action Bar, so now it shows an action overflow icon if the code has a menu. (three vertical dots) It looks like it fires an alert when the option / menu button is pressed. The only alert I have found so far is in the BT_activity_base file, but this is the alert that is triggered by the report to cloud function that looks for an update...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.