Android Open Source - iSiteProyect Activity Helper

From Project

Back to project page iSiteProyect.


The source code is released under:

Copyright (C) 2013 Plasty Grove <> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwar...

If you think the Android project iSiteProyect listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

 * Released under MIT License
 * Copyright (c) 2013 Plasty Grove/*from   ww w.j a v  a2 s  .  co m*/
 * Refer to file LICENSE or URL above for full text 

package com.iSiteProyect;

import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class ActivityHelper {
  public static void initialize(Activity activity) {
    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);

    String orientation = prefs.getString("prefOrientation", "Null");
    if ("Landscape".equals(orientation)) {
    } else if ("Portrait".equals(orientation)) {
    } else {

Java Source Code List