This video shows the steps to create your own custom Piano Androind App using the SoundPool API in Android Studio. It uses a very simple layout of 7 buttons which it associates to the 7 notes of music from ‘a’ to ‘g’ using the soundID from the SoundPool.load() method. In…
Tag: apps
How to add watermark in your PDF file from your Android App?
In this video it shows the steps to add the watermark in your PDF file. It uses PdfStamper object to put the watermark (stamp) as an over content on your PDF pages. In this video it re-uses the create PDF method code from our below page: It further develops the…
How to get telecom carrier name of any sim slot in your Android App?
This video shows the steps to get the carrier name of the telephone service provider for any sims. It uses the SubscriptionManager to get the active subscriptions. From the SubscriptionManager object it extracts subscriptionInfos for the interested sim slot. It then uses the getCarrierName method to get the carrier name…
How to customize long press app icon item list (ShortcutManager menu dialog) for your Android App?
In this video it shows how one can customize the long press menu item list for the Android App. When a user presses the icon of any App, Android shows up some of the options. This list of options is called shortcut info list and the dialog is shortcut manager….
How to create and read a PDF file in your Android 11 App?
This video shows the steps to create and read a PDF file in an Android 11 App. It uses iTextpdf library for reading the PDF file and PdfDocument API from android.graphics.pdf to create the PDF file. It creates and reads from the same PDF file but the concept shown in…
How to get current Date and Time in your Android App?
This video shows a simple API to access the current data and time from the phone in your Android App. It uses Calendar.getInstance().getTime() API to fetch the current date from the Phone. In this tutorial it uses a TextView widget to display the complete string of the Current Date variable….
How to store image in MS SQL Server database and retrieve it from your Android App?
This page shows steps to create an Android App which connects to MS SQL Server Database. It uses the MSSQL database to store the images in bytes array format. The respective data type in database server is VARBINARY(MAX). It uses a couple of images saved in the emulator phone to…
How to create Microsoft Word Document (.docx) File from your Android App?
This video shows the steps to develop a method to create the Word Document File in your Android App. This uses the apache poi library for the same. It takes the content of the file as an input from the user from the EditText (Plain text) widget. It then creates…
How to select colors with the Palette API in your Android App?
This video shows the steps to implement the palette library (provided by Android) in your gradle file (App level gradle file). It further shows how one can easily use this API in the Java code to get certain colors from the Image considered in this video for demonstration. This video…
How to enable vibration or make your phone vibrate from your Android App?
This simple video shows the steps to enable the vibration in your phone. It uses VIBRATOR_SERVICE to make your phone vibrate. It creates required Vibration effect of 1000 milliseconds(1 second) duration which vibrates the phone for default vibration effect. The result of this App is difficult to show in the…