Posts by franM • 482 points
30 posts
-
0
votes0
answers103
viewsQ: Problems with ajax on the server
I have an application in ZF2 on Ubuntu server. One of the controllers is triggered from a request ajax. Locally, the application works normally. However, when going up to the server I started having…
-
1
votes1
answer48
viewsA: System always returns status 500
I managed to solve the problem. I started using XAMPP. For some reason, which I was able to identify, MAMP could not render my application.
-
1
votes2
answers455
viewsA: getView() method is not called in the Array Adapter
I particularly never try to put a listview inside a scrollview, maybe your problem starts there
-
-1
votes1
answer48
viewsQ: System always returns status 500
I have a wordpress application that is running in production, and with versioned code. I’m trying to set up the development environment on a Mac OS X Yosemite 10.10.5, so I made the same settings as…
-
1
votes0
answers1487
viewsQ: PDO - Uncaught Exception 'Pdoexception' with message 'could not find driver'
Look at us! I am trying to set up a project in a Mac Yosemite environment. The project I intend to run works normally on an Ubuntu. I did the installation of the PDO drive. phpinfo is like this: PDO…
-
0
votes1
answer42
viewsQ: Failed to execute git status when updating Doctrine
I’m servicing a system, and I need to upload some changes to the production server. Some of these changes involve mapping and adding new entities to the bank. The problem: the file .…
-
2
votes2
answers618
viewsQ: Changing style of a div
I have a div that stays hidden on the screen: <div id="selectCity" name="selectCity" class="form-group col-md-12" style="display: none;" > <label for="cities">Para os usuários da…
javascriptasked franM 482 -
2
votes3
answers368
viewsA: How to prevent an application that runs in the background from being stopped by the user?
From what I understand you want to develop a service "zombie" that will work independent of the application. I do not advise, you have to think about battery life, even more using GPS. If it is not…
-
0
votes1
answer164
viewsA: Recyclerview grouped together
Try the android-arsenal. I’ve used this library here.
-
1
votes2
answers1170
viewsA: Format Phone number in Textview - android
I used to do this: I have static methods in my Phonemaskcontroller class, which clean and add formatting: public static String clearFormating(String phoneNumber) { phoneNumber =…
-
0
votes1
answer173
viewsA: ZF2 - Runtimeexception: Module (Zfcuserdoctrineorm) could not be initialized
I found the solution. I am maintaining this code, and I saw that the previous developer downloaded outside of Composer.
-
0
votes1
answer173
viewsQ: ZF2 - Runtimeexception: Module (Zfcuserdoctrineorm) could not be initialized
I just downloaded the Composer installer. This is what I have in my Composer.json: "require": { "php": ">=5.3.3", "zf-commons/zfc-user": "dev-master", "zendframework/zendframework": "2.3.*",…
-
2
votes0
answers61
viewsQ: Parse as backend service
It’s the first time I’m using Parse in a project, I’m going through a somewhat complicated problem. I have to keep my user data offline, this user has a arraylist as an attribute. The problem is…
-
2
votes1
answer1036
viewsA: Save server images to my application
To save the image: Picasso.with(context).load(URL IMAGEM).into(target); private Target target = new Target() { @Override public void onBitmapLoaded(final Bitmap bitmap, Picasso.LoadedFrom from) {…
-
3
votes1
answer1133
viewsQ: PHP - Banking conciliation
I am developing an application that will require bank conciliation functionality. For this, the standard cnab 400 should be used for Banco do Brasil. I need to generate the file-shipment and treat…
-
1
votes1
answer669
views -
1
votes4
answers3216
viewsA: How to know if the app is open
Try to use this code. private boolean verifyApplicationRunning(Context context) { ActivityManager activityManager = (ActivityManager) context.getSystemService(context.ACTIVITY_SERVICE);…
-
0
votes1
answer237
viewsQ: Doctrine Insert regarding Many-to-Many unidirectional
I have the following situation: In my Local entity: /** * @ORM\ManyToMany(targetEntity="Contato") * @ORM\JoinTable(name="contato_localidade", * joinColumns={@ORM\JoinColumn(name="localidade_id",…
-
1
votes1
answer50
viewsQ: Cookie between controllers
I created the following cookie in the Locale controller: $cookie = new \Zend\Http\Header\SetCookie('localidade_id', $localidade->getIdentificador(), time() + 3600); However, when trying to access…
-
0
votes1
answer96
viewsQ: Problem loading image of an entity
I have an icon manager, in it I have already made available all the crud. However I have a problem, when opening the form, a Zend\Form to edit an icon I cannot load the image that is already saved.…
-
0
votes1
answer142
viewsA: How to make a Listview responsive?
Use dimens to set the size of items for each screen. <resources> <dimen name="action_button_min_width">56dp</dimen> <dimen…
-
0
votes2
answers135
viewsA: Outofmemoryerror error while downloading object list
Place android:largeHeap="true" in his manifest.
-
1
votes1
answer139
viewsA: Manipulate onPostExecute from another Activity
I have a habit of doing the following: public interface DataLoadListener(){ public void Builder(); } In the Dataload Class: public class DataLoad extends Activity implements DataLoadListener { ...…
-
1
votes0
answers405
viewsQ: Android - ACTION_IMAGE_CAPTURE, Problem to capture image
I’m developing an application that needs a photo of the user. For this, I developed a code that is responsible for capturing and resizing the image. This is code: private File createImageFile()…
-
1
votes1
answer189
viewsA: Upload image from a url to an Infowindowadapter
I was able to solve the problem. It was necessary to download the image manually. How did the code turn out: private void loadImage(Marker marker) { if (((BitmapDrawable) localImage .getDrawable())…
-
1
votes1
answer495
viewsA: How to change the focus of tabs on a Tabhost?
This is what I usually do: private void initialiseTabHost(Bundle args) { tabHost = (TabHost) findViewById(android.R.id.tabhost); tabHost.setup(); AddTab(this, this.tabHost,…
-
0
votes1
answer189
viewsQ: Upload image from a url to an Infowindowadapter
I am trying to show an image from a URL on an "Infowindowadapter", but it is never shown. I’m using the Volley library to upload images. Someone has an idea how to solve this problem? //no fragment…
-
8
votes2
answers1484
viewsQ: Compareto: Comparison method violates its general Contract!
I found many questions on this subject, and tried all the suggestions I found, however the problem persisted. If anyone can help me, there’s my problem: I have a list of requests, this list is…
-
0
votes1
answer86
viewsQ: Google play services and setInterval
I’m trying to use google play service to get the user’s position. The problem is, I have a dynamic time frame for sending this position to the server. However, Locationclient does not respect this…
-
0
votes1
answer841
viewsQ: Upload contacts from Android device - Contactscontract.Contacts - Contentprovider
I am trying to upload the following data from the user’s calendar: name, phone, email and photo. However the process is very slow, it is taking on average 4 minutes to load information from 800…