Posts by Brenddon Anjos • 436 points
24 posts
- 
		0 votes1 answer23 viewsA: Laravel - Use JOIN + COUNTFind the file config/database.php look for the field 'strict' and set it to false. 'mysql' => [ 'strict' => false ] 
- 
		0 votes1 answer32 viewsA: Limit a table to the print page limitFirst question, are you using the eloquent for the consultation? If yes you can limit the number of items in various ways, I advise using limit() or paginate(). The limit limits the amount of… 
- 
		2 votes2 answers351 viewsA: Laravel Token Validation (Passport)There is no way and even if it is not possible to validate the token in the frontend, if you want to validate one token, or receive another after it expires, it is necessary to send a request to the… 
- 
		2 votes1 answer118 viewsA: Keep a Changed Textview even after closing the appYou can do this in various ways, the most viable is to create a Sqlite database, or save it in a Sharedpreferences type variable, which is widely used for session. As the Sqlite method is more… androidanswered Brenddon Anjos 436
- 
		1 votes1 answer89 viewsA: Autofocus in Edittext does not workYou can put in the edittext the field that will receive the next focus, thus: android:nextFocusDown="@id/seuEdittext" If your focus is set to the top, do so: android:nextFocusUP="@id/seuEdittext"… 
- 
		1 votes0 answers83 viewsQ: Keep your focus on edittext after pressing EnterI have a barcode reader that does the action of putting the text in edittext and pressing enter automatically, I implemented the function while reading but I would like the focus on edittext to… 
- 
		0 votes1 answer267 viewsA: How to take position of the item from an Autocompletetextview (Android)From what I understand, the best solution is to go through the array and find the position of the selected item, like this: spinner_produtos.setOnItemClickListener(new… 
- 
		0 votes1 answer115 viewsA: How to Create a Browsing History For Android Browser? -Android StudioThe ideal would be to create a Sqlite database with a table for the history and save the data, such as the url, access date etc and such. This way you can display it later and the person can access… 
- 
		2 votes1 answer199 viewsA: I can’t adjust the image size to the layoutNow I understand the problem. You have two options, this: <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"… 
- 
		1 votes2 answers2017 viewsA: Text View Null: void android.widget.Textview.setText(java.lang.Charsequence)' on a null Object ReferenceBro you did not say if Textview is in Activity or in the Textview view, anyway the error is in the edittext statement, when you declare so: txtResultado= findViewById(R.id.txt_result); it… 
- 
		1 votes1 answer2046 viewsA: Access the camera of the mobile phone in a Webview in Android StudioTry assigning permissions to the class as well, and load your HTML with Loadurl: WebView wView = (WebView) findViewById(R.id.seuWebView); wView.getSettings().setJavaScriptEnabled(true);… 
- 
		0 votes1 answer53 viewsA: Check if current time is within the radius set in the databaseThe sqlite supports the team in queries, but it searches data in hours, minutes and seconds (HH:mm:ss) so if you pass this format (HH:mm) will give error. First convert your date to the valid format… 
- 
		1 votes2 answers536 viewsA: Running threads on androidThe best way to implement this is by using Asynctask, it looks like this: class Tarefa extends AsyncTask<String, String, String> { ProgressDialog dialog = new ProgressDialog(this); @Override… 
- 
		1 votes3 answers218 viewsA: Textview when clicking , increase certain value that is in Edit textteste = findViewById(R.id.add10); teste2 = findViewById(R.id.editText); teste.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { int… androidanswered Brenddon Anjos 436
- 
		0 votes1 answer310 viewsQ: How to call a Method in View using a Class that extends from FragmentI have several buttons in a view that call the addNumero method in Onclick, something like this: <Button android:layout_width="match_parent" android:layout_height="match_parent"… 
- 
		1 votes1 answer944 viewsA: Pick up product prices in an array, add them up and present the total sum in a TextviewBro you’re using a String Arraylist (List), and concatenating values, so you won’t be able to redeem the tap values. Then the first thing to do is create a class of objects with the elements you… 
- 
		1 votes1 answer444 viewsQ: Logout when closing appGuys, I have an app that runs login, for this I use sharedPreferences(), I have a quit button that causes the user to depress the system, which works this way: SharedPreferences pref =… androidasked Brenddon Anjos 436
- 
		2 votes1 answer29 viewsA: animate removeAllViews when recreating viewInside the res folder is a directory with the name "anim", if you don’t have it, you create this folder, and create an Animation Resource file, or use one that you have there. Example of Animation… androidanswered Brenddon Anjos 436
- 
		1 votes1 answer52 viewsA: Sqlite Database is not entering valuesIf you replace long rowid = db.insert(DBHelper.TBL_RESTAURANTE, null, dados); for long rowid = db.insertOrThrow(DBHelper.TBL_RESTAURANTE, null, dados);, it will work, if something goes wrong it will… 
- 
		2 votes3 answers1372 viewsA: Transforming String into an Array - JavascriptTry to improve your return and give Split in some character specify, more or less like this: var array = sua_string.split(","); var v1 = array[0]; var v2= array[1];… 
- 
		1 votes3 answers2290 viewsA: Use database data in a select option (HTML/PHP)Simple, do it and be happy: <?php $sql = mysqli_query($conexao, "select nome_fantasia from fornecedores");?> <select><?php while($resultado = mysqli_fetch_array($sql)){ ?>… 
- 
		0 votes2 answers1254 viewsA: require_once does not workMano is a fact that has error, only has to require_once produces an error treatment that terminates the script, uses include_once in place that it will display you the error and you see what is… 
- 
		0 votes1 answer319 viewsA: UTF-8 Does not work on all pagesI’m not sure if this is going to work but I believe so, so try this: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
- 
		2 votes4 answers3003 viewsA: Allow uppercase letters only in EdittextIf you put android:inputType="textCapCharacters" in XML it will prioritize the uppercase letter, but the user will be able to change depending on the device, so I suggest that you contort when you…