Posts by Aleff Matos • 327 points
24 posts
-
0
votes1
answer34
viewsA: Transform only ascii numbers 0-9 to int
by making Edit a writing error of mine as noted "to_int = (t_postfix[i]-'0')" and not using after, it worked out and fixed the problem, the above code posted is already working correctly after…
-
0
votes1
answer34
viewsQ: Transform only ascii numbers 0-9 to int
I have the following code string t_postfix = getPostfix(); Stack<int> operandos; //pilha dos operandos for(int i=0;i<n;i++){ //loop para pegar operando e realizar operações…
-
0
votes2
answers526
viewsQ: How to do dialog with listview inside?
I would like to know how to create a Dialog containing a ListView following the example of the image below.…
-
2
votes1
answer34
viewsQ: How to place selection area (mobile) to photo taken
I would like to know how to soon after taking a photo and grab the file and upload this photo, create a photo selection area to Whatsapp profile photo style, and then save only this piece as the…
androidasked Aleff Matos 327 -
1
votes2
answers117
viewsQ: Multiple images inside an Image Button with padding
I own a ImageButton and within the same need put 5 images at the same time, being one in the center and the others around alluding to be expanding. So how do I put all the images at the same time on…
androidasked Aleff Matos 327 -
1
votes1
answer539
viewsA: How to make a post using Retrofit
within the interface @POST("/data") Call<IDVerification> postCustomerConfirmation (@Body IDVerification idVerification); Inside the Activityui onCreate Retrofit client = new Retrofit.Builder()…
-
0
votes1
answer103
viewsQ: How to stop Handler inside an asynctask
I have the following asynctask, which contains an Handler inside it, but when I leave Activity I close the async but sometimes Handler keeps calling the async after it’s closed. No crash in the…
-
0
votes1
answer539
viewsQ: How to make a post using Retrofit
I need to create a post in the retrofit to which sending follows this pattern, I have each class separately and a class IDVerification that count all together, and I don’t know which way to mount…
-
0
votes1
answer174
viewsQ: Error during upload request to Amazon S3
When trying to upload an image is giving problems and would like to know what the problem and how to solve. Amazon request: public void amazon() { String fileName = photoFile.getName(); long…
-
0
votes1
answer59
viewsA: Open an Activity twice but with different values
The way I found it was to change inside the manifest the "launchMode" android:launchMode="singleInstance"
androidanswered Aleff Matos 327 -
0
votes1
answer59
viewsQ: Open an Activity twice but with different values
Androidmanifest: <activity android:name=".pictureManagement.boundary.DocsIDUI" android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="portrait"…
androidasked Aleff Matos 327 -
3
votes1
answer196
viewsQ: How to Transform a Bitmap into java.io.file to send to Amazon S3
I’m having trouble sending one Bitmap for Amazon S3 using Amazon S3’s own SDK. To send something to Amazon S3 it is necessary to be a file, such as transforming the Bitmap in java.io.fileto be able…
-
1
votes1
answer141
viewsQ: How to get the url for this Json (java android)
{ "success":[ { "url":"http:\/\/stream.vagalume.fm\/stream" } ], "format":"mp3", "remaining":0 } how to get the url, format and remaining separately…
-
1
votes0
answers29
viewsQ: Identify if the app is in the background or just switched from Activity
Is there any way to determine if the app was for background or just if it switched from Activity?
-
1
votes2
answers355
viewsQ: Change Status Bar to transparent in a Fragment within an Activity
I have a Activity which has a theme for its Status Bar, but it has an influence on a Fragment I want another color in the Status Bar. Is there any way I can change the color of the Status Bar just…
-
2
votes1
answer113
viewsQ: Change color of overflow button
I wonder how it mainly does to change the color of the overflow button, if it is not possible, change the image, to SDK minimum 10
-
0
votes2
answers424
viewsQ: Greater space between spinner items
I’m creating an app that has spinner, but when opening the items are always glued together, I wonder if only by custom spinner I can give space or there is some style/theme that already has these…
-
2
votes1
answer212
viewsQ: Notification fixed at the top
I created a Notification but it always compresses and goes down, I would like to leave it always expanded and always at the top of notifications
-
-1
votes1
answer51
viewsA: Click off the actions of a Notification
After declaring a layaout XML give it an ID, and use it for the purpose of action or an Intent, so when clicked it will be able to open a UI or execute some command
-
1
votes1
answer63
viewsA: Expanded notification
shortly after: mBuilder.setContent(contentView); place: notification.bigContentView = contentView;
-
1
votes1
answer63
viewsQ: Expanded notification
I have the following codes (XML and notification respectively) for a notification plus it this small, I would like to let it expanded to suit everything XML <?xml version="1.0"…
-
3
votes1
answer51
viewsQ: Click off the actions of a Notification
I wonder if there is any way inside an Ongoing Notification so that when clicking off the buttons but still in the notification it performs a predetermined action?
-
1
votes2
answers330
viewsQ: How to create notification with custom layout?
I wonder if it is possible to create a notification (Ongoing Notification) using an xml? if yes, could pass me a basic with buttons and picture? XML: <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer46
viewsQ: Player com onGoingNotification
I have the following code: private Notification ongoingNotification() { NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Intent intent…