Posts by CristianCotrena • 1,145 points
80 posts
-
0
votes1
answer554
viewsQ: How do I get more memory to run the app?
I’m developing an app android Currently, when running the APP, it starts by reserving 36.62 MB of memory. I would like it to start over 50.00 MB or, when it reaches its limit, add more memory. Is…
-
0
votes2
answers704
viewsQ: Problems with the result of a sum between double-type numbers
I want to make the following calculation: 615.6555 + 566 I expected this result: 1181.6555 However, this is me returning this: 1181.6554999999998 How do I solve this problem?…
-
4
votes1
answer1410
viewsQ: How do I run an algorithm when the user stops touching the screen?
I would like, when the user presses the screen, to open a horizontal menu with 4 options where the option to which he drops his finger on top will be selected. The pressing event I already know.…
-
2
votes1
answer1331
viewsQ: How to order a list in alphabetical order?
I own a List<ListaUsuarios> and I want to sort it alphabetically by name My code is like this User class: public class Usuario{ private String nome; private String empresa; private int idade;…
-
4
votes1
answer321
viewsQ: How to cut part of a bitmap?
I want to create a Bitmap that its content is a part of another Bitmap For example: I have a Bitmap (400x900) width = 400 height = 900 I want to cut it in the dimensions (400x400) in order to leave…
-
0
votes1
answer319
viewsQ: java.lang.Stackoverflowerror: stack size 1038KB
I’m making an algorithm that converts one bitmap leaving it in shades of gray. I could do it using for but I’d like to do it recursively. Using for (This working well) //BUTTON - ON CLICK . . .…
-
2
votes1
answer55
viewsA: How to delete a specific class from querySelectorAll?
Usa not: CSS pseudo-class: document.querySelectorAll('*:not(.notifications)');
javascriptanswered CristianCotrena 1,145 -
2
votes1
answer3463
viewsQ: Problems to generate APK in Android Studio
I’m trying to generate a file . apk from my android pro projector. I always could but after I upgraded it I couldn’t get any more. What I upgraded on two different machines. When I will generate .…
-
1
votes0
answers57
viewsQ: Conflict between Listview’s latest Ell and Floatingactionbutton
On the last Cell of mine ListView there is a conflict because the FloatingActionButton screen is covering two buttons as shown in the image: I wish I could enlarge the scroll area of my ListView or…
-
2
votes2
answers825
viewsA: Create directory and add files to query later on android
To store various types of files such as . txt, . json, etc, you first need to create a Assets Folder, That’s where you’ll put your files. to create a Assets Folder just click on your projectile with…
-
0
votes2
answers368
viewsA: How can I extract the information from an XML that is stored in a String?
I found another cool way to do it. This way Voce can search by TAG and attribute. I’ll post it in case someone prefers to do it this way. private void le_o_xml2(String xml) throws…
-
0
votes2
answers368
viewsQ: How can I extract the information from an XML that is stored in a String?
I’m consuming this one xml of a api and storing its contents String Its structure is this way: <opml version="1"> <head> <title>Título</title>…
-
2
votes1
answer96
viewsQ: How to correctly position a piece of the View created in java?
After charging my View, if the user clicks the button then a menu appears in front as shown in the image: The top layer of this menu is a FrameLayout, I’d like to leave you with Gravity RIGHT and…
-
0
votes1
answer1116
viewsQ: How to write to a.json file
I have some files .json in assets. I am currently reading only in these files. Reading public String loadJSONFromAsset(String Ajson) { String json = null; try { InputStream is =…
-
0
votes2
answers1978
viewsQ: Textview - Leave only one word in Bold
I have a TextView which displays the following text on the screen: Like this: value: PROMOTION! As I wish: value: PROMOTION! Has as put Bold in just one word from TextView? I mean, there’s a way I…
-
0
votes1
answer163
viewsQ: Error creating Google Maps Activity
When I create in my project a new -> Google -> Google Maps Activity he creates everything correctly. Then add the key to google_maps_api.xml. <string name="google_maps_key"…
-
2
votes1
answer170
viewsQ: How to keep the screen turned on in later versions of the Kitkat API?
I’m making a APP that keeps the smartphone screen always on, even when the APP is minimized. I’m using a class with extends Service to do this, in onCreate I put the code that keeps the screen…
-
0
votes1
answer265
viewsA: The variable animacao of Controles has not been Assigned
I found the problem. In the tutorial link mentioned in the question, in approximately 5:28 of the video an error occurs, hence comes a black screen saying it was solved but does not explain exactly…
-
6
votes1
answer265
viewsQ: The variable animacao of Controles has not been Assigned
I’m trying to get my character to walk in one Animation and stand in the other. In Animator, created a parameter of type float walk to make the exchange control between the animations as shown in…
-
0
votes1
answer137
viewsA: How to create a Gridview with gallery images?
After researching a little, I managed to solve this way. I used the exeplo of GridView available for download from this source:…
-
0
votes1
answer137
viewsQ: How to create a Gridview with gallery images?
I’m making a APP who works with images, I’m saving the images in a gallery folder called imagensAPP in this way: Saveimage: public File saveImage() { int imageNum = 0; //SALVANDO EM IMAGENSAPP . . .…
-
2
votes1
answer463
viewsQ: Error adding APP build on iTunes Connect
I’m trying to upgrade my APP to the store I only changed contents of some Nsstrings, when I give Archive and send it to iTunes, it does not present any error, however when I add it, iTunes does not…
-
2
votes1
answer311
viewsQ: How do I enable my iPhone to use in tests by Xcode?
I need to use my smartphone to test an APP, but I don’t know how to enable it in Xcode. -I already have developer account; -I’ve already registered it as a device on -…
xcodeasked CristianCotrena 1,145 -
0
votes1
answer58
viewsQ: How to enable the Macbook camera in the Simulator?
I’m making an APP on Xcode that uses the camera to make videos but I can’t use the camera through the Simulator. Is there any way to enable the camera for the Simulator?
xcodeasked CristianCotrena 1,145 -
1
votes2
answers286
viewsQ: How do I publish apps for tablets in the Play Store?
I can’t make my app available to 7 and 10 inch tablets, when I send the APK to the Developer Console, it shows the following error: Design your app for tablets Your APK does not seem to have been…
-
2
votes1
answer193
viewsQ: How to disable scrollView interaction on the user screen?
On the screen, the user should not be able to touch the Scroll, His drive I’m doing all by code this way for example: Moving: public void move(View v){scroll.scrollTo(160, 0);} I’m looking for a way…
-
2
votes1
answer128
viewsQ: How to create video through an image sequence?
I want to create a video using a image set of the same type and size. I researched some examples but did not succeed in performing the algorithm. Of the examples, this link was the most complete:…
-
0
votes2
answers79
viewsA: Android - How to access an Activity through a Papplet?
I got it this way: Intent intent = new Intent(this.getActivity(), Teste.class); try { this.finalize(); } catch (Throwable throwable) { throwable.printStackTrace(); } this.startActivity(intent);…
-
2
votes2
answers79
viewsQ: Android - How to access an Activity through a Papplet?
I have a class with extends PApplet and I want to migrate from it to another with extends Activity I tried through a Intent but I couldn’t. Body of the Papplet class: public class CamMain extends…
-
0
votes1
answer38
viewsQ: Objective C - How to change the content of an Image View after an animation
I implemented an animation in a Image View and would like to know how I change your image exactly after the end of the animation. Example: - (IBAction)play:(id)sender { //ANIM . . . [UIView…
-
1
votes0
answers59
viewsQ: Android - How to turn off automatic camera lighting?
I would like to disable automatic camera lighting on Android. When I use the camera for example, if I approach something to the lens while shooting, it makes the shooting clearer. I would like to…
-
0
votes0
answers89
viewsQ: Audio playback error in video streaming
I’m trying to reproduce a video streaming but it’s giving audio problems. On the Android platform, I managed to play it without errors and on the web is also in a good quality. I’ve taken several…
-
2
votes0
answers59
viewsQ: Objective C - How do I direct the user to appleStore to update your APP
My code checks if there is a new app update but when there is one, ñ know how to direct it to the Appstore to perform the download. I rode something like this: And by clicking Update, we direct the…
-
2
votes2
answers419
viewsQ: Swift - how do I find the screen size of the user’s device?
I would like to know how I discover the screen size that the user is using or the model of your iPhone via Swift. I only know how to do it in Objective-C Response in Objective-C: CGFloat screenScale…
-
1
votes1
answer51
viewsQ: Swift - how to fix in Landscapeleft a screen?
The app has 4 screens and, only one should be fixed in Landscapeleft. The others are in Portrait.. On the tab General I set it up this way. General: In Objective-C I can force this way: Solution in…
-
0
votes0
answers119
viewsQ: Error in http Connection org.json.Jsonexception: End of input at Character 0 of
When I try to catch one JSONArray of the internet, it presents an error. Error Error in http connection org.json.JSONException: End of input at character 0 of This error happens when it will try to…
-
1
votes1
answer24
viewsQ: Objectie-C - How do I get a response from an API when sending a message?
I am sending a JSON to an API. When the API receives a JSON, it responds by telling me whether the procedure was successful or not. How do I get this answer? Shipping code: NSMutableURLRequest…
-
0
votes1
answer34
viewsA: Swift - How to stop an animation?
I figured out a way. I did it this way: @IBAction func paraAnimacao(sender: AnyObject) { var layer = imageView.layer.presentationLayer() as! CALayer var frame = layer.frame print(frame)…
-
1
votes1
answer34
viewsQ: Swift - How to stop an animation?
In my initial Viewcontroler I have a slide that keeps loading from the internet and alternating on the screen images at a time stipulated by me. How can I stop the animation? I wanted to do this…
-
0
votes2
answers340
viewsQ: Swift - how to find out the size of JSON?
I’m getting a Json from a link. How do I find its size and how do I assign the "image" key to a String array - var img = [String]()? example JSON: [{"imagem":"textoX","link":"link da webX"},…
-
0
votes1
answer86
viewsQ: Swift - How do I take an image from the internet and send it to an Imageview?
I have an Imageview, I want to take an image of the internet (through a link) and play for Imageview on the screen. Image example to be captured:…
swiftasked CristianCotrena 1,145 -
1
votes2
answers856
viewsQ: Swift - How to automatically change Imageview image
I have some images and an Imageview according to the photos I would like to be able to switch the image of View, switching from one to the other every 5 seconds automatically. How could I do this?…
swiftasked CristianCotrena 1,145 -
0
votes1
answer83
viewsQ: Swift - How to make and run an Assynctask?
I made an app on Android and am making a version of it for IOS currently, I would like to know how I could implement an Assynctask on Swift and run. On Android I did this way: public void…
-
1
votes1
answer112
viewsQ: Android - Problems Streaming AAC
I have a problem with streaming audio, it runs perfectly on some devices and on others it does not run, I wonder if there is any way to solve this. It runs for example on a Galaxy ace 4 neo, but…
-
-1
votes2
answers456
viewsA: Read an excerpt from a String
Referring to taking a part of a String, you can use a Substring for this. We will also exchange the comma for a point to work in float and perform the desired calculation. would look this way:…
-
3
votes4
answers874
viewsA: How to work and switch multiple View Controllers via code?
You can do it this way: First you need to give an id to your target View Controller It can be done this way Now you can use this id to get to the View Controller You must use this code in the Swift…
-
2
votes1
answer977
viewsA: Buttons invisible in emulator but visible in preview
I tested in the Android Studio your xml, it shows the button normally on my virtual machine. Try this scope for each button: <Button android:layout_width="100dp" android:layout_height="100dp"…
androidanswered CristianCotrena 1,145 -
4
votes2
answers166
viewsQ: IOS - How to scale a view by Swift?
I have a view called viewV and would like to change your Width and Height shown in the image below via Swift code.…
-
0
votes1
answer123
viewsQ: IOS - how do I find the screen size of the user’s device?
I wonder if there is a way to find out the screen size that the user is using or the model of your iPhone via Objectice-C.
-
1
votes2
answers185
viewsA: IOS - How to program the navigation between Viewcontroller direct in viewDidLoad?
With the tip from @Jeffersonassis, I managed to include the code mentioned in the question within the method viewDidAppear. was thus: -(void) viewDidAppear:(BOOL)animated{ if(_cadastrado…