Posts by Grupo CDS Informática • 1,914 points
72 posts
-
3
votes2
answers1729
viewsA: White screen on app startup - Splash Screen
First, create a drawable with the following content, its name being background_splash: <?xml version="1.0" encoding="utf-8"?> <layer-list…
androidanswered Grupo CDS Informática 1,914 -
1
votes1
answer316
viewsA: Error handling in C#!
I’ll put the steps here, and a change in your controller: Check if this view is under the same name as your action? If you’re not, you need to be because if you’re not coming back. To return the…
-
1
votes3
answers1657
viewsA: Convert string to blob and save to bank
A blob actually for the database is a byte[], so as the information traffic was done in Base64, you just read this Base64 and convert to byte[] making the Decode of the same. First of all, add…
-
2
votes1
answer527
viewsA: How to capture camera image from your phone and send it to the server via Rest using Volley?
It follows code that I use in one of my legacy applications, but it solves your problem. You will put it together in onActivityResult: Bitmap img = (Bitmap)data.getExtras().get("data");…
-
0
votes1
answer53
viewsA: Realm . NET - Create object copy
With the help of Soen and the user @Sushihangover of the same, he wrote a library where it has an extension method called Nonmanagedcopy. This method makes the writing flat of the object and returns…
-
0
votes1
answer53
viewsQ: Realm . NET - Create object copy
Guys I’m having trouble using Realm, in . NET with Xamarin. I can usually add, update or delete objects from a Realm. But like the pro version . NET does not have a copyFromRealm, here comes my…
-
1
votes1
answer858
viewsA: How to print a webview to a bluetooth printer?
Printing in bluetooth on android is not a simple thing, nor so little easy to be done. I’ll leave here a path so you can achieve your goal: There is a library that makes communication with Bluetooh…
androidanswered Grupo CDS Informática 1,914 -
1
votes2
answers979
viewsA: How to get value from a database column using C#
Simply put, first you need to take all customer orders, and then delete. As there are more than one request, play it on a Sqldatareader and read the values: using (connection) { SqlCommand command =…
-
2
votes1
answer43
viewsA: How to get the Primary key of an item in an orderly recycleview
Implement the Adapter getItemId, returning the id of your object. Example: @Override public long getItemId(int position) { return alimentos.get(position).getId(); } However, this will only work if…
androidanswered Grupo CDS Informática 1,914 -
1
votes1
answer87
viewsA: Problems when creating application to consume postal services
Add your class a builder like this: public Encomenda() { } After you fill in the fields and call the other Activity, fill in the fields using get and set. Put this snippet on Else: else { Encomenda…
-
1
votes1
answer642
viewsA: Error compiling Ionic - Android
Your ANDROID_HOME folder is probably pointing to a folder that doesn’t exist. Check the folder path if it is set, or if it does not create the variable and point to the SDK folder.
-
0
votes1
answer66
viewsA: Realm - Search for content with accentuation
I use a function of mine that removes the accents of a string. Maybe if you apply this function in the searched term, and then play this term for the Real solves the situation: public static String…
-
1
votes1
answer1765
viewsA: Save android image
I will leave here a list of points, which will answer your question. Implementations exist examples in libraries. They’re all libraries I used in a project, that the only thing different from yours…
-
1
votes1
answer54
viewsA: Android/Firebase - Nullpointerexception when setting Query object
If you want to take all the Child from the "Ywxsyw5abmvyb3muy29tlmjy" reference, point your own reference to this Key, and then add a Systener Event directly to the Ference…
-
1
votes1
answer54
viewsA: How to prevent a Checkbox from receiving click events?
It is possible to solve this by putting android:focusable="false" android:focusableInTouchMode="false" in the checkbox that will only be informative by XML. If you ever need the checkbox to have a…
-
2
votes2
answers1458
viewsA: How to hide the keyboard when the user presses a button?
Inside the button click, in onClickListener, put this code: InputMethodManager imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE); if(imm.isActive())…
-
0
votes1
answer29
viewsA: Open a website through a button in the app
First, I recommend inflating the context menus instead of creating manually. But do it this way below: Menu XML (menu_site.xml) <?xml version="1.0" encoding="utf-8"?> <menu…
-
1
votes1
answer521
viewsA: How do you make two apps use the same database in firebase?
Yes, it is possible. As @Matheus said in the comment above, a Firebase project may have "n" applications linked to it, and the database is linked to the project, not the application. But even if the…
-
1
votes1
answer285
viewsA: notifyDataSetChanged() does not work
notifyDataSetChanged() only notifies Listview/Recyclerview that it has new elements, and does not scroll automatically. After using notify, use the code below to scroll to the last element in the…
-
0
votes2
answers384
viewsA: Run callback on close android keyboard
On pure Android, there is no Switch indicating the keyboard closing event. What many do is implement a Viewtreeobserver.Ongloballayoutlistener. Here has a post from Soen explaining. In Cordova, I…
-
3
votes1
answer595
viewsA: My notifications are not coming and I think my code may be correct
NOTE: STEP BY STEP FOR CONFIGURATION IN XAMARIN FORMS, THINKING ABOUT ANDROID SETTINGS. FOR IOS, I CAN DO A STEP BY STEP LATER. Come on, I’ll shape the answer to the topic. The whole process is…
-
3
votes1
answer199
viewsA: System.Indexoutofrangeexception Sqldatareader
First point, as it is a Datareader, you have to iterate on it to be able to read some value, even if the query returns only one line. Change your code to the following: public Usuario…
c#answered Grupo CDS Informática 1,914 -
0
votes1
answer79
viewsA: Align footer of a div, with footer of another div
I did as follows, half-manual but solved the problem. Who can complement the answer with a way to do via CSS thank you. $('#box-left'). height($('#box-right').height());
-
1
votes1
answer430
viewsA: Object list for another Activity
As you are doing, Arrayadapter by default writes the representation of the object returned by the toString method(). Since the toString() method was not overrided, it will write the package name.…
-
0
votes1
answer79
viewsQ: Align footer of a div, with footer of another div
Good guys, I am doing a web project using bootstrap. I would like to know the following: I have a div, where the amount of elements within it (inputs) is less than a second div, on its side (both…
-
0
votes2
answers92
viewsA: In firebase, how do you read the value of the users' "Created in" metadata?
You can use the Firebase Admin SDK to get the date. But it is not possible to use it on android. I believe that for new users you do with Metadata, and create a simple java program using the SDK and…
-
0
votes1
answer496
viewsA: How to pass data from one Fragment to another (upadte Sqlite)?
On the line codigo = getActivity().getIntent().getStringExtra("codigo"); change to codigo = getArguments().getString("codigo");
-
4
votes1
answer83
viewsA: How to compare data from different activities?
In this case you have 4 options in my view: 1 - You will have to traffic the information of a view to another through intents and in that you read the value with getExtras() of Intent in the other…
-
0
votes1
answer79
viewsA: Align view on top of a Linearlayout
The problem is on the line of your Notificationiconview android:layout_alignLeft="@+id/notificationItemLayout" you are asking to align the left of your view with the linear one. I believe you have…
androidanswered Grupo CDS Informática 1,914 -
1
votes3
answers679
viewsA: How to validate a spinner?
It’s kind of manly, but it’s a solution that works well for me. Add a blank item in the spinner, with a default text, example, "Select an option". Then treat the setOnItemSelectedListener event from…
androidanswered Grupo CDS Informática 1,914 -
0
votes2
answers935
viewsA: Android Studio - Firebase - Search & edit data
You will have to use a query in Firebase, to be able to filter. Try to do it this way: DatabaseReference ref = FirebaseDatabase.getInstance().getReference("clientes"); Query clienteCnpj =…
-
0
votes1
answer477
viewsA: Google Sigin problem when re-logging into Firebase
For some reason, it is caching the solution. What you can do is, when it is wrong, force the signout this way (put below Toast): Auth.GoogleSignInApi.signOut(mGoogleApiClient); I believe that when…
-
2
votes2
answers100
viewsA: My App does not load list of items
As the reply of the comment follows possible solution: On android check the following: You must have internet permission in the manifest; Every internet call has to be made in an Asynctask or any…
-
3
votes2
answers242
viewsA: Httpget parameter not detected
On the call public HttpResponseMessage BuscarUsuarioPorId() there is no parameter. The api will not recognize, because probably your Routeconfig is saying id is optional. Put this way public…
-
3
votes1
answer462
viewsA: SQL SERVER 2008 R2 - TEMPDB ERROR
In this case you have three things to do: Check the disk space where tempdb is. Since checkdb uses it to store the verification data temporarily, it probably has no more room to grow. Also check…
-
1
votes1
answer482
viewsA: Convert float, double or single value to Datetime
According to this gist, the date in Clarion considers the number of days that have passed since 28/12/1800. Then following logic, will give the date as follows: new DateTime(1800, 12,…
-
2
votes3
answers8582
viewsA: What are Parallel.For and Parallel.Foreach loops?
Responding: What are the loops. Similar to loops for and for each, but optimized for parallel data programming. When should we use them. It is difficult to define an ideal scenario, but always when…
-
1
votes3
answers590
viewsA: Combobox in Databases
A simple way, and I use this in the software I did was the following (I will use as an example a list of Brazilian states, but it may be the data returned from the database): I read the values from…
-
2
votes1
answer346
viewsA: Array of Boolean for Integer
Making another one for, try this way: int n = 0, l = bits.length; for (int i = 0; i < l; ++i) { n = (n << 1) + (bits[i] ? 1 : 0); }
-
1
votes1
answer119
viewsA: Some kind of alert with Firebase
It will depend a lot on how you thought your architecture, but if it’s a situation where ADM is always with the app/page open, keep a Childeventlistener attached to your database reference, and at…
-
0
votes1
answer306
viewsA: Automatic synchronization Firebase
I will try to be as brief as possible, and I will respond based on firebase, and also with the premise of a local database. In a nutshell, it is perfectly possible to do this only for sales in the…
-
0
votes2
answers672
viewsA: How to create folders within the program’s own subfolder?
The best way to ensure this is by taking the directory of the executable and then joining the folders, as follows: string dirPrograma = Path.GetDirectoryName(Application.ExecutablePath);…
c#answered Grupo CDS Informática 1,914 -
3
votes1
answer1343
viewsA: Fullscreen Video on Android Webview
Well, here’s an example of the functional deeplink. I created an HTML page to load in the app with the link (), calling the app. The example video I took in…
-
2
votes3
answers86
viewsA: Why do you print the variable type instead of the result?
From what I’ve seen, you’re wearing Where, which always comes back a collection of objects. As you are returning only one object, do it this way that is best: public void TesteLambda() {…
-
1
votes2
answers179
viewsA: Tool to generate poco
The visual studio itself generates, but you have to work with the Database First model. Add an ADO.NET Entity Data Model, and in the next Wizard window, select Code First from Database.…
-
3
votes2
answers46
viewsA: Doubt with relationships N to N or 1 to N
Using your code above, and understanding that you are using Entity Framework Code First. Only fix your code, also understanding that you want to keep a record of all user logins, if it enters the…
c#answered Grupo CDS Informática 1,914 -
0
votes1
answer709
viewsA: How to add an image stored in firebase Torage to imageView inside an infowindow of a Marketer?
You cannot pass the imageReference directly to the Glide as in the excerpt StorageReference imageRef = storageRef.child(marker.getTag().toString()+".jpg"); Glide.with(MapaFocosActivity.this)…
-
1
votes1
answer84
viewsA: Firebase user authentication
You have to use this together with the Firebase Database. Auth data cannot insert custom keys. Create a call to the database, and when logging in the user, add the extra information inside a…
firebaseanswered Grupo CDS Informática 1,914 -
1
votes1
answer59
viewsA: How to get an authenticated user to see another user’s posts tbm authenticated?
Do so: DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child("postagens") and then in addListenerForSingleValueEvent, you will have to convert within a loop taking all…
-
2
votes1
answer2684
viewsA: Decrease a Base64
Technically on the line thumbnail.compress(Bitmap.CompressFormat.JPEG, 100, bytes); you are not treating anything in the image, only changing the format of it. What you have to do is, before you do…