Posts by Jader Alcantara • 319 points
15 posts
-
1
votes1
answer710
viewsA: Send HTML e-mail with Android formatting (style inline)
Just use the Intent.EXTRA_HTML_TEXT parameter i.sendIntent.setType(“text/html”); i.putExtra(Intent.EXTRA_HTML_TEXT, Html.fromHtml("<h1>Sou um H1</h1><p>Eu sou um…
-
1
votes1
answer484
viewsA: Changing the text of a Textview that is inside an Arrayadapter entry
It is not recommended to save the View created in Listview, you have no way to guarantee that this view has been destroyed. If it is a text list, you create a String list and when you want to change…
-
1
votes1
answer386
viewsA: Android: How to open PDF without using the internet?
Android has no support for PDF format, so it is necessary to use external libraries. A widely used is the Androidpdfviewer. Below follows the step by step to use it 1) Add Pdfviewer.jar into your…
-
2
votes1
answer72
viewsA: Screen guidance on android
Try to put it like this: activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); getSupportActionBar(). Hide(); getWindow().…
androidanswered Jader Alcantara 319 -
2
votes1
answer468
viewsA: Android Listview equal to Instagram
You will need a Adapter to manage Listview content. Example: Create Adapter. I suggest you read the documentation to better understand the responsibility of each method. public class SeuAdapter…
-
2
votes1
answer248
viewsA: Adding values to the Hashmap <Integer, List<Integer>> and fetching them through the key?
Follow the logic: Below is the method to fill in with product id and the calculation. Map<integer, List<Integer>> mapProdutoCalculo= new HashMap<integer, List<Integer>>();…
-
0
votes2
answers66
viewsA: Using a map to store 1 ID for N values?
Follow the logic to manage the map, to fetch the value just use the get by passing the id. Any questions about the code just ask. Map<integer, List<Integer>> map = new…
-
1
votes2
answers564
viewsA: Android Studio, file loss . jks
Unfortunately you can no longer update the application. I suggest next time put the Keystore in some version control. Warning: Keep your Keystore and private key in a safe and Secure place, and…
-
3
votes2
answers538
viewsA: How to Generate Drawable Images for Android from Photoshop
Use the plugin Cutandsliceme for Photoshop. Easy, fast and practical. It generates for all densities.
-
0
votes1
answer772
viewsA: My app in android studio is closing, while consuming webservice
For requests I suggest using the Retrofit or Volley, currently the fastest is Retrofit, but Volley is easier.…
-
0
votes3
answers917
viewsA: Formatting String with Dateformat using a Timezone is not working
You can use the class Calendar as follows: public String formatDate(long date, String timeZone) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(date); DateFormat f =…
-
2
votes2
answers3969
viewsA: My App does not appear on Google Play on tablets
Try adding the other screen densities: <!-- large screens --> <screen android:screenDensity="xxhdpi" android:screenSize="large" /> <!-- xlarge screens --> <screen…
-
0
votes1
answer69
viewsA: How to run a notification when setting off the alarm?
You can try this way: In onReceive you trigger the notification. NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context) .setSmallIcon(R.drawable.icone)…
androidanswered Jader Alcantara 319 -
2
votes1
answer740
viewsA: Call requires API level 21 (Current min is 10)" when using getDrawable()
Your application is with the configuration for Android since 2.3.3. For this there are two alternatives: 1) Modify in Gradle the minimum API to 21, attribute minSdkVersion defaultConfig {…
androidanswered Jader Alcantara 319 -
1
votes1
answer596
viewsA: Android orientation (PORTRAIT/LANDSCAPE) addTextChangedListener
When there is a change of direction the Textwatcher is running, since the text was probably filled and when it rotates it is no longer running. If you observe is trying to take an empty string and…