This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checar esses passos | |
http://stackoverflow.com/questions/25968542/please-check-the-confirmation-dialog-on-your-device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="180dp" | |
android:textColor="#000000" | |
android:hint="Text Hint Info..." | |
android:textColorHint="#CCCCCC" | |
android:textSize="20dp" | |
android:elegantTextHeight="true" | |
android:id="@+id/edDescription" | |
android:background="#FFF" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Em uma activity ou fragment, verificar o life cycle para evitar executar código a cada acesso. | |
Por exemplo: | |
- Acessar uma lista de itens | |
- Acessar um dos itens da lista | |
- Voltar para lista | |
Dependendo do método executado (em relação a Activity e ao Fragment), a cada acesso a tela pode | |
ser atualizada ou também uma nova consulta ao webservice é executada. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | |
android:orientation="vertical" | |
android:layout_height="match_parent" | |
tools:context=".MainActivityFragment"> | |
<include layout="@layout/toolbar_main" /> | |
</LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout | |
android:layout_width="270dp" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
android:gravity="center_vertical" | |
android:background="#993366"> | |
<TextView | |
android:id="@+id/tvTitleActivity" | |
android:layout_gravity="center" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://badlogicgames.com/forum/viewtopic.php?t=19301&p=81023 | |
So I appear to have solved this now...Even though the application was uninstalled from the device for all users, uninstalled via the ADB and did not appear on the list of packages from the ADB, it was still present on the device. On the device, under "Settings -> Apps -> All", at the very bottom was an entry for my application. It was tagged as "Not installed for all users", after selecting it and opening the top-right menu, I could select "Uninstall for all users". For some reason, this fixes the issue. | |
-------------------------------- | |
Quando ocorrer o erro de não ser possível reinstalar o aplicativo via APK. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Handler handler = new Handler(){ | |
@Override | |
public void handleMessage(Message msg) { | |
switch(msg.what){ | |
case 0: | |
nextActivity(); | |
progress.dismiss(); | |
} | |
super.handleMessage(msg); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/3875184/cant-create-handler-inside-thread-that-has-not-called-looper-prepare | |
http://stackoverflow.com/questions/5009816/cant-create-handler-inside-thread-which-has-not-called-looper-prepare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int seconds = 88200; | |
int secHour = 3600; | |
float val = ( (float) seconds / (float) secHour); | |
System.out.println( val ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sempre setar o Layout Manager | |
recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); | |
não esquecer nunca. |