Discussion Forums  >  Uncategorized

Replies: 4    Views: 231

koopakid08
Aspiring developer
Profile
Posts: 74
Reg: Jun 14, 2011
earth
1,540
12/15/11 06:16 PM (14 years ago)

Make the PDF plugin open with one click like 1.4? ANDROID

Is there any way to make the PDF plugin act like how you open a PDF on a 1.4 app where you only need to tap the menu and it will auto pop up with what app to use to open instead of using a landing screen? I am sure that my users would prefer only having to make one tap instead of 2 or 3.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/16/11 12:46 AM (14 years ago)
You can do anything you want, just depends on what you want to hack around with. What version are you running? v1.5, BT server, etc. Just look at the tap-method in the v1.4 app to see how it's working then intercept the menu-click and do the same thing you're trying to emulate. I realize this may sound nerdy and require some patience but without digging through a bunch of code. I'll bet you just need to figure out what class (probably a menu type screen) the user is tapping. Find where the next screen is loading, remove that code and add your own code to launch the Android default activity like v1.4 does.
 
koopakid08
Aspiring developer
Profile
Posts: 74
Reg: Jun 14, 2011
earth
1,540
like
12/16/11 05:56 PM (14 years ago)
I'm using BT server. Ill take a look later tonight. Should I directly edit the app or try to edit the plugin itself?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/17/11 10:38 PM (14 years ago)
BT-server, OK. Hmm, edit app or plugin...both make sense. I think I would start by hacking around in the app first. If you end up happy with the results you could easily modify the plugin, or make a new one, so future apps behave the same way. You'll end up making a simple design decision. Do you want to open the .PDF from the menu screen iteself. Or, do you want to open the PDF from using the same method all the other button clicks use. It matter because this will determine where you put your adjusted code / logic. It's probably going to be easier to intercept the 'click event' in the bt_screen_menuList.java file (the plugin) than it is trying to understand the longer, more complicated method used to handle every click. This longer method is not in the plugin, it's in the 'base' activity class. You'll see where the menu-list screen calls the method in the base class.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/01/12 04:52 PM (14 years ago)
Dave, I'd like to do this also. How about a specific procedure for us dummies. Tim
 

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.