Posts by Luccas Melo • 246 points
10 posts
-
1
votes1
answer720
viewsA: How to consume Json on Android?
Hello, Use lib Ion(REST) that provides a Jsonobject and you can make POST, GET, PUT and etc requests. First add dependency to the app dependencies { compile 'com.koushikdutta.ion:ion:2.+' } To read…
-
1
votes1
answer34
viewsA: How to place selection area (mobile) to photo taken
Hello, You can use these lib to facilitate the process https://android-arsenal.com/details/1/3182, https://android-arsenal.com/details/1/2791 or you can do it using bitmap Bitmap Bmp =…
androidanswered Luccas Melo 246 -
3
votes2
answers151
viewsA: How to read sdcard CSV file?
Hello, Simply create a File type and then pass it to Fileinputstream In this way: File path = Environment.getExternalStorageDirectory(); File file = new File(path, "path/clientes.cvs");…
-
1
votes1
answer44
viewsA: Is there any way to disable a view without leaving it gray?
Hello, Create a custom xml for this view and change the color when it is disabled and then call on background="@drawable/seu_xml Create an xml in the drawable folder <?xml version="1.0"…
androidanswered Luccas Melo 246 -
2
votes1
answer689
viewsA: What to do so the service is not finished by Android?
Hello, Try to do it this way. Add onStartCommand to your Service: @Override public int onStartCommand(Intent intent, int flags, int startId) { } Within this method set the flag that will be…
-
3
votes2
answers94
viewsA: Calculations using Textchangedlistener
Hello, First of all implement Textwatcher and Onclicklistener: public class ViveirosBarragem extends Activity implements TextWatcher, View.OnClickListener { After that:…
androidanswered Luccas Melo 246 -
3
votes1
answer284
viewsA: How to center an imageView on the screen via code?
Hello, This will depend on the type of layout you’re using.But try using this one: LinearLayout.LayoutParams mLayoutParams=new LinearLayout.LayoutParams(width, height);…
-
1
votes1
answer1106
viewsA: Send form data to a modal window
Hello, Creating the model with the elements you want to display, each form item just create an ID for each and create a JS function on the "submit" button that would assign the value of each form…
-
1
votes1
answer232
viewsA: Take the name of an item within an array in strings.xml
Hello, A solution to your problem would be to create another array that has color names in its values. As in the Example <array name="Codes"> <item name="Vermelho">e74c3c</item>…
-
1
votes1
answer469
viewsA: How to take dice from a Fragment and play in an Activity?
One of the ways to pass data between activities is by creating interfaces and implementing, or via Intent that makes more sense in your case. Create a class that will be your converter public class…