Posts by kleiser sarifo • 161 points
7 posts
-
0
votes1
answer46
viewsA: Nullpointerexception when query in Sqlite
Sorry for the late reply, but if you haven’t solved try this, change your: public class QuestActivity extends AppCompatActivity { Questao quest = new Questao(); private SQLiteDatabase bank; TextView…
-
1
votes1
answer298
viewsA: "Unable to instantiate Activity" error while running Activity
Initialize Edittext within the Oncreate method: private Usuarios usuarios; private EditText editTextNome; private EditText editTextEmail; private EditText editTextCurso; private EditText…
-
0
votes2
answers145
viewsA: Check Smartphone Current Time
I don’t know if I understood what you want, but if you want to have the current time in a textview you can do the following: package mz.co.oncreate.timetest; import…
-
0
votes1
answer80
viewsA: Android: How to clear space between each entry in a Spinner?
Look, there it seems to be all right, but I don’t know how this your class, but it must be something like this Spinner spinner; @Override protected void onCreate(@Nullable Bundle savedInstanceState)…
androidanswered kleiser sarifo 161 -
1
votes1
answer57
viewsA: Hello World differs on Android Studio version
In the latest versions of Android Studio it is no longer necessary to set Actionbar programmatically when the class inherits from Appcompatactivity. Already defined by default in the theme.
-
0
votes3
answers1127
viewsA: How to add Toolbar in Activity without inheriting Appcompatactivity - Android Studio 1.4
When we create Actionbar without Appcompatactivity You need to set the Actionbar layout in your xml. Place the code below as the first element of your layout.xml…
-
6
votes3
answers646
viewsA: Import eclipse project to latest Android Studio API
Try putting compile 'com.android.support:appcompat-v7:23.3.0' Under "dependencies" in the build.Gradle file