Posts by GabrielLocalhost • 1,430 points
81 posts
- 
		0 votes2 answers1054 viewsA: How to hide the keyboard when clicking an Edittext?I did it in my project: InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(v.getWindowToken(), 0);//metodo para… 
- 
		1 votes1 answer1528 viewsA: Get the month of the mysql datetime fieldWell friend did not understand very well what you want; But let’s see if you want to get all the records for the month of May: SELECT * FROM tabela WHERE MONTH(DataAbertura) = 5; Where 5 is the… 
- 
		0 votes2 answers73 viewsA: Calendar on AndroidI developed a similar screen once. The layout can be what you imagine. follows the low the methods I did to call the android calendar and capture the date selected by the user in an Edit. edt_data =… androidanswered GabrielLocalhost 1,430
- 
		2 votes3 answers128 viewsA: I would like a Textview to display the amount of Checkboxes that have been markedBuddy, let me give you a hint, you can try to simplify this code. Since they are all checkbox and are basically the same view. Try to make a method that will only count and update Textview, and call… 
- 
		3 votes2 answers10681 viewsA: Grabbing all the Values of a JSON ObjectFirst declare a uses System.JSON; Json would be: jsonString := {"jsonteste":[{"campo1":"valor1"}]} Then to read the json: jsonRaiz := TJSONObject.ParseJSONValue(jsonString) as TJSONObject;… 
- 
		10 votes3 answers1013 viewsA: Contains in Java, how to search a text in an Arraylist?I guess you’ll have to go through the list and make a loop to look for. for (String valor: strListas){ valor.contains('Pa') } javaanswered GabrielLocalhost 1,430
- 
		4 votes2 answers527 viewsA: Is there a difference between the visibility of a view.GONE or false?The estate Gone causes the view to be treated as if it did not exist while the Invisible he’s simply invisible, so yes there’s a difference. 
- 
		2 votes1 answer103 viewsA: Get the id of a Panel that is being created dynamicallyIn delhpi there is no question of id, but the name of the components serve with identifier. Then his Name will be the id, or you can create a variable within it with to be the id. 
- 
		0 votes3 answers587 viewsA: Androidstudio Onclicklistener() errorThe on click method needs to be implemented with Override: @Override public void onClick(View v) { onAcao(); } 
- 
		0 votes2 answers383 viewsA: How do I manipulate the order of the files in an Arraylist?Once I had to sort my list by date, and the sqlite did not treat as date, which I did: @Override public int compareTo(Call another) { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");… 
- 
		0 votes3 answers2181 viewsA: Group periods of datesselect Sum(campodata), compodata from tabela group by campodata; the sum will give you the sum and the group by will group; 
- 
		-1 votes2 answers74 viewsA: Mysql query generating error when using the OR clauseWould not be the lack of quotation marks? the type of the variables seems to me to be string and need quotation marks in the bank she would be: SELECT * FROM 'nometabela' WHERE form LIKE 'valorform'… 
- 
		1 votes2 answers2187 viewsA: How to capture a dbgrid Row click event?Look for the event onClick on the pick of Object Inspector. By clicking on the Grid it already arrow in the database record, then you can capture the id and take the test. procedure… delphianswered GabrielLocalhost 1,430
- 
		0 votes5 answers4473 viewsA: In the ORDER BY of a SELECT change a comma for a periodI don’t have your table scheme here but try to do so: order by cast (preco as real)asc 
- 
		10 votes4 answers8013 viewsA: Software to Create Class DiagramI usually use the Day, free and light 
- 
		1 votes2 answers539 viewsA: Return records Timestamp() fieldI do it in Firebird: select * from interessados where cast(int_data as date) = '01/09/2016' I cast in the field and work as a simple date sqlanswered GabrielLocalhost 1,430
- 
		1 votes2 answers4072 viewsA: How to create notifications?This is a simple example I use: /* @param id identificacao da notificacao * @param title titulo da notificacao * @param message mensagem a ser exibida * @param intent se quiser uma tela que ser… 
- 
		1 votes2 answers366 viewsA: Are product box bar codes suitable for primary keys?No even, primary key has to be unique ok, that’s right, but being information that the user can handle puts at risk your entire table. It’s also more optimized if it’s numerical, which I couldn’t do… 
- 
		2 votes2 answers458 viewsA: Search for next 7 days records in SQLChange that part: BETWEEN CURRENT_DATE()+7 AND CURRENT_DATE() That’s why: BETWEEN CURRENT_DATE AND CURRENT_DATE() + 7 would be from today to today more 7 days, I think Voce got confused in the order… sqlanswered GabrielLocalhost 1,430
- 
		1 votes1 answer549 viewsQ: How do I update a proprietary app?I have an app that should only be used by a number x employees, so it’s not on the playstore, but wanted to know how I can make available updates and install them. 
- 
		3 votes5 answers7434 viewsA: removing part of a string with phpuses the substr($string,$start,$length); $string = variable, $start = start of the variable where var cut the string in integer, $length= end of integer variable, let’s say the url pattern has 25… phpanswered GabrielLocalhost 1,430
- 
		0 votes1 answer77 viewsA: "top" with MAX in mysqlselect * from tb_funcionarios group by fu_estado ORDER By fu_salario DESC LIMIT 3. the trick is to use the ORDER BY DESC field by which it will require in descending order and you putting the LIMIT… 
- 
		0 votes2 answers387 viewsA: How to return strings that are in crescent date format in Sqlite?Sqlite does not sort the dates like other databases, mysql for example, I also had this problem in an application of mine, but I solved using "compareTo" in the class of my object. Maybe it’s not… 
- 
		1 votes2 answers2215 viewsA: Change Fragment by clicking on a button inside another FragmentI would put in the layout xml of Fragment in the button onClick event, so it is accessible to your main Activity. <ImageButton android:id="@+id/img_lg_logon" android:layout_width="match_parent"… 
- 
		0 votes1 answer121 viewsA: Encryption on AndroidI have this example of encryption I once used: String senha= ""; MessageDigest md = null; try { md = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); }… androidanswered GabrielLocalhost 1,430
- 
		3 votes1 answer372 viewsA: Sqlite MAX function - Grab the highest valueYou can use the rawQuery() method that returns a Cursor, in which case you only have a field take index 0; Cursor cursor = db.rawQuery("select MAX(date_start) from Nometabela", null);… 
- 
		0 votes4 answers542 viewsA: Loop function until the application closesprocedure TForm1.Timer1Timer(Sender: TObject); begin if Timer1.enabled = true then begin Gauge1.Progress := Gauge1.Progress +1; if Gauge1.Progress=10 then… 
- 
		3 votes3 answers1544 viewsA: How to go to the next field( an Edittext) without having to press Next on android?Try this, put in the after for being the action shoots after releasing the click, but you can do in other ways or put a test for certain letter. yourEditText.addTextChangedListener(new TextWatcher()… androidanswered GabrielLocalhost 1,430
- 
		0 votes4 answers542 viewsA: Loop function until the application closesDude, you can basically use Ttimmer, put it in his event: onTimer,. 
- 
		0 votes1 answer221 viewsA: Firebird - Parameterized viewI don’t quite understand what you want but I will treat it as a simple project of Delphi, but basically to create a component at runtime is simple. pnlTitle := TPanel.Create(frmPrincipal); // ou nil… firebirdanswered GabrielLocalhost 1,430
- 
		1 votes1 answer122 viewsQ: Problem using the JaybirdI am unable to connect in my bank using the jdbc of Firebird. the bank is very old and I can not discard it yet, I need to at least download the customer list and save on sqlite. the problem happens…