Posts by Furflez • 802 points
22 posts
-
15
votes4
answers1174
viewsA: How do I share a Java project with a team?
For teamwork and even alone it is interesting to use a tool for control and versioning even to maintain a backup of your code. In the answers to that question, you can understand a little better…
-
2
votes2
answers106
viewsA: Error importing csv files from FTP to the application
This is because you are trying to change your spinner from within the thread in your method ImportItens(), consider using Asynctask for this, in the method onPostExecute() you can change your…
-
3
votes1
answer222
viewsA: How to remove string saved in sharedPrefererences?
It’s very simple, you will use SharedPreferences.Editor editor = preferences.edit(); editor.remove("chave"); editor.commit(); and that’s it, but in case you want to remove everything too:…
-
1
votes1
answer60
viewsA: Remove title space in Alertdialog
Just add before the dialog.setContentView(R.layout.seulayout) and right after instantiating your dialog, the following line: dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);…
-
7
votes3
answers330
viewsA: Doubt game two players, half screen upside down
I suggest using that custom layout: Rotate Layout Its use according to the creator is quite simple, just arrange in your gradle the repository: repositories { jcenter() } and the dependency:…
-
1
votes1
answer561
viewsA: Read txt file whenever there are changes
I did a quick search and found this library that might be useful for what you need: Jnotify EDIT: I was interested in being something that I could use in the future both pure java and…
-
0
votes1
answer50
viewsA: Error in android studio after update
I searched once for the same mistake and found this solution in a forum: Go to the installation folder of androidStudio example: c:\user\seuusuario\.AndroidStudioX.X Renames the .AndroidStudio.X.X…
-
2
votes1
answer93
viewsA: Navigation Drawer with duplicity
Good morning! All right? There are 2 errors in your code, let’s see the first: You have in your main screen layout, a Navigationview that you gave the id nav_view then note the following, in it you…
-
1
votes2
answers1454
viewsA: Calling a new Activity through a Fragment
I usually make the call the following way: getActivity.startActivity(intent); that there will make this call by Activity who has your Fragment...
-
0
votes1
answer172
viewsA: How to remove Datepickerdialog days?
It is possible, I found a custom method once it removes the day, but I do not know how it behaves with the most current versions of DatePicker of the new versions of android. private…
-
0
votes2
answers872
viewsA: How to leave a Alertdialog with rounded edges?
I believe that changing the theme can help you, only you will need to manually configure some size information of your alertDialog, arrange a layout to be the basis in your xml, and inside it…
-
1
votes2
answers456
viewsQ: Open Progress bank
Good afternoon, I need to open a client’s Progress database to make an import and I’m not getting it. I need some help to know some way to work with this bank, whether by code or applications. these…
-
5
votes2
answers6687
viewsA: How to Save Path of a Photo Taken from Camera on Phone in Path or String
Once I went through the same obstacle, searching a little I found a code on Soen that solved my problem and I believe it solves yours too: protected void onActivityResult(int requestCode, int…
-
2
votes3
answers1740
viewsA: How to put caption in an Imageview
One way to do it is to put the image as background of a layout and within this layout a textView. It would look like this: <LinearLayout android:layout_width="match_parent"…
-
3
votes2
answers4938
viewsA: Point function in calculator (broken numbers)
About import has a booklet from Caelum that deals with it: It is possible to "import an entire package" (all classes of the package except subpacks) via the joker *: import java.util.*; Importing…
-
1
votes3
answers298
viewsA: Screenorientation
Experiment with android:configChanges="orientation"
-
1
votes2
answers3645
views -
4
votes3
answers3755
viewsA: "Program scope not closed properly." in pseudocode
There is an end to before the last write
-
1
votes2
answers410
viewsA: Unknown Error: "null" when running an Httppost with Parameters
In my view your code is correct, but the codes I did I never put the port next to ip, try to remove the port you added the url and access only by ip and the /signup as follows: HttpPost post = new…
-
5
votes2
answers3604
viewsA: Passing parameters from one Activity to another
Good afternoon, maybe I was a little confused with your description, but I will try to answer for what I understood, to pass the information from one Activity to another just reuse the Bundle and go…
-
1
votes1
answer57
viewsA: No implementation found for int
I have solved something similar using the following line of code in combination with a thread that made a delay of about 5 seconds: System.loadLibrary("SuaLibAqui"); but that same code gave me the…
-
3
votes1
answer683
viewsQ: Get cookies from an Httpclient login on android
I do a post with android and Httpclient on a page, but I need to know a way to get cookies from that connection. this is the code I use to make the post public static void postData(Activity…