Mobile App Expert For Enterprise Adoption

What is Model View Presenter? MVP Pattern for Android Enterprise App Development

An MVP Pattern for Android Mobile App Expert Recap: Most importantly this was posted by Jeff Angellini ON my birthday What is MVP? or What is Model View Presenter? Answer: Model-View-Presenter Full Link To Source Posted – July 20, 2011 2:46:38 PM by Jeff Angellini Separating the presentation of the application’s UI from the logic of its UI is usually a good idea. This separation of concerns creates more de-coupled code, which is much cleaner, and even allows for more unit testing coverage. Android bundles the UI and UI logic into the Activity class, which necessitates Instrumentation to test the Activity. Since Instrumentation is introduced, it is much more difficult (or impossible) to properly unit test your UI logic when the dependencies in the code cannot be mocked. However, a simple MVP pattern will help de-couple the UI and UI logic in Android applications. The MVP pattern stands for Model-View-Presenter, and it separates the UI concerns between the data of the UI (Model), the display of the UI (View), and the logic of the UI (Presenter). For Android, the View is the Activity, which will handle gathering user input and updating the display; the Presenter is a class that will handle communication between the Model and View; the Model will handle persisting and retrieving data, along with any business logic that the data must adhere to. Interfaces will be used to de-couple each of these components. A simple Customer View will be used to illustrate how this can be accomplished. First, our CustomerActivity (the View) will have textboxes for the Customer’s ID, first name, and last name: private EditText mFirstNameEditText, mLastNameEditText, mIdEditText; The user will load a customer using the mIdEditText and a Load Button. Likewise, the user will save a customer using a Save Button: private Button mSaveButton, LoadButton; We must now create a CustomerPresenter with the following methods: public CustomerPresenter(ICustomerView View) public void saveCustomer (String firstName, String lastName) public void loadCustomer (int id) We then can wire it all up in the CustomerActivity’s onCreate method: mCustomerPresenter = new CustomerPresenter(this);mSaveButton.setOnClickListener(this); mLoadButton.setOnClickListener(this); The CustomerActivity class must now implement the interfaces OnClickListener (for handling the Button’s OnClickListeners) and ICustomerView (for the CustomerPresenter constructor). The OnClickListener defines the method void onClick(View v), and our method will look like the following: switch (v.getId()) { case R.id.saveButton: mCustomerPresenter.saveCustomer(mFirstNameEditText.getText().toString(), mLastNameEditText.getText().toString()); break; case R.id.loadButton: mCustomerPresenter.loadCustomer(Integer.parseInt(mIdEditText.getText().toString())); break; The...

Google’s April 15th Google Glass Purchase For All is Cringe Worthy.

On April 15th Google is letting anyone in the US with $1500 (plus tax) and a heartbeat buy Google Glass with no prior invite. Personally, I feel this reeks of desperation and feel Google is already tying up its laces to walk away. There is a dating hint floating around the internet that says you always ask someone out on April 1st. As if they say no, you simply respond “April fools!” This is what Google is doing on April 15th. “Hey world, want to adopt Google Glass: Yes, No or Maybe. Circle one” What a great way to test the market on a product that might flop. Run a one day sale where no invites are needed. Start a PR buzz a head of time about this limited one day offer. Sit back and count the orders, or lack of orders, coming in. Then if this experiment fails, it will confirm some of us Explorer’s rumors that it will not roll out and it will go to Google’s upstate farm in the sky with Google Latitude, Wave and Buzz. Why would us happy Explorers say Google Glass wont get adopted? Bad press (silicon Valley bar attack and a recent reporter attack) Price vs features. Example, the current battery is lacking at this price point. Mobile influencers like Robert Scoble calling out Larry Page for not wearing it on a recent TED talk. Lobbyist groups US citizens worried about NSA and other government spying. When Eric Snowden blew his whistle did he ever think he would be changing the wearable tech market? Pro-Privacy movement. ex) Snapchat app Is Glass is the new Segway? Everyone (56% of US adults) has a smart phone, in all different industries and demographics. But lets pick on Segway, this disruptive tech was planned to “change the world” but we know that didn’t go as planned. With that said, Segway does serve a purpose for a niche market. Many large events have this innovative transportation available for police officers and first responders. The toughest question to ask yourself with any mobile hardware or software:  “Does this enhance my life?” My phablet has enhanced my life greatly and I cant go 30 seconds...

“Let Me Throw Out 500 iPads w/ Custom Enterprise Apps for Microsoft Surface” Said No One Ever

“Let me hold off on my enterprise’s mobile initiative while Microsoft takes a few more years to nail a (possible Nokia) good mobile device down” Said no one ever. We are at a time where iPads and Android tablets rule in the enterprise ecosystem.It was Microsoft’s mobile market share to lose and they lost it. Now yes, I agree Microsoft wasn’t ever known as a hardware company but maybe this Nokia deal will change that. So we have a company that has 3 huge keys to mobile adoption success: Near monopoly on enterprise OS. The innovative vision of one app for all devices. (ex. Home’s desktop & tablet plus your work laptop & cell all running Excel, not three mobile apps that access Excel. What Google Apps is doing now) Loads and loads of cold hard cash. (We are talking “cure Malaria” cash) So lets say you are a successful modern enterprise, hospital or large fleet (etc) who rolled out mobile tablets on one of the big two mobile Operating Systems. We are talking with custom developed enterprise tablet apps, MDM/Security Policies, secure data storage solutions and have gotten great adoption with the employees. Now Q1 2015,  Microsoft’s 8th tablet attempt finally strikes gold.  Even if the new “Surface6.0” is cheaper, has twice the battery power, more secure and produced a $5 Starbucks card every month – no one will chuck 500 iPads in the garbage and their one off developed enterprise app with it. Would it be enough to dethrone current mobile ecosystem in place? I doubt it. So I wish you the best of luck Bill and Satya, but maybe skip 7-10 inch market? Why not go all in with the 12 inch to 65 inch devices. Or double down in the wearables space. Though again your lack of current hardware innovation will still make it tough to break out. My tinfoil hat prediction: The new mobile Windows will use all or parts of Android. Which will help them keep market share against an upcoming Samsung Tizen attack on Android’s mobile adoption.   -Daniel DiMassa [Twitter] [G+] [Enterprise...