Posts by Igor Castañeda Ferreira • 623 points
14 posts
-
1
votes1
answer135
viewsA: Allow Download on IOS App
I would recommend you to have your Viewcontroller implement WKNavigationDelegate. Nessa delegate, you can use the method: func webView(_ webView: WKWebView, decidePolicyFor navigationAction:…
-
2
votes1
answer164
viewsA: Error connecting with Webservice + Soap + Android
There are some errors in your code: The error is caused because you are trying to make an HTTP request on thread home. This is a serious error on Android. Your class that handles web request…
-
0
votes2
answers180
viewsA: How to delete Tableviewcell as a Swift Dictionary
The problem is that you are removing an item from Dictionary in the wrong way. First, you are passing an integer to a method that does not accept integer: The method removeAtIndex, in the case…
-
3
votes2
answers5037
viewsA: Sort a list of objects by more than one attribute
To do this sort, you can use the method sort class Collections. Through it, you can create a block ordering logic: List<Pontuacao> pontuacoes = new ArrayList<>(); pontuacoes.add(new…
-
4
votes1
answer55
viewsA: Noclassdeffounderror when implementing Espresso Idlingresource
The problem lies in its configuration of Gradle. But precisely in the section: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile…
androidanswered Igor Castañeda Ferreira 623 -
1
votes1
answer672
viewsA: What better way to make animations for android?
I believe that the best library to work animations on Android is the Nineold. It implements the animations based on Valueanimators which were featured on Android 4.0. But from what you described of…
-
1
votes1
answer692
viewsA: Authentication error when integrating Facebook SDK 3.6 to Android
This error happens because the key that is trying to access the Facebook sdk is not registered on console of the application (Facebook). For the login to work, you need to generate the hash of…
-
1
votes1
answer1723
viewsA: setOnClickListener (Unfortunately Myapplication has stopped)
There occurs a NullPointerException when you try to associate a Listener to your button. That’s because the button is not in the xml of Activity and yes in xml of Fragment. To correct, simply the…
-
20
votes8
answers7407
viewsA: What better way to work offline and synchronize data with server?
The best way to keep information offline, on Android, is really the Sqlite. But, for the update on the server, I believe the best procedure is to mark the update with a version code and a timestamp.…
-
2
votes2
answers272
viewsA: Testing of asynchronous requests
I found how to force a test to keep your thread running and making asynchronous requests on Octestcase Basically, it is to force the "lock" of thread through a Runloop and release it after the…
-
2
votes2
answers237
viewsA: Disable Return button of`Uitextfield`
The way to disable the action of the Return is to use delegate as @Paulo replied. But, you cannot simply lock the open keyboard in a view. This goes against good usability standards and against…
-
4
votes2
answers272
viewsQ: Testing of asynchronous requests
How can I make asynchronous requests in iOS Testcases? Example: -(void)test { UserModel* user = [UserModel sharedInstance]; [user requestUserInformationWithCompletion:^(NSError* error, NSDictionary*…
-
1
votes2
answers569
viewsA: Hide and show the header of a listview when scrolled
You can create a view as a header from your list, and by recognizing the scroll, hide/show that view. final HeaderView header = new HeaderView(getActivity(), json); mListView.addHeaderView(header);…
-
0
votes2
answers269
viewsA: Differences between Facebook SDK and Google Play Game Services
I believe that, as it will be developed for Android, both can be used. But, we need to understand that facebook is only a social network, and not a library for games. Therefore, it is not an object…