Posts by Elcio Arthur Cardoso • 96 points
2 posts
-
2
votes3
answers5189
viewsA: How to pass editText value to attribute to int type on Android?
You will have to use the method Integer.Parseint() as follows: try{ objEquipamento.setMarcaModelo(Integer.ParseInt(edtMarcaModelo.getText().toString())); } catch (NumberFormatException e) { //erro…
-
1
votes3
answers1091
viewsA: Is it possible to attach an Android res/drawable file to an email using Javamail?
You should read the file the way the @ramaral spoke: Resources resources= getResources(); Bitmap bitMap = BitmapFactory.decodeResource(resources, R.drawable.image); but instead of recording to the…