Posts by Thiago • 322 points
22 posts
-
2
votes1
answer582
viewsA: Working with 2 spinner on Android
From what I understand you want the first spinner to be dynamic with the second, : spinnerEspec.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void…
-
2
votes2
answers1483
viewsQ: Compress image size
How to compress the size of an image so that it is smaller ? public void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ByteArrayOutputStream bytes =…
-
0
votes1
answer29
viewsQ: Login authentication
I would like my password to compare the email also if it does not exist, but it only does the comparison of the password , how to compare the two together ? if (mEmail.equals(email)) { if…
-
2
votes1
answer138
viewsQ: Sum in Textview
I have a Json that returns the values of positive and negative, and that sets the text in mine TextView. This is the calculation I try to do, but it returns a invalid double: public double…
-
1
votes1
answer2684
viewsQ: Decrease a Base64
How to decrease a size of a Base64 without decreasing the quality so much? I’m trying a problem in this code,because it’s too big and it’s not saving in the bank. How to decrease ? Bitmap thumbnail…
-
1
votes1
answer49
viewsQ: Settext returning to null
When I open my activity the first time, all settexts are null, the second time it works normally, what’s wrong? Activity of the settext .. autor = (TextView) findViewById(R.id.tv1); editora =…
-
0
votes0
answers114
viewsQ: Put update object
What’s wrong with my put? It was supposed to update objects in my database,but it doesn’t work correctly,it doesn’t return any errors,. public String doInBackground(String... arg0) { String result =…
-
0
votes1
answer41
viewsQ: Error in Gradle - design
This is my Gradle : apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '26.0.0' defaultConfig { applicationId "com.example.thiago.myapplication" minSdkVersion…
-
0
votes1
answer78
viewsQ: Gradle error - Startup failed
What’s wrong with my Gradle? apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '25.0.1' defaultConfig { applicationId "com.example.thiago.myapplication"…
-
0
votes2
answers161
viewsQ: How to create an ID to be used in other classes
My app will get to the first screen of the user ID, how do I use it in other activities unseen intent ?
-
1
votes1
answer44
viewsQ: PUT or database update
How to update objects in my database via put json? This is my post code as an example, public class onbuttonclickHttpPost extends AsyncTask<String, Void, String> { protected void…
-
2
votes1
answer363
viewsQ: How to do date validation?
How to validate the date as the date of birth? Can not put the date in the future. data.addTextChangedListener(DateUtils.insert("##/##/####", data)); mData = data.getText().toString();…
-
0
votes0
answers46
viewsQ: Multiple Spinners in one
I have a Spinner A ,I would like if I clicked on an option of A,open an option on B,If I clicked on the second item of A ,open a difference in b,multiples inputtext on a single spinner catliv =…
-
0
votes1
answer85
viewsQ: Imageview of another Activity
How to use the imageview other’s activity? @Override public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { if (groupPosition == 0) switch…
-
1
votes1
answer1531
viewsQ: Email validation
How do I make this edittext only valid for an email? It contains, for example, [email protected] that contains at least the "@"? @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes0
answers30
viewsQ: Registration screen
I have a log screen, which compares the edittext text with the database field, and this comparison is working normally. What I would like to do, is that if there was already the field of email in…
-
0
votes1
answer15
viewsQ: listDataHeader for a String
I wonder if it is possible to return my listDataHeader to a string, because in my system.out it returns the value , but I don’t know how to pass to a string... private void prepareListData() { // //…
-
1
votes0
answers21
viewsQ: Camera Intent returning error
Old phone : Samsung S4 ANDROID - 4.2.2 -- New phone : MOTO G4 - 6.0.1 My application was working until yesterday, I switched to a new phone today ,I do not know if you have something to see ,is…
-
1
votes0
answers660
views -
3
votes1
answer530
viewsQ: Image capture for Base64
Man app take an image from the gallery or take a photo, how to grab this image and convert to Base64? private void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap)…
-
1
votes0
answers119
viewsQ: PUT method via JSON
I have a user "update" screen that would update data in my database .. How to do this update in my bank in Android Studio ? My code is like this : @Override protected void onCreate(Bundle…
-
0
votes0
answers15
viewsQ: Android - getTimeZone returning date
My command returns in System only the hours, but when it is posted in the database displays the time and date. I’d like you to return only the hours, which is wrong? Calendar cal =…