Posts by Allan Chrystian • 483 points
25 posts
-
2
votes1
answer54
viewsQ: Remove child from an Expandedlistview
Hello, I would like to know how to remove a subitem from an Expandedlistview, in other words remove the Adapter item, where the Adapter receives a Map<Categoria, List<SubCategoria>> and…
-
1
votes0
answers287
viewsQ: Fragment does not appear in a Toolbar with Tablayout
I am trying to show 2 list layouts in the same Activity using Viewpager, but for some reason the layouts are not being shown on the application screen (they are blank), however, when debugging,…
-
0
votes2
answers429
viewsA: Return which Alert Dialog button was clicked
Following the line of reasoning of Renan Diniz’s comment, I passed what I wanted to execute (finish the action mode) after the method return true or false as parameter. Stayed like this: public void…
-
0
votes2
answers429
viewsQ: Return which Alert Dialog button was clicked
I have a void method that creates a custom dialog that shows a listview Multichoice, I would like to make this method return a Boolean when positivebutton or negativebutton is clicked to do another…
-
7
votes1
answer782
viewsQ: Notification at 0h00 without starting application
I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, currently I have a code that notifies from the moment I…
-
0
votes1
answer91
viewsQ: Undefined index JSON Android
Hi, I’m making the following mistake: I am developing an application that checks a table of an external mysql database by sending the device’s IMEI returning a hardware id, but when debugging the…
-
1
votes2
answers387
viewsQ: Add all records before a specific date - Sqlite
I am wanting to add up values from several rows of my table (add up expenditure values) prior to a specific date (for example, add up all values that are lower than the date 2015-26-06). I’m using…
-
1
votes1
answer988
viewsQ: What are the Android design standards?
Hello, I wonder if there are project standards for Android(Java), coding, etc and their similarities, differences, which is the most used, because I’m wanting to know more about the subject and I…
-
3
votes1
answer323
viewsQ: Set maximum height for Alert Dialog
My dialog has a list, and when this list has many entries, the dialog cuts the buttons in the middle, as in the image : How do I set a maximum height not to get cut this way? Dialog code public void…
-
1
votes0
answers42
viewsQ: requestLayout() improperly called by Listview
I have the following error, when I call my screen of categories they load normally, I go to the second tab called expense that loads a list, so everything well, when returning to the first tab, the…
-
2
votes1
answer201
viewsA: Going back to the top of the screen when writing in the field
I managed, after a search I discovered the attribute descendantFocusability, and I was testing the values until I found the value afterDescendants. Listview looked like this in xml, it solved my…
-
5
votes1
answer201
viewsQ: Going back to the top of the screen when writing in the field
I have the following error: I have a list and a field, every time I edit any text Edit from the list, it loses focus and goes to the top of the screen, notice the gif that at each letter of the word…
-
1
votes1
answer144
viewsQ: How do I load the application as user id?
In my app you have a user registration. Each user has a name and email, I would like when you start the application to save the default user id (or reload the application when I change the user)…
androidasked Allan Chrystian 483 -
0
votes2
answers758
viewsQ: Update layout from a button
On the main screen of my app there are two buttons, an arrow to the right and another to the left symbolizing the previous and next months, in them I call an index to reload the page with the values…
-
0
votes0
answers498
viewsQ: Insert Checkbox value into the bank and then use it on the screen
I have a recipe registration screen that contains a Checkbox called "received", I would like to know how to insert in the sqlite a tinyint and then redeem when I want to consult this recipe. Ex : I…
-
2
votes2
answers1943
viewsQ: Updating Listview when I come back from a screen
I have a Listview that has a button that goes to another screen that when filling this screen and clicking the save button, it returns to Listview but I could not find a way to update this Listview.…
-
1
votes3
answers563
viewsA: setOnItemLongClickListener is not working
I just forgot one line that already solved everything: dialog.show(); It worked at the time, but now it calls onItemClick and onItemLongClick, the two together, how to solve?…
-
0
votes3
answers563
viewsQ: setOnItemLongClickListener is not working
Can someone help me by telling me setOnItemLongClickListener not being called when I give a long click on my list item? I have in the same Adapter 2 methods of type onclick, one is the…
-
0
votes1
answer180
viewsQ: Navdrawer using activities instead of Fragments
I’m trying to implant a Navdrawer in my app but the example that I saw uses Fragments instead of Activity that I was already using, I found a block that deals with the Fragments. Part of the code…
-
1
votes1
answer894
viewsQ: Take the id of the textview that is inserted in the listview and put in the bd
I have a layout with 2 lists, one complements the other, category and subcategory I would like, when inserting a subcategory by clicking add feed the database with the id of the category that is on…
-
2
votes1
answer1348
viewsQ: How to create a List and Sublist?
I’m looking for a popular one Listview based on two tables, one so-called category and the other subcategory, and I would like it to look something like this: When I typed a name for Category on…
-
1
votes1
answer1073
viewsQ: Problem showing date on Android
When displaying a date that has been entered in the database, of type DateTime, the app shows the current date: I’d also like to convert that date to dd/mm/yyyy to adjust to a portrait layout. Part…
-
0
votes1
answer417
viewsQ: How to use Listactivity with Actionbar?
You can only access a menu ListView who is without the ActionBar by the menu key in the emulator. How to display it? It is necessary to inflate by BaseAdapter? Activity of ListView: public class…
-
1
votes1
answer2389
viewsQ: Error Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null Object Reference
I’m with this error and I can’t fix it, it works every time I run the app. Logcat: 01-15 16:09:03.380 2473-2473/com.prjctt.allan.financeiro E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:…
-
3
votes1
answer337
viewsQ: Set date inside an Arraylist using Cursor
In a App finance the cursor has no type of getData or getCalendar. What to wear instead? public List<Despesa> getLista() { Cursor c = getWritableDatabase().query(TABELA, COLUNAS, null, null,…