Posts by Grupo CDS Informática • 1,914 points
72 posts
-
1
votes2
answers355
viewsA: Advantage in giving null in a variable on Android
In a nutshell: no, it won’t solve. In all the experience time I have, the JVM (Dalvik/Art), and the Garbage android’s Ollector are totally independent and you do not control its execution. Changing…
-
1
votes1
answer1044
viewsA: How to bring only a certain part of a text in a field
Based on the comment’s response, it follows the code snippet. But he will always get the first occurrence of the term blzz ;) Test to see if it is OK. as I do not have a test bench need validation.…
-
0
votes1
answer119
viewsA: How to reference an object from one Activity to the other?
What you can do is, in this code snippet if(view.getId() == R.id.btA){ Intent TelaBoca = new Intent(TelaAprendizagem.this, TelaFala.class); //Trecho…
-
0
votes1
answer193
viewsA: Insert a Splashscreen or imageView into app crosswalk webview
First of all, you should only have Mainactivity. Its layout will be as follows:: <?xml version="1.0" encoding="utf-8"?> <FrameLayout…
-
2
votes1
answer1104
viewsA: How to receive all images from Firebase Storage and display in a listview
Unfortunately the Firebase API does not have a method to list all files from a reference. What you can do (and what I needed to do once) was, at each upload, I recorded the image download url in a…
-
2
votes2
answers151
viewsA: GPS still on after closing Activity
To stop the service I do in a different way than yours. I do with LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, context); onPause(), and onStop() I do…
-
0
votes1
answer80
viewsA: Google API Does not appear on my page
the element defined here as map-canvas map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); is not defined anywhere in your view. Also, it does not seem that the initialize…
-
0
votes1
answer67
viewsA: Item Selected in Spinner does not appear in Toast
First of all, remove the line below and use the direct arrayAdapter; ArrayAdapter<String> spinnerArrayAdapter = arrayAdapter; In place of cliente = spinnerCliente.getSelectedItem().toString();…
-
1
votes2
answers612
viewsA: Count the number of characters and insert a new one into a given position, into a string?
I have a function that I always use, which is to validate phone. I will put here what you need for it to work that I will try to give you a light. In case it’s all Static because it’s a Util class I…
androidanswered Grupo CDS Informática 1,914 -
4
votes2
answers790
viewsA: Perform Stress Test on C#
What I believe can help the question: I don’t know how your architecture was modeled, but the use of some of Jobs' libraries might solve it. Take a look at Hangfire, which has automatic Schedule in…
-
1
votes1
answer51
viewsA: Location reset in Android Maps API
In this section of your method public void onLocationChanged(Location location) { if (location == null) return; map.setMyLocationEnabled(true); lat = location.getLatitude(); lng =…
androidanswered Grupo CDS Informática 1,914 -
1
votes1
answer48
viewsA: Exchange of information with Fragments
Simple, see that in onClickListener you are passing a Bundle as Arguments for Ragment: fragment.setArguments(data); So in Fragment you have to read from the Arguments. Do in the onViewCreated method…
-
0
votes1
answer3991
viewsA: Recyclerview No Adapter Attached; Skipping layout
Recyclerview calls when they are made within a context that is not the UI thread can generate this error. In my case it happened when I set the layoutmanager and everything but left without Adapter…
-
0
votes1
answer62
viewsA: findViewById returns null
The problem is in the commented line of setContentView Changing your code to: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes1
answer293
viewsA: How to map the results of a previous store to an entity using Entity Framework?
You can map a Dbset to a storedprocedure in context public DbSet<Dados> Dados { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) {…
-
0
votes1
answer695
viewsA: How to get more accuracy in GPS using google Location on android
The method LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); always returns first the most current location that was registered on the device by Googleplayservices. If you want to…
-
1
votes1
answer1002
viewsA: Unable to start Activity Componentinfo{}: java.lang.Nullpointerexception
By the code snippet Cursor cursor = TelaCadastro.sqLiteHelper.getData("SELECT * FROM PLANTA"); that is in Plantalist, I imagine eh that sqLiteHelper is not initialized.…
-
0
votes2
answers3232
viewsA: Client-server connection via socket
You have to make every internet call outside the UI thread, even if it’s within a Runnable like you did, the thread still remains in the UI. I will place two blocks of code to illustrate a solution:…
-
0
votes2
answers182
viewsA: How to create a Layout bitmap keeping the dimensions equal regardless of the screen density?
I used this library to generate a PDF of a view. It has a method that generates a bitmap to be able to reuse, from a view without inflating it. I think it can help the problem: AbstractViewRenderer…
-
1
votes1
answer49
viewsA: How to display a result list in an Activity?
In this case you have to use one of the components of lists on Android. There is Listview, simpler but obsolete with the arrival of Recyclerview. These two components are used for repeat lists. I…
-
0
votes1
answer52
viewsA: One button animation (Imagebutton) android
Use the onTouchListener event, and by taking Motionevents inside that event you increase/decrease the size. @Override public boolean onTouch(View v, MotionEvent motionEvent) { int action =…
-
7
votes2
answers123
viewsA: Problem with If Logic with GPS on Android
So, guys, I read the argument and I think you’re having a misconception around here. Latitude/Longitude should not be compared with greater or lesser, as they are not numbers, but rather…
androidanswered Grupo CDS Informática 1,914