Search Results

Search found 2 results on 1 pages for 'cheezmeister'.

Page 1/1 | 1 

  • Using CMake with Eclipse CDT, quickly switch targets?

    - by Cheezmeister
    I'm using the CDT4 - MinGW Makefiles generator. Project-Build All successfully builds the target (a shared library) but it seems I would have to (A) open a project settings page and type in the target, hoping it's spelled right*, or (B) run make from a terminal to "build" the install and package targets. I noticed a promising Project-Make Target entry, but the Create... and Build... sub-entries are greyed-out. Any hints would be appreciated! *http://publib.boulder.ibm.com/infocenter/rsdhelp/v7r0m0/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_build_over.htm

    Read the article

  • Switching application-wide theme programmatically?

    - by Cheezmeister
    EDIT: Related question here: Multi theme support in android app I'm attempting to get a user-chosen theme and feel like I'm frustratingly close. Defining the theme in AndroidManifest.xml works as it should, but (as best I can tell) can't change based on app preferences: <application android:theme="@style/theme_sunshine" android:icon="@drawable/icon" android:label="@string/app_name"> Alternatively, setting it dynamically in each activity also works: someChosenTheme = PreferenceManager.getDefaultSharedPreferences(this).getString("themePreference", "theme_twilight"); setTheme(someOtherChosenTheme); But that seems messy, and I'd rather set the theme for the entire app in one place. My first thought was to grab the application context as soon as my main activity launches and do it there: getApplicationContext().setTheme(R.style.theme_dummy); As best I can tell[0], this ought to do the trick, but in fact it's not doing anything--the entire app has the default Android style. Is the above valid, and if so, might I be doing something else dumb? I'm working in API level 3 if that matters. Prods in the right direction greatly appreciated! [0] http://developer.android.com/reference/android/content/Context.html#setTheme%28int%29 http://developer.android.com/reference/android/content/Context.html#getApplicationContext%28%29

    Read the article

1