Posts by Lucas Charles • 127 points
28 posts
-
1
votes1
answer133
viewsQ: Linearlayout over a listview
I have a Linearlayout that I want that when it gets VISIBLE it overlaps a listview, how to do this? I want my optional Linearlayout to override listview when it is set to VISIBLE. <RelativeLayout…
-
1
votes1
answer453
viewsA: Error in Android Studio - Several messages of type `Cannot resolve the ...`
I was able to solve the problem, through the steps: File > Invalidate Caches/Restart... > Invalidate and Restar I don’t know what happened, but it worked. Thank you very much.
-
0
votes1
answer453
viewsQ: Error in Android Studio - Several messages of type `Cannot resolve the ...`
Good afternoon, I have an error in Android Studio and I can’t fix it. When I opened my project several messages like cannot resolve the symbol and in red they appeared, as it is in the image. Can…
-
1
votes1
answer54
viewsQ: Which type to use to store values that are in an Arraylist<> in an Sqlite table?
I have the following table in Sqlite: db.execSQL("create table amc(_id integer primary key autoincrement, nome text not null, contratada text not null, tipo text not null, data text not null,…
-
0
votes1
answer101
viewsQ: Attempt to invoke virtual method 'java.lang.String android.widget.Spinner.toString()' on a null Object Reference
I am trying to save the data of a spinner in a variable through findviewbyid, to later be saved in SQLITE. The data is, name, type, third and date. But when I try to set this data, it is generating…
-
-1
votes1
answer818
viewsQ: Save an Arraylist<> to an SQLITE table
Speaks Galera, I’m wanting to save an array list in a table in SQLITE, can I do it? If yes, how? This is my table: db.execSQL("create table amc (_id integer primary key autoincrement,tipo text not…
-
0
votes1
answer135
viewsQ: fetch all records from a sqlite column
I need to save in a list the names of the user table and save them in an Arraylist. I did as follows: public List<String> buscarUsuarios() { List<String> nomes = new…
-
0
votes0
answers118
viewsQ: Radiobutton changes checked when scrolling Listview
Good afternoon, I have a problem with Radiogroup on a listview. Next, when I mark a Radiobuttom and use the scroll of my listview, the marking I made appears in another Radiobutto and not in what I…
-
1
votes2
answers245
viewsQ: Cannot Resolve Method isChecked()
I am trying to use the isChecked() method but is giving the message "Cannot Resolve Method Ischeked(). Can anyone help me? @Override public View getView(int position, View convertView, ViewGroup…
-
1
votes2
answers237
viewsQ: Radiogroup in Listview does not maintain selection after scroll
I have a Listview with some information and within it I have a Radiogroup, but when I scroll the screen all my checkbox are unchecked because the listview is creating this checkbox again. I need my…
-
2
votes1
answer1838
viewsQ: Error while performing findviewbyid
Hello, I want to find the id of two Textviews, but they are returning NULL. Follows my code: private TextView nomeUser; private TextView cargoUser; @Override protected void onCreate(Bundle…
-
0
votes1
answer631
viewsQ: Return string in SQLITE query
I need to return a user’s name in an SQLITE query: I’m using the following code: public String verificarUsuario(String login) { try { String selectQuery = "select nome from usuarios where login = "…
-
0
votes1
answer412
viewsQ: Retrieve past information in a Bundle
I have a Fragment that calls another Fragment by passing login information to the other. I do this with the following code through the Bundle. Follow the code : ImageView editarBt = (ImageView)…
-
0
votes1
answer547
viewsQ: Screen login SQLITE
I am trying to perform the verification of user existence and login when performing the access in the system. I’m using the following codes: public int login(String username,String password) {…
-
0
votes1
answer48
viewsQ: Exchange of information with Fragments
I have a CRUD to add users but I’m having trouble implementing the edit. User clicking edit wanted edittext to be loaded already filled. For that, I tried to implement something like: ImageView…
-
0
votes1
answer33
viewsQ: Error while editing through SQLITE
I’m trying to edit information that’s saved in the SQLITE gang. I’m working with fragments. But I’m making the following mistake: FATAL EXCEPTION: main Process:…
-
0
votes1
answer385
viewsQ: Error while performing an SQLITE table creation
I’m trying the following mistake: android.database.sqlite.SQLiteException: no such column: np (code 1): , while compiling: SELECT _id, nome, email, np, tipoFunc FROM usuarios ORDER BY nome ASC at…
-
0
votes1
answer2933
viewsQ: java.lang.Nullpointerexception: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null Object Reference
I have a Fragment that through a button it will call the other Fragment. But the following error is appearing. 06-20 19:12:12.075 17971-17971/com.example.gerdaumanagement.gerdaumanagement…
-
0
votes1
answer417
viewsQ: Calling a method of the class of the Fragment itself
Good afternoon, I have a Fragment that has the following XML <Button android:id="@+id/salvar" android:layout_width="match_parent" android:layout_height="wrap_content"…
-
0
votes0
answers130
viewsQ: How does one Fragment call another Ragment method?
Hello, how can I call a method that is in another Fragment through the android:onclick =""
-
0
votes0
answers67
viewsQ: How to maintain a radiobutton marking when scrolling a listview?
Good afternoon, I have an edited listview and inside it I own a radioGroup. I need that when scrolling the listview, the marking on the radioGroup does not lose its marking. Follows the xml.…
-
0
votes1
answer807
viewsQ: How to hide keyboard when leaving Edittext?
I have three edittext, I want that when I click out of them or finish filling my keyboard sum. Being that they are a Fragment. How to do this? My XML with editText. <RelativeLayout…
-
0
votes4
answers645
viewsQ: How do I insert a button after a listview?
Hello, I need to insert a button right after my listview. I mean, when I finish sliding my listview will have a button at the end. I’m trying to do it this way: <LinearLayout…
-
1
votes2
answers8760
viewsQ: How to create a list with some attributes in java?
I’m having trouble creating a list where I can enter different values. I use the following codes: public class avaliacaoMensal { private String questao; private char potencial; private int…
javaasked Lucas Charles 127 -
0
votes2
answers925
viewsQ: I did wrong thing in my code in android studio and I can’t go back to what I was before
Is there any way I can get my code back to the way it was before I did the wrong thing in android studio? Apparently I deleted my code and only Gradle script is there. Is there any way I can recover…
-
0
votes1
answer134
viewsQ: How to open a new Activity without closing the Drawer menu?
I have an Activity and in this Activity I have the Drawer menu. How do you call another Activity without the Drawer menu disappearing? I just want to change Activity’s content. I tried to use…
-
0
votes1
answer59
viewsQ: How to save the id of a relativeLayout?
Hello, good afternoon. I’m new to Android programming and am unable to save the ID of a relativeLayout to be compared. Example: <RelativeLayout android:id="@+id/idAmc"…
-
0
votes1
answer703
viewsQ: Insert Scrollview into all Activity
Hello, I need to insert a ScrollView throughout layout. But I’m not getting it. Follow my code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…