Posts by Steve Rogers • 322 points
21 posts
-
-1
votes1
answer139
viewsQ: Problem compiling apk on flutter - R8: Program type already present
I’m trying to compile apk to flutter, but am getting error in R8, I already have other applications in flutter never had problem to compile, making the tests realize that the problem is being the…
-
4
votes0
answers207
viewsQ: How to make a mock in an android class at runtime?
I am having a certain difficulty in the tests, I wanted to know if there is a possibility to simulate a custom return in a method at runtime example: @RunWith(JUnit4.class) public class TesteSmile {…
-
1
votes1
answer329
viewsQ: Error starting service on startup(ACTION_BOOT_COMPLETED)
I have a problem to start a service on android soon when the phone turns on I followed several tutorials but always causes this error 06-04 23:56:27.305…
-
0
votes1
answer180
viewsA: Centralize Recyclerview Items with Flexboxlayoutmanager
Wouldn’t that just be no? layoutManager.setAlignItems(AlignItems.CENTER) or layoutManager.setJustifyContent(AlignItems.CENTER) Source:…
androidanswered Steve Rogers 322 -
2
votes2
answers216
viewsA: Use of Google Admob
1st question: No, at least I do not recommend it is good to make separate ad blocks for each Activity, in applications you work with fragments you can place the ad for example along with the…
-
1
votes1
answer38
viewsA: How to get ACTION_ATTACH_DATA image
After spending almost all day searching I got the resolution to the problem so simple but hard to find, to get the image I needed only that line: Uri imageUri = getIntent().getData();…
androidanswered Steve Rogers 322 -
0
votes1
answer38
viewsQ: How to get ACTION_ATTACH_DATA image
I wish I could fix this problem that I am, well come on, I’m making a simple Wallpapers app, which has its own online image gallery, the app is practically finished the problem now is, i want my app…
androidasked Steve Rogers 322 -
2
votes3
answers1664
viewsA: String Format CPF on Android
Look I did so may not be the best way more help, the example I did was in eclipse but in java, is the same way on android, I know because I’ve done there, but of course disregard the part of Static…
-
1
votes1
answer554
viewsA: How do I get more memory to run the app?
In the Manifest.xml of your application add android:largeHeap="true" this will make it use more memory than the set pattern, attention your application will not run spending more memory, but let’s…
-
1
votes3
answers148
viewsA: Table showing Undefined that does not exist
After analyzing my code, I saw that the error was a simple matter of initializing the variables that were before like this var conteudo; var linhas; and now I’ve put it like this: var conteudo = "";…
-
2
votes3
answers148
viewsQ: Table showing Undefined that does not exist
I have a javascript generates a dynamic table. Looking at Stack Overflow searched for methods to print a report from this table. In my case, when the user clicks on Imprimir tabela opens a page with…
-
0
votes2
answers992
viewsA: Check Internet Android
I have a wallpapers application in this application she needs to check the internet so the wallpapers download, maybe the method I made can help you out of a look: private boolean…
-
2
votes1
answer753
viewsA: How to change the color of the navigation Drawer text?
To solve the problem it is simple to go to your activity_main.xml <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content"…
-
2
votes1
answer253
viewsQ: How to assign rounding on the button and random colors at the same time?
Hey, guys, I’m having a little doubt I already did a little snooping on the internet and I haven’t found it yet maybe it’s not possible, but come on.. For example I have a button on this button I…
androidasked Steve Rogers 322 -
1
votes1
answer82
viewsQ: How to play a layout component up?
Good afternoon I’m making an app for studies, and I’m encountering a small problem is not enough to be a bug, but come on, this is my home screen: As it is in the print below, I have a relative…
-
0
votes1
answer295
viewsQ: Webview with video
Opa galera good afternoon, I’m lately dealing with webviews, I was looking on the net for a way to run videos of the site type urls, which has a post and this post has a video, I did a search and…
-
0
votes1
answer76
viewsA: Problem with vector position
I managed to resolve, I do not know very well what happened before I had tried this way : if (ChecandoseExisteIMG(nomes[position])){ holder.Baixar.setText("Baixado.");…
-
0
votes1
answer76
viewsQ: Problem with vector position
I have an application in which I made an image arrylist, which in this image list has its position, in the method onBindViewHolder @Override public void onBindViewHolder(MyAdapter.ViewHolder holder,…
-
1
votes1
answer79
viewsQ: I’m in error of Apostrophe not preceded by
I’m trying to internationalize my app to the English language but I end up getting this error Error:(10) Apostrophe not preceded by (in Please note, if you’re on a device with android 6.0 above, you…
-
0
votes1
answer370
viewsQ: How to use Recycleview on fragment ?
I don’t know if I asked the question correctly, but let’s go there who can help me thank :) this is my second Mainactivity, I am making an application with navigation Drawer and in it to make the…
-
0
votes1
answer185
viewsQ: Value attached to variable within setOnClickListener is not being considered
So I’m making a test app more to study even, I’m beginner on android do not know much, I’m trying to make in the application when I click on an image that it enters this method :…