Posts by Stênio Barroso de Moraes • 312 points
27 posts
-
0
votes1
answer80
viewsA: Run function in android app when a button on a web page is pressed
When you want to integrate web and app. Use an api. To build api in php has Laravel, slim framework and has many other framework you can use.
-
0
votes1
answer49
viewsA: Pause animation with setTimeOut
I think you better use: let interval = setInterval(() => { clearInterval(interval); }, 1000); clearInterval for the setInterval.
-
2
votes4
answers29846
viewsA: Request with Axios and React blocked by CORS policy
I had the same problem with a third-party API. It took me a long time to think more is simple. You can only access the api in the Back-end. If you go to the front end it is an error. In your…
-
-1
votes1
answer79
viewsA: How to inflate a custom view within a recyclerview view?
Take a look at this link I think will help. https://medium.com/@harivigneshjayapalan/android-recyclerview-implementing-single-item-click-and-long-press-part-ii-b43ef8cb6ad8…
-
-1
votes2
answers989
viewsA: HTTP request works via POSTMAN but does NOT work via android app
Here I am using HttpURLConnection, passing my fields to: String campos = URLEncoder.encode("campo1", "UTF-8") + "=" + URLEncoder.encode(valor_campo1, "UTF-8"); bufferedWriter.write(campos); That way…
-
2
votes4
answers140
viewsQ: "Enum" should be used to indicate business rule options?
Let me give you an example that is better: in the supermarket there are several categories of products such as vegetables, canned vegetables and others. To register more enumDo I have to change the…
-
2
votes2
answers201
viewsQ: Associative class with double dependency
I was searching the internet and saw this way of making association between Java classes. Is it correct to make this type of association? 'Cause I did a lot of research on the Internet and I…
-
0
votes1
answer31
viewsQ: Change report in Database
We have several tables that some users will have permissions for changes. I need to have a table of changes made by the user. Let me give you an example. Let’s assume a products table, this product…
-
-1
votes1
answer36
viewsQ: Transform String into Jsonarray Error
I have this string to turn into JSONArray. strbuffer takes the string. String strbuffer = stringBuffer.toString(); JSONArray jsonArray = new JSONArray(strbuffer); You’re making that mistake:…
-
0
votes1
answer21
viewsA: How do I pass data between apps on the same network?
Look I’m creating an app and I work on the local network with xampp I think it could be a solution. And I would use Httpurlconnection for the connection between apps. But that’s just an idea. There…
pythonanswered Stênio Barroso de Moraes 312 -
1
votes2
answers1216
viewsA: How to call Activity/Fragment when clicking the button? Android Studio
I think it’s simpler that way. public void abrirActivity(View v){ Intent intent = new Intent(this,MinhaActivityQuevaiAbrir.class); startActivity(intent); } Remember that in the attribute of your…
-
0
votes1
answer51
viewsA: Uncommon error progressbar
People already told me once it’s not working starting from scratch. I simply created another Copy and paste the code and it worked. My Victoria was buggered for some reason. I do not know what was…
-
0
votes1
answer51
viewsQ: Uncommon error progressbar
I’m not understanding the error, I want to do a simple thing with Progressbar but it does not give 'void android.widget.Progressbar.setVisibility(int)' on a null Object Reference. I know this error…
-
1
votes2
answers936
viewsA: Open map at current user position
I’m taking the position this way. private LocationManager locationManager; private Location location; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListenerGPS);…
-
1
votes1
answer42
viewsQ: Using variables within the onPostExecute method
I am using Asynctask in my project and ended up generating a doubt in the passage of variables, in the method doInBackground i return a cursor variable that is passed by Return. I wanted to know…
androidasked Stênio Barroso de Moraes 312 -
0
votes0
answers32
viewsQ: Data repeats instead of null
People do not know if this is normal in sql but I will post here to clear my doubt. I have a query with three tables using INNER JOIN, apparently the result is favorable, but a small detail bothers…
mysqlasked Stênio Barroso de Moraes 312 -
0
votes1
answer2450
viewsQ: INNER JOIN sql query with WHERE and GROUP BY
I have this query in my database only that I wanted to insert a sum in a.preco_produto and do to GROUP BY only if I put GROUP BY a.codigo_loja in this query of this error> #1064 - You have an…
-
1
votes1
answer63
viewsQ: How to return the focus on an Edittext after a notifyDataSetChanged() in recyclerview?
The problem is with notifyDataSetChanged() when I update recyclerview Edittext loses focus wanted it not to lose focus, already tried with requestfocos does not give.
-
0
votes1
answer70
viewsA: Losing Edittext Focus by double clicking recyclerview
People who are having problems focusing on recyclerview the problem may be in the adapter notification. Every time you notify the adapter it loses focus. In my case I was with EditText, when I…
androidanswered Stênio Barroso de Moraes 312 -
0
votes1
answer70
viewsQ: Losing Edittext Focus by double clicking recyclerview
I am with a recyclerview with two Edittext everything works very well, the problem is when I double click off Edittext it loses focus and appears the alphanumeric keyboard being that Edittext is…
androidasked Stênio Barroso de Moraes 312 -
4
votes1
answer79
viewsQ: Basic HTTP authentication
I have a question about basic authentication. The problem is that I have a webservice with slim framework and would like only my application to access the routes I created without user or password.…
androidasked Stênio Barroso de Moraes 312 -
1
votes1
answer1932
viewsQ: Edittext customization on Android
I saw that there are several ways to customize a EditText, one of them is in background and the other is XML. What would be the best option? Does it have disadvantage in using background or gives in…
androidasked Stênio Barroso de Moraes 312 -
2
votes1
answer182
viewsQ: How to pass a class with Bigdecimal and Date attribute through intents(Bundle)?
I have a ArrayList<MinhaClasse> with Bigdecimal attribute and I am going through Intent from one activity to another. The problem is that the Bigdecimal attribute passes with null value. Can’t…
-
0
votes1
answer30
viewsQ: Doubt with Intents
I use Intentservice to get the data from my Bank on the Internet. and I am passing the data of the intentservice class to Activity with use of Intent. My doubt is how much data I can pass via…
androidasked Stênio Barroso de Moraes 312 -
0
votes0
answers38
viewsQ: Back button and android keyboard
I’m actually in two trouble: The Backpressed it removes the keyboard and Buga a command line, I don’t know why. He pretty much ignores the adappLista.notifyDataSetChanged() and does not modify my…
androidasked Stênio Barroso de Moraes 312 -
0
votes1
answer40
viewsA: Insert Sqlite into Intentservice background task
People the problem is that when you make a registration with registerReceiver should also do the unregisterReceiver. If your record is in oncreate you must close the record in onDestroy.
-
0
votes1
answer40
viewsQ: Insert Sqlite into Intentservice background task
I have a problem with Intentservice, I have an Activity with three spinner they receive the State, City and Neighborhood of a Webservice where the Intentservice performs this task and within…