Joined July 2014
·

Gabriel Pedro

Cuiabá - MT
·
·

Posted to Android Theme Without ActionBar over 1 year ago

@rafaelcgo, it's more agile! But the right way is using styles/themes.

Posted to Set up a Development Environment over 1 year ago

It's simple if you're using git.

create a repository called "modules" and a repository for each submodule.
In "modules" repository, use git modules to reference the other sub-modules and then in the main repository, change the modules folder for git module

---portunhol
crie um repositório chamado "modules" e um outro repositório para cada submódulo. No repositório módulos, use o git modules para referenciar cada outro submódulo e então no repositório principal, mude a pasta original de módules para git module

Posted to Android Theme Without ActionBar over 1 year ago

Java alternative
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getActionBar().hide(); ... }

To prevent this, you can use ProgressDialog with attribute cancelable(false)

Pretty Cool, but i recommend using SharedPreferences

SharedPreferences preferences = getSharedPreferences("myprefs", MODE_PRIVATE);
if (preferences.getBoolean("firstLogin", true)) {
        SharedPreferences.Editor editor = preferences.edit();
        editor.putString("firstLogin", false);
        editor.commit();
}

References: http://developer.android.com/reference/android/content/SharedPreferences.html

if you use the form, you'll have to give write permission to the file system if it is not used elsewhere, will be an unnecessary permission

Achievements
1 Karma
0 Total ProTip Views