Posts by Guilherme • 935 points
66 posts
-
0
votes1
answer112
viewsQ: How to hide final public Static in proguard?
I have the following class package br.com.app1.urls; public class Urlapp { public static final String URL_LOGAR ="url/login"; public static final String URL_CADASTRAR_INCIDENTES ="url/incidentes"; }…
-
0
votes1
answer1616
viewsQ: How to use the power button on your phone?
I wonder if it is possible to use the power button (on and off) of the phone in an application. Example: Performing some function if pressed the button three times in a row. If possible I would like…
-
0
votes1
answer1193
viewsQ: Permission Denial: Starting Intent with revoked permission android.permission.CAMERA
Code to call camera public void TirarFoto() { final Random numRandomico = new Random(); String resultado = String.valueOf(numRandomico.nextInt(20)); Intent intent = new…
-
1
votes2
answers90
viewsQ: Update all table records with Sqlitedatabase.update()
I have the following code to update a field in my table. I wonder if I could change the "note" and "missing" fields in all table records. Example: put all records with note = 8 and missing = 5…
-
1
votes1
answer133
viewsQ: Imageview shows the image rotated by 90 degrees
When I upload a photo to the server and I will display it using Picasso.with(getApplicationContext()).load(Caminhofoto).into(fotoalerta); If the photo was taken with the mobile phone vertically she…
-
3
votes4
answers3216
viewsQ: How to know if the app is open
I wonder if there is how to check if the application is open, with user using it or if it is in the background and he is using another application. Depending if you have it open and user using it I…
-
0
votes1
answer123
viewsQ: Doubt of Switch
I have a dialog with Switch and programmed with Click to change and now I need to do the same thing when the user drags the Switch off to on or the other way. public void Dialogo_Setor() {…
-
2
votes1
answer149
viewsQ: How to cancel an Handler?
I have this Code final Handler handler = new Handler(); final Runnable r = new Runnable() { public void run() { if (garagem.isChecked()!= luzgaragem){ garagem.setChecked(luzgaragem); //Quando chegar…
-
1
votes2
answers196
viewsQ: Doubt with Dialog
I’m using Dialog to display a certain information in my APP, I wonder if it has any function for me to check if the dialog is already open to not open again. public void Dialogo_Iluminacao() { final…
-
1
votes1
answer485
viewsQ: Error compiling project in Gradle
It’s giving me the following error message when compiling my project and I’m not getting it right I’d like some help if anyone’s had this problem…
-
0
votes0
answers122
viewsQ: Update a Switch from a Dialog
I have a dialog like this: public void Dialogo_Iluminacao() { final Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.dialogo_iluminacao); dialog.setTitle("Iluminação"); final Switch…
-
3
votes1
answer1582
viewsQ: ip camera streaming
I need to make an app to connect to an ip camera the camera I have is the dcs-932l - d-link I need some hint, research or example. tried with Videouri believe that not…
-
1
votes1
answer115
viewsA: Android studio problem with Libs
I was able to solve for those who have this same problem is necessary to create the . jar in Java7 Java8 is giving this problem!
-
0
votes1
answer115
viewsQ: Android studio problem with Libs
I added a lib generated from a project of mine to get the classes and not have conflict that pack only that is giving me the following error Error:Execution failed for task ':app:preDexDebug'. >…
-
0
votes1
answer484
viewsQ: Doubt with Notification and Alarmmanager
What I need is a hint, help to know how to implement an Alarmmanager that whenever a notification appears something like this In the Home screen of the phone and is making a sound every 5s for the…
-
0
votes1
answer108
viewsQ: Problem Adding Image Inside a Thread
I have this following call class inside the main is working perfectly only problem is for me to set the image I received in msg from the following error E/Androidruntime FATAL EXCEPTION: Thread-201…
-
0
votes0
answers64
viewsQ: Connect to DVR via android
I need to create a project to study how to connect to a DVR and receive the images through android and I’m a little lost in this search, I would like some help, what should I study or some sample…
-
0
votes1
answer136
viewsQ: Android error using Picasso
I have the following code to display images through URL public class AdapterListPesquisaResp extends BaseAdapter { private ImageLoader il; private LayoutInflater mInflater; private…
-
0
votes0
answers699
views -
0
votes0
answers38
viewsQ: Problem to register User by android accent error
To sending the data by URL to my webservice if I put the path by the example web browser in Chrome: meuwebservice/inserirusu/á already by android he has this exit meuwebservice/inserirusu/%C3%A1 My…
-
1
votes1
answer647
viewsQ: Asynctask finish running
I wonder how I could pause, cancel this function as soon as I close the Activity that is running. private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> { ImageView bmImage;…
-
1
votes1
answer494
viewsQ: Display an Image via URL
I have an image on the link http://187.45.142.241:8080/umamaoNovo/images/u184Tulips.jpg I wonder if it takes any function to display quick post need to display images in a Listview.…
-
0
votes0
answers205
viewsQ: Problem with FTP connection
By browser I can connect and browse on my FTP server already by Android error and have the following code. public class MyActivity extends Activity { Spinner SpnListarArquivosFTP;…
-
0
votes1
answer1008
viewsQ: Error when inserting data accentuated
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and call a method to display shows so: Nome: João…
-
0
votes1
answer237
viewsQ: Error while using Dateformat.Parse
I take the date and call the changeFormatDataTra private void makeJsonObjReq(){ showProgressDialog(); int id = ((AppController) this.getApplication()).getID(); JsonObjectRequest jsonObjReq = new…
-
2
votes1
answer106
viewsQ: Sorting an Array
I have my class ItemList public class ItemListPropaganda { private int iconeRid; private String texto; private int valor; public ItemListPropaganda(String texto, int iconeRid, int valor) {…
-
3
votes2
answers5118
viewsQ: Upload android images to Server folder
How can I upload an android image to a folder on the server? I have the address of the folder that I can use to save image, I am already using this address to be able to grab the images but now I…
-
2
votes2
answers694
viewsQ: How to pick a phrase value in String
example have a return this way from Webservice "Success! Saved user. Id: 257" all right I’m picking up the phrase as : Success! Saved user. Id: 257 need only take the number or is to take the 257…
-
3
votes1
answer388
viewsQ: Problem with android conversion
I have a date that’s being returned from a Webservice like this: Sep 22, 2014 12:00:00 AM I would like to convert it to the following format? 22/09/2014 I tried some methods using the Date Android…
-
0
votes1
answer77
viewsQ: Doubt/Problem With Webservice on Android
The return on my Webservice is like this: "Hello! I’m not interested in your service. My name is Administrator B. Please contact me at (s) phone(s) (12) 3456-7891; (13) 21321-3213. My email is…
-
1
votes1
answer1138
viewsQ: Spinner shows no selected item
I’m making a private List states = new Arraylist(); I am filling it correctly and displays the values in Spinner more when I select it changes the size as if it had selected but no longer displays…
-
1
votes1
answer822
viewsA: "FATAL EXCEPTION: main java.lang.Nullpointerexception" error on android
I needed to declare this on Androidmanifest.xml <application android:name="com.example.guilherme.vendows.AppController" ---> faltava isso agora funciona perfeitamente…
-
0
votes1
answer822
viewsQ: "FATAL EXCEPTION: main java.lang.Nullpointerexception" error on android
My code is so private void makeJsonArryReq() { showProgressDialog(); JsonArrayRequest req = new JsonArrayRequest(Const.URL_JSON_ARRAY, new Response.Listener<JSONArray>() { @Override public…
-
1
votes1
answer78
viewsA: Deserialize Json
I managed to solve, I do not know if it is the best practice more this returning me what I need. private void makeJsonObjReq(){ showProgressDialog(); JsonObjectRequest jsonObjReq = new…
-
0
votes1
answer78
viewsQ: Deserialize Json
How can I deserialize this json? I am learning now communication with web service and I have arisen this doubt, I managed to get the return of web service follows my code: private void…
-
1
votes1
answer71
viewsQ: Leave pictures rounded android
I wonder if there was a way I could make my app images round like these and wonder if that would be feasible, good practice…
-
1
votes2
answers1484
viewsQ: How to return Latitude and longitude on Android Google-Maps
I would like to know how I can return latitude and longitude from an address provided by the User. Example "Av. Sampaio Vidal,Centro, Marília, SP" Answer coordenadas -22.225985,-49.94656…
-
0
votes1
answer2637
viewsQ: Validate Date entered by Edittext
I have an Edittext with Mask to input a date. How can I validate whether or not the date exists? Code of my Edittext NascimentoUsu = (EditText)findViewById(R.id.edtdata_usu);…
-
1
votes1
answer472
viewsQ: Android using Netbeans webservice
I would like some information, examples or tutorials how to research and study to be able to develop this project. I have ready already database and some components of the web service would like to…
-
0
votes1
answer136
viewsQ: Delete an element from my Listview
I need to delete an element of my Listview and I’m in trouble my code is this Host = new String[] { "Host1 ", "Host2", "Host3"}; Descricao = new String[] { "Estado do Host", "Estado do Host", "Host"…
-
1
votes2
answers208
viewsQ: Using Dialog in a Fragment
I implemented the Dialog method but is giving error and I am not able to solve, I would like a help follows my class public class Iniciar_Host extends Fragment implements…
-
1
votes1
answer923
viewsQ: Click and hold on Listview
As I program to click and hold down call a method other than just a normal click in Listview? I would like tips, tutorials something that can help me. @Override public void…
-
5
votes2
answers1997
views -
2
votes1
answer2236
viewsQ: How to leave my app open waiting for the server to send information
I’m creating a client app that once it changes the status of some component on the server the server will send to the client so that the user can view it. I need the app to be open by receiving…
-
3
votes1
answer1341
viewsQ: Menu Navigation Drawer with Expandablelistview
I’m looking for how to build a standard Navigationdrawer menu with Expandablelistview, but only find example and explanations of how to assemble with Listview, I would like some hint, tutorial or…
-
-1
votes1
answer219
viewsQ: Error Compile 'com.android.support:support-v7:19.+ '
I made the update today android this giving the following errors Error:com.android.support:support-v4:19.+ <a href="searchInBuildFiles">Search in build.gradle files</a> Then I double…
-
1
votes3
answers140
viewsQ: Menu as of facebook
I’m wanting to create a menu like the image (similar to the facebook) below someone would know how to develop? how should I look, sample tutorials. Thanks!…
-
2
votes0
answers156
viewsQ: Drag and Drop similar to the android shortcut screen
I’m using Android 4.0 to develop, I need to develop a drag and drop in my app and I will like to do as the shortcuts screen, a table 4x4 on the screen. With this the elements will have 16 defined…
-
0
votes1
answer447
viewsQ: Action Bar with fixed tabs menu
I have a question about creating a fixed navigation menu like this How to get Pagertabstrip fixed as image? The code I have for use is this <RelativeLayout…
-
5
votes2
answers6687
viewsQ: How to Save Path of a Photo Taken from Camera on Phone in Path or String
I need to take the path that was saved the image and save it so that whenever I launch the app appears the image in an Imageview. my code is this public void onClickCamera(View v){ Intent…