Posts by Henrique • 1,013 points
103 posts
-
1
votes1
answer533
viewsA: Error after updating android studio
I solved the issue by adding this to the dependencies of the Gradle app: classpath 'com.android.tools.build:gradle:2.2.0' classpath 'com.google.gms:google-services:3.0.0' Clean Project -> Rebuild…
-
0
votes1
answer533
viewsQ: Error after updating android studio
Error:Could not find com.google.android.gms:play-services-cast:9.6.1. Required by: android:app:unspecified Search in build.Gradle files How to fix this error? Gradle already has this play-services.…
-
1
votes1
answer48
viewsQ: Error after performing Migrations (backend .Net)
My backend is built in . NET, and when including a certain table in the solution, I appeared the following error: Cannot create more than one clustered index on table 'dbo. Favorit'. Drop the…
-
1
votes2
answers483
viewsA: Dynamically change the layout of Buttons
Could only be resolved as follows: else { RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);…
-
3
votes2
answers483
viewsQ: Dynamically change the layout of Buttons
I have two Buttons on the screen, these are visible or not visible depending on the situation. There is a third situation, which should leave both visible, but does not fit on the screen. So I’d…
-
2
votes1
answer53
viewsQ: Connect by clicking a button
I would like to know how to make that when clicking on a button, a Telephonic call to the number. As I did, he calls Activity Action_diall with the number already written, so the person must click…
-
1
votes1
answer1010
viewsQ: Layout does not occupy full screen
I’m putting together a layout and the layout isn’t occupying the entire screen. I’ve tried it in many ways, but it’s never possible that it will, so it’s not fitting everything I need. Problem…
-
2
votes1
answer521
viewsA: How to add only a few Activity navigation Drawer
If you work with activities and want the Drawer in some, you should put the codes, the XML and Java: Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar);…
-
0
votes3
answers785
viewsA: Create Textview’s dynamically
Exactly as I resolved, according to the responses in the post: private void populateInterests() { RequestManager.UsersInterests(selectedUser.id, new FutureCallback<String>() { @Override public…
-
4
votes3
answers785
viewsQ: Create Textview’s dynamically
I have a TextView and would like that instead of filling with a Arraylist, with all items in your setText, that it be created several times on the screen, with the respective items of this array, in…
-
1
votes2
answers1070
viewsQ: How to fill Textview setText from an Arraylist?
I get a array with items of interest and I must set them on setText of a particular TextView. I want all the items in this array to appear on the screen, horizontally. In my layout xml, I only put 1…
-
1
votes1
answer78
viewsQ: Select items with Longclick, imagebutton
I have the items of a list, which when clicking on the imagebutton, a message is sent to the user. I would like to implement longclick so that I can select multiple and send messages to multiple…
-
0
votes1
answer56
viewsA: Update in a table row
public void upddateDataBase(int id, boolean b) { SQLiteDatabase db = this.getReadableDatabase(); ContentValues values = new ContentValues(); String where = "where id =?"; String[] whereArgs = new…
-
1
votes2
answers1290
viewsA: Error: android.database.sqlite.Sqliteexception: no such column:
I resolved the issue by changing the constant private Static final int DATABASE_VERSION, implementing the method: @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {…
-
2
votes2
answers1290
viewsQ: Error: android.database.sqlite.Sqliteexception: no such column:
I added a column in the Users table, invited is an integer. I need to make a select in the table filtering this field, and I get the following error: android.database.sqlite.Sqliteexception: no such…
-
0
votes1
answer56
viewsQ: Update in a table row
I’m starting to use the Sqlite on a project and would like a help on how to do the update in a specific line, in this case, only one "ID" will be updated at a time. Follows the codes: View and where…
-
1
votes1
answer5521
viewsQ: Click on listview item
I have the following code, which shows the items in a list, on the screen: Activity: public class InviteActivity extends ListActivity implements InviteView { @Override protected void onCreate(Bundle…
-
1
votes2
answers620
viewsQ: onClick in edittext that cannot be editable
How to make an event click on an edittext, enabled="false" ? (I couldn’t do it without the focus being on edittext, enabled="true") Or, an event click on an edittext that cannot be editable. Code…
-
-1
votes1
answer249
viewsQ: Remote changes in branch not coming to location
I have a simple branchs structure in the repository (bitbucket), the master, where the production code is located and another branch releases, this for testing. Changes were made to the branch…
-
3
votes3
answers318
views -
3
votes1
answer732
viewsQ: Selecting a Radiobutton from a Radiogroup, according to one condition
I have a radiogroup and according to one condition should be selected one or the other. How to make it go up to the screen as described below? Code: private RadioGroup mSwitchButtonGroup; private…
-
1
votes1
answer84
viewsA: How to know if it is a Fragment that is on the screen, in interface test?
After much reading saw that the correct answer is that the espresso is developed for tests in isolated set, ie, should be mounted a test for when the Fragment is visible.
-
1
votes1
answer84
viewsQ: How to know if it is a Fragment that is on the screen, in interface test?
I would like to know, in automated interface tests, how to know if a Fragment is on the screen or not. If it is a Fragment, example, ratingfragment, I will "perform" a "click". If it’s another one,…
-
-1
votes2
answers54
viewsA: How to test an event on the keyboard (Editorinfo.IME_ACTION_DONE)
To solve the DONE of the keyboard for Unit/Interface tests, do the following: In the code there is the editActionListener with the desired keyboard action. Then include in the test:…
-
0
votes2
answers54
viewsQ: How to test an event on the keyboard (Editorinfo.IME_ACTION_DONE)
I am performing automatic tests and would like to know how to catch the and evendo IME_ACTION_DONE keyboard. Follows the code: @Test public void shouldSearchUserOnMap(){ SystemClock.sleep(2500);…
-
6
votes1
answer354
viewsQ: How to make a Floatingactionbutton square or rectangular?
I have 2 Floating Action Buttons on screen. How can I make them rectangular?
-
0
votes1
answer95
viewsQ: Error implementing Facebook login button
I’m trying to implement a custom Facebook login button. But the following mistake happens: C: mala_App mala_App mala_App app src main res layout activity_new_login.xml Error:(117) No Resource…
-
1
votes1
answer89
viewsQ: Increment of version number
I would like your opinion and help on version 1.0.0.1 (example). How can I make this increment automatically? Or more, as is usually or good practice, increase this number before and after the…
-
1
votes2
answers92
viewsA: "Refresh" from Fragment co listview
I decided to go through a method that checks whether it is the same Ragment and whether or not it should be removed and inflated again. So it loads the new data.
-
1
votes2
answers92
viewsQ: "Refresh" from Fragment co listview
I have a Fragment that, clicked on a RadioButton, a route is calculated, after this route calculation, a ListView with the results. By clicking on the other option of this radiobuttom, the routes…
-
0
votes1
answer268
viewsQ: Close two activities
I have two activities that are called in the following sequence: The first one is inserted a text and once clicked on a button, it leads to a second Activity. This second Activity, when clicking on…
-
0
votes2
answers220
viewsQ: Choose which Fragment will be shown in Activity
I have a Activity that the email is requested and if the email exists I show a Activity with a Fragment for entering the password. If this email n exists, I want to display a Fragment, in this same…
-
0
votes1
answer74
viewsA: Error when configuring test environment
It was only possible to resolve by returning a different commit and branch than these changes.
-
1
votes1
answer74
viewsQ: Error when configuring test environment
When running a test, simple to check the settings, the following error appears: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebugAndroidTest'.…
-
0
votes1
answer64
viewsQ: Check if it is the correct Fragment after the click (UI Test)
I would like a tip on how to check if it is the correct Fragment after the click Follow the thought (Wrong) for example, someone has an example of how I can test this? @RunWith(AndroidJUnit4.class)…
-
0
votes1
answer133
viewsQ: Error: Runtimeexception when trying to mount test case
I’m trying to set up a simple test using espresso and the following errors appear: Code: import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import…
-
0
votes1
answer416
viewsQ: Save the instance of a Fragment
To MainActivity calls Fragment upon being started. I have tabs that alternate through Fragments. I trace a route in one of the Fragments and when leaving, clicking on the tab and when returning, the…
-
3
votes1
answer504
viewsA: Bring external domain (Registration br) to Azure
Resolved as follows: In Registro br, create a DNS of the br registry itself in editing zone, with the IP that is in Azure, register it, being type A. Once this is done, you should wait until it…
-
0
votes1
answer504
viewsQ: Bring external domain (Registration br) to Azure
I’m new to this, so go: The following is, I have a domain already acquired in the br registry, example.com.br (is an example). I did the entire git sync process on Azure. I would like from this…
-
0
votes1
answer248
viewsQ: Enter contact data from the app
I would like to know if it is possible to insert some data in the phone contact, for example e-mail. Exemplifying: When selecting a contact, from the application, when returning to Activity, is…
-
1
votes1
answer1381
viewsQ: Error while trying to generate a signed APK
Error while trying to generate a signed APK. I have already managed the Keystore, passwords, alias, etc. Error:(32) Error: The element must be a direct Child of the root element…
-
0
votes1
answer234
viewsQ: Error trying to fetch location
I have a project that when accessing Activity, it already searches the place and fills the data, to save them, later. But when it is the first access, when searching for permissions, he always…
-
0
votes1
answer224
viewsQ: Change the color of the application footer
I would like to change the color, the footer of the application, where is the button "back" android. Image below: XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
0
votes1
answer73
viewsQ: Insert API KEY from aws (Amazon)
I would like to know where I insert the Amazon KEY API into my android project. I will use a database installed on Amazon to record and retrieve my data. Follow my Radle: dependencies { compile…
-
0
votes1
answer71
viewsA: Error trying to save result to database
The problem was within another method, which would alter the record. It was with a wrong logic so it would always fall into this method, which was blank, the code (ID).
-
1
votes1
answer71
viewsQ: Error trying to save result to database
I would like to record the contact name and contact number in the bank. So I can use it in other activities. But, when returning, from the contact screen to the Activity in question, an error…
-
1
votes2
answers352
viewsQ: Display given in textView
I have a database in an application of android, would like the name field in the table, fill the text of TextView. I saw some examples but I couldn’t implement, the…
-
0
votes3
answers2658
viewsQ: Knowing that a button has been clicked
I would like to know that a certain Button has been clicked, so that it does not pass the null validation. Follows code: //OnClick da tela de registro btnRegistrar =…
-
2
votes1
answer3874
viewsQ: Change the edittext and selection color in edittext
I am using a Autocompletetextview and an Edittext, for email and password, respectively. Is it possible to change their color? Here is an image: Change the selection color and the color on the…
-
0
votes1
answer163
viewsA: Background image covering the navdrawer
Image or background should be in android.support.v4.widget.Drawerlayout .. and not in relative layout