Sunday, October 26, 2014

POX Wiki Android App

[6/23/2015 Update] Here are the latest statistics on the app about six months after publication:








***

I am learning Android programming with a class I am taking at UW Extension. The class is 10 weeks long and I wanted to come up with a project idea that I can work through out the class.

As such, I made an app that is pretty bare, to say the least. It is basically a webview of the POX Controller Wiki. I am hoping that through out the class I will be able to add more to it.

Here are the Java code that creates a webview and loads the page. The code includes allowing JavaScript and an additional method to allow the page to stay within the app after rendering to mobile layout.
public class LandingPage extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_landing_page);
        WebView poxWiki = (WebView) findViewById(R.id.webview);
        poxWiki.setWebViewClient(new myWebViewClient());
        // Confluence renders page for mobile via JavaScript
        WebSettings webSettings = poxWiki.getSettings();
        webSettings.setJavaScriptEnabled(true);
        poxWiki.loadUrl("https://openflow.stanford.edu/display/ONL/POX+Wiki");
    }
    // Stays within app instead of call browser
    public class myWebViewClient extends WebViewClient {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url){
            view.loadUrl(url);
            return true;
        }
    }

Here are some screenshots of the store.









11 comments:

  1. We have an extraordinarily group of very expert experts who can undoubtedly capable to unfathomable degree subsidiary with android applications improvement.http://www.appsprison.com/download-happy-chick-emulator-for-ios-apk-without-jailbreak/

    ReplyDelete
  2. As we all know that android developers are highly paid because of the increasing popularity and demand of the android cell phones and applications. Ipad teleprompter

    ReplyDelete
  3. Android is the world's top-selling operating system and the favorite mobile platform of today. Android, Inc. was founded in October 2003. Google purchased Android Inc. in 2005. ShowBox APK

    ReplyDelete
  4. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai

    ReplyDelete
  5. Looking for the best phone monitoring app for Android phone or iPhone? Visit https://www.toptrackingapps.com/ and have a fair list of all the best spy apps. Check out their authentic reviews, compare them and then pick up the most appropriate app for tracking an iPhone or Android device without any trouble.

    ReplyDelete
  6. Today, the usage of Android technology has grown to millions of users, as it is easily available on the web for downloading purposes.how to become an entrepreneur in 2018

    ReplyDelete
  7. To enrich our user experience of these devices there are millions of iPhone Apps and Android apps that can be used for achieving many things. appmirror

    ReplyDelete