Posts by Tiago Coelho • 739 points
60 posts
-
0
votes1
answer25
viewsQ: VBA - Error checking cell value
Good morning, I have the following code IF returns "incompatible type" error, anyone know the reason? I’m trying to validate row values with columns. Sub DeleteColumnByHeader() Dim aCell As Range…
-
0
votes2
answers37
viewsA: How to send data to the constructor?
Simple learned it yesterday curiously. In his activity : organizadist enviadados = new organizadist(); organizadist.Teste array [] = enviadados.inicializa(listaClothes , escolha); In your…
androidanswered Tiago Coelho 739 -
-1
votes1
answer47
viewsQ: How to pass Activity values to useful?
I would like to work with the item object but I need to pass values of my activity to the usel someone can explain me? item[0] = new ColorClothes(); item[0].record = 0; item[0].color = "blue";…
androidasked Tiago Coelho 739 -
0
votes1
answer628
viewsQ: Spinner does not appear text inside it
The spinner arrow appears but the text does not and even when I choose one of the spinner options nothing happens empty without the chosen option...the minimum version in my grandle is the maximum…
androidasked Tiago Coelho 739 -
2
votes2
answers882
viewsQ: How to organize data from a listview?
I have a list view of times where it says the name of the line, the stop , time and state. If someone can explain me how the organization works in android I would just need to know how to…
-
0
votes1
answer148
viewsQ: How can you make an automatic table , with organization and "pagination" in android?
I need to make a data table with about 5 to 6 columns, with data from multiple arrays. The goal is to be able to have as close as possible to a management table where the user can organize the table…
androidasked Tiago Coelho 739 -
1
votes1
answer176
viewsQ: Timertask Error: Looper.prepare() not called
I got this mistake. Can’t create Handler Inside thread that has not called Looper.prepare() The goal is to repeat the function that receives the map every 1000 thousandths of a second. Timer t = new…
-
1
votes1
answer32
viewsA: Problem with sqlite and boot receiver
Failed to declare the database in bootreceive. BDCore auxBd = new BDCore (context); db = auxBd.getWritableDatabase();
-
1
votes1
answer32
viewsQ: Problem with sqlite and boot receiver
I have an application where the goal is to put the name of a stop and after the reboot to android device receive the name of that stop in reboot receiver My boot receiver is working because I have…
-
1
votes1
answer41
viewsQ: Notifications stop appearing and gives console error
It was receiving about 7 notifications as soon as the user logged in that were set by an alarm and sent to an alarm receiver where it creates the notification each with its id. I ran the app again…
androidasked Tiago Coelho 739 -
5
votes2
answers1003
viewsQ: Can Sqlite work fully offline?
I need to save my alarms so that after the device is restarted they are put back into operation. The problem is that I get all of them through my database on mysql. What made me think that maybe it…
-
1
votes1
answer207
viewsQ: Problems with android alarm
The idea is to send a notification to the user every 24 hours. User has a list and when click will add an alarm. If the current time is longer than the time of the alarm we will add 24 hours for it…
androidasked Tiago Coelho 739 -
0
votes0
answers48
viewsQ: Problems with Json receiving inner value
I have this code which in turn what it does is to fetch an id from the database but the first value it will fetch is 0 past 1 second it will fetch the correct value tested with a output text .…
androidasked Tiago Coelho 739 -
1
votes2
answers387
viewsA: Cancel specific alarm
I was passing the wrong context solved . Pendingintent alarmIntent; Horariosactivity.context = getApplicationContext(); Intent intent = new Intent(HorariosActivity.context , AlarmReceiver.class);…
androidanswered Tiago Coelho 739 -
1
votes2
answers387
viewsQ: Cancel specific alarm
I got this alarm : This in my acticity Horariosactivity PendingIntent alarmIntent; Intent intent = new Intent(HorariosActivity.this, AlarmReceiver.class); intent.putExtra("agoa", "teste");…
androidasked Tiago Coelho 739 -
2
votes1
answer106
viewsQ: Alert works immediately if the time is longer than the closed Larm
This is the code I have : alarme.setRepeating(AlarmManager.RTC_WAKEUP, horas, 86400000, alarmIntent); The goal was to send a notification after 24 hours and it works after 24 hours the problem is…
-
0
votes1
answer679
viewsQ: Notification with Alarm manager
One of the ultimate goals of my application is to send notifications to the user at a certain time. My Alarm manager is working correctly now my problem is notifications that are not shown. The aim…
-
1
votes1
answer77
viewsQ: Why doesn’t the alarm open Activity?
I have in my code an alarm that is supposed to ring when the hours arrive at 22:48 but nothing happens now I wonder if the hours that Calendar uses are the system hours ? if yes what I am doing…
-
0
votes1
answer36
viewsQ: Variable Calendar is not recognized by android
I am declaring so in my project and can not recognize the variable "Cannot resolve Symbol 'Calendar'" Calendar calendario= new Calendar.getInstance();…
androidasked Tiago Coelho 739 -
0
votes1
answer222
viewsQ: How to remove string saved in sharedPrefererences?
Boas, I have the problem of having a bookmark list and need to remove by clicking the item of favorite times that is saved in Shared preferences. I have a list which is my favlist that contains json…
androidasked Tiago Coelho 739 -
1
votes3
answers688
viewsA: How to do in a select html, when clicking select more than one row at a time?
Well from what I understand, you want to take a month and take the next two months ? Well you can start by seeing the value you’re assigning to your option. Let’s say you have three options…
-
0
votes1
answer532
viewsQ: Listview does not appear
After hours of code analysis I still can’t find the error simply does not appear my list with the schedules that are received by json ! I took code that I didn’t find necessary for error. The code…
androidasked Tiago Coelho 739 -
0
votes2
answers99
viewsQ: Problems with php Mailer
It’s my first time using php Emailer and I get the error: The following From address failed: [email protected] That’s my code right there. // recebe as Variaveis $nome = $_POST["nome"]; $email =…
phpasked Tiago Coelho 739 -
1
votes1
answer50
viewsQ: Error in android studio after update
I updated version 1.2.0 to 2.2 and now every time I try to create or open a project appears : Fatal error initializing 'com.intellij.Debugger.Debuggermanager' And don’t let open the project, some…
androidasked Tiago Coelho 739 -
1
votes0
answers54
viewsQ: Problems with onclick
I have 2 buttons where when clicking I will ask for information from the server and receive in a list. The problem is the order because when I click the button for the first time it does not give me…
androidasked Tiago Coelho 739 -
0
votes1
answer41
viewsQ: Jquery version giving problems
I’m in trouble because my site is done with Jquery 1.4.1.min and when I call a script like this: <select class="styledselect_pages" onchange="mudalinhas(this.value) "> Script with this version…
jqueryasked Tiago Coelho 739 -
0
votes3
answers32392
viewsQ: Changing window.location.href does not redirect to the new page
if it is working but the window.location not going to google is just an example but I think it explains the error. function eliminaParagem (){ var confirma =confirm("Tem a certeza que quer eliminar…
javascriptasked Tiago Coelho 739 -
0
votes2
answers40
viewsQ: Order of operation of scripts
I am beginner in java script and when I run this program if you have the 2 blank fields only the first warning appears but then if you fill the first field the second warning already someone can…
javascriptasked Tiago Coelho 739 -
0
votes2
answers764
viewsQ: Script doesn’t work
The goal is if the field is empty write in the "label" that the field cannot be empty. The purpose of the form is to go to confirmaNovaParagem.php to send the data and then confirmaNovaParagem…
javascriptasked Tiago Coelho 739 -
0
votes1
answer52
viewsQ: Conflict between 2 scripts
When I put the second script the first script disappears is the first time to use ajax. I call the scripts like this: <script language="javascript" type="text/javascript" src="script.js">…
-
0
votes1
answer28
viewsQ: Explanation of a php array and how to access the x position of the PHP array
I need a brief explanation about arrays in php I’ve been searching and without success. For example if I try something like where I’m getting the based schedules echo does not work I’m also working…
phpasked Tiago Coelho 739 -
0
votes0
answers66
viewsQ: Adapt code to Fragment
Good morning I had posted the doubt but now I tried to simplify to be simpler the help I hope you can help me. I’m using googleplaces and when I write in an editText I get suggestions of places in…
-
1
votes0
answers75
viewsQ: Adapt code to google maps json url
I followed the code that was in the first comment Link to the comment worked well but when I tried instead of passing the json from wikipedia pass the json from google maps no longer appear results…
-
1
votes0
answers29
viewsQ: Problems with Autocompletetextview
I’m wearing it for the first time Autocompletetextview with Json back through the google the streets. Everything goes well until the moment I click on the street and get let’s imagine that I click…
-
0
votes1
answer119
viewsQ: Find current location
I am developing an application where I need to remove the current location of the user, the problem is that the code I developed returnsme the last coordinates existing on the device and I only…
-
1
votes2
answers422
viewsQ: Position Absolute is not working
I’m trying to create a version of the old record site. What I need is to get the div read under the div last, but they are followed and this is not what is intended. Where does it say good, on the…
-
0
votes1
answer76
viewsQ: Application to give directions by gps on android?
I was thinking about developing an android app for bus/bus users to find stops. The idea would be to have my coordinates the coordinates of the stop and see the distance , but I also need…
-
7
votes1
answer578
viewsQ: Zoom with fingers on app
I saw that there is zoombutton and zoomcontrols in Android Studio but I analyzed none zoom with fingers. How can I zoom in with my fingers on an Android app?
androidasked Tiago Coelho 739 -
0
votes0
answers29
viewsQ: Could this code cause webview to not "connect" to the xml’s center_horizontal?
I have this code to upload a video to the webview , I had already made a post but I forgot to present the code . mWebView.getSettings().setJavaScriptEnabled(true);…
-
0
votes2
answers56
viewsQ: Webview does not want to go downtown
Boa I have a Webview that does not want to go to the center of my app I leave here the example In my xml : <WebView android:layout_width="wrap_content" android:layout_height="0dp"…
-
2
votes1
answer91
viewsQ: Through this code there is some way to change the background color of each listview item
That’s how I’m doing the listing I’d like to know if it’s possible to put each item in a different color for example 1 in white and one in black ArrayAdapter adapter = new…
androidasked Tiago Coelho 739 -
2
votes1
answer49
viewsQ: Php script in java ? runs in the background?
I have a question. I have a script which takes about 40 seconds to execute. I’m thinking so if I have run on android, the user if not willing to wait the 40 seconds, what happens he closes in the…
-
1
votes1
answer635
viewsQ: java.lang.Outofmemoryerror: Failed to allocate error
This error in my application is happening: java.lang.Outofmemoryerror: Failed to allocate my image code: URL url1 = null; try { url1 = new URL("http://www.cm-mgrande.pt" + cabecalho); } catch…
androidasked Tiago Coelho 739 -
6
votes1
answer803
viewsQ: How to use parse.com?
With the parse.with it is necessary to pass my database to their website? I have a database on the company server, and I don’t intend to put it on their website. They offer the option to access my…
-
0
votes1
answer67
viewsQ: How could I send messages from the cloud to Android ?
I know of the existence of GCM , but it seems to me too complex , there is an easier way? In case you don’t know any GCM appreciate.…
androidasked Tiago Coelho 739 -
3
votes1
answer282
viewsA: How to change Webview size
After researching a little I found the solution to my problem mWebView=(WebView) findViewById(R.id.webView); mWebView.setLayoutParams(new LinearLayout.LayoutParams(350,350)); There’s another way…
androidanswered Tiago Coelho 739 -
2
votes1
answer282
viewsQ: How to change Webview size
I got a WebView tall (height) of 0dp defined in the XML of the activity. How can I change the height to 300dp programmatically?
androidasked Tiago Coelho 739 -
0
votes1
answer33
viewsA: Error when setting variable inside foreach
Well I put my mistakes here and solve right away the solution to my problem was to put {} foreach($html->find('img') as $imagensdescricao) { $imagens1 .= $imagensdescricao->src; $imagens1 =…
phpanswered Tiago Coelho 739 -
0
votes1
answer33
viewsQ: Error when setting variable inside foreach
I have this piece of code in PHP. When sending to the database data images are separated by ; and the videos only put ; in the last video . foreach($html->find('img') as $imagensdescricao) {…
phpasked Tiago Coelho 739 -
2
votes2
answers1663
viewsA: Youtube video for a video view
Well after several attempts I found two ways to solve the problem one of the ways is to use the Youtube Android Player api , that there is installation of libraries and everything but is in my…