App Open Ad Admob Beta Implementation and Integrating in Kotlin

Edwar Ramadhan 1:53:00 AM Add Comment
Hello Guys, Google has launched new ad type for its Mobile Ads Admob. It's called App Open Ads. It's might be limited for some developers because still beta version. Lets try this ad and how it works. From Google developers guide site showed only in Java Code. Now, I have Convert it to Kotlin.

App Open Ad Admob Beta Implementation and Integrating in Kotlin
source : Google developer

What is App Open AD?

This is a new AD type that we can show to users when he minimises our app and comes back. An ad format that appears when users open or switches back to your app. Ad overlays the loading screen.

Let’s start to implement this Ad.

Step 1

Add the following dependency or update the version if you are implementing it in your old project. it should be 19.4.0 or Latest.

Step 2

Create MyApplication class and copy code below ! 

class MyApplication : Application () {

private lateinit var appOpenManager: AppOpenManager

override fun onCreate() {
MobileAds.initialize(this) {}
appOpenManager = AppOpenManager(this)


Step 3
Pass this application class to your manifest and also add your AdMob ad id in metadata as following.




Step 4 :
Create Class AppOpenManager and copy the code Below !

class AppOpenManager (private var myApplication: MyApplication) : LifecycleObserver,Application.ActivityLifecycleCallbacks {
companion object {
private const val LOG_TAG = "AppOpenManager"
private const val AD_UNIT_ID = "ca-app-pub-3940256099942544/3419835294"


private var appOpenAd: AppOpenAd? = null
private lateinit var loadCallback: AppOpenAd.AppOpenAdLoadCallback
private var currentActivity : Activity? = null
private var isShowingAd : Boolean = false
private var loadTime:Long = 0


fun onStart() {
Log.d(LOG_TAG, "onStart")

fun showAdIfAvailable() {
// Only show ad if there is not already an app open ad currently showing
// and an ad is available.
if (!isShowingAd && isAdAvailable())


Log.d(LOG_TAG, "Will show ad.")
val fullScreenContentCallback = object: FullScreenContentCallback() {
override fun onAdDismissedFullScreenContent() {
// Set the reference to null so isAdAvailable() returns false.
this@AppOpenManager.appOpenAd = null
isShowingAd = false
override fun onAdFailedToShowFullScreenContent(adError: AdError) {}
override fun onAdShowedFullScreenContent() {
isShowingAd = true
appOpenAd?.show(currentActivity, fullScreenContentCallback)
Log.d(LOG_TAG, "Can not show ad.")
/** Request an ad */
fun fetchAd() {
// We will implement this below.
if (isAdAvailable()) {
loadCallback = object:AppOpenAd.AppOpenAdLoadCallback() {
* Called when an app open ad has loaded.
* @param ad the loaded app open ad.
override fun onAppOpenAdLoaded(ad:AppOpenAd) {
this@AppOpenManager.appOpenAd = ad
this@AppOpenManager.loadTime = (Date()).getTime()
* Called when an app open ad has failed to load.
* @param loadAdError the error.
override fun onAppOpenAdFailedToLoad(loadAdError: LoadAdError) {
// Handle the error.


val request : AdRequest = getAdRequest()
myApplication, AD_UNIT_ID, request,


/** Creates and returns ad request. */
private fun getAdRequest():AdRequest {
return AdRequest.Builder().build()


/** Utility method that checks if ad exists and can be shown. */
fun isAdAvailable():Boolean {
return appOpenAd != null && wasLoadTimeLessThanNHoursAgo(4)


/** Utility method to check if ad was loaded more than n hours ago. */
private fun wasLoadTimeLessThanNHoursAgo(numHours:Long):Boolean {
val dateDifference = (Date()).time - this.loadTime
val numMilliSecondsPerHour:Long = 3600000
return (dateDifference < (numMilliSecondsPerHour * numHours))


override fun onActivityPaused(activity: Activity) {


override fun onActivityStarted(activity: Activity) {

currentActivity = activity

override fun onActivityDestroyed(activity: Activity) {
currentActivity = null

override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {

override fun onActivityStopped(activity: Activity) {


override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {


override fun onActivityResumed(activity: Activity) {

currentActivity = activity
In the above code replace AD_UNIT_ID with your Admob AD id.

Step 5

Now in the above class, you will get an error ProcessLifecycleOwner not able to resolve. 
To solve that we need to implement the following dependencies.

def lifecycle_version = "2.0.0"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version" 
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"

All done.
Now we will run our app and see how it looks. To test it minimize your app and open it again.

If you are getting any error try to replace your AD id with test ad id. Because AdMob takes some time to serve ads on new ads ids.Hope you enjoyed the blog. 

Here is the sample source code for the implementation of Admob Open Ad.

IDM Cannot Download From Google Drive Fix 100 %

Edwar Ramadhan 12:58:00 AM 1 Comment
Has anyone failed to download files from Google Drive using IDM? I also experienced this some time ago. After I browsed here and there, I finally found a solution.

IDM Cannot Download From Google Drive Fix 100 %

IDM stands for Internet Download manager which I think is the best downloader software that I use often. because this software can separate files into several parts and download them simultaneously.

Returning to the problem at the beginning, I will share how to download files from Google Drive using IDM software.

I have made a video tutorial on "how to solve not being able to download files from Google Drive using Internet Download Manager" below to make it clearer.

11 Interesting Facts about Giannis Antetokounmpo, 2019 NBA Best Player

Edwar Ramadhan 12:43:00 AM Add Comment
11 Interesting Facts about Giannis Antetokounmpo, 2019 NBA Best Player

Giannis Antetokounmpo was named the MVP or best player for the 2018/19 NBA season. The Milwaukee Bucks star was able to perform beautifully throughout the season with his team, despite failing to give the title.

The 24-year-old power forward managed to beat his rivals, namely James Harden of the Houston Rockets and Oklahoma City Thunders star Paul George.

Here are some interesting facts about the 211 centimeter player:

1. Giannis Antetokounmpo comes from Greece. He was born on December 6, 1994 in the City of Athens.

2. As a child, Antetokounmpo preferred to play soccer. Reported by Milwaukeerecord, he idolizes the Danish footballer, Simon Bloch Jorgensen. But he then turned to basketball. He played for the Greek basketball team Filathtilikos, among others, until he was signed by the Milwaukee Bucks in the 2013/14 season.

3. As a child Giannis became the backbone of his family. He sells watches, bags, sunglasses, and some of his favorite toys to keep the family economy alive.

4. Still on motivation, Giannis Antetokounmpo reportedly receives calls and messages containing harsh criticism and inappropriate comments. He made him a motivational whip.

5. It may sound strange and absurd to us. He just tasted the modern drink, smoothie (a juice drink filled with fruit that is blended until thick and mixed with milk) in 2014 or to be precise when he entered a professional career in basketball.

6. Giannis's hand reaches 12 inches or reaches approximately 30 centimeters, which means that it is almost 3 inches longer than the hands of the LA Lakers superstar, LeBron James.

7. Giannis and his older brother, Thanasis Antetokounmpo, served in the military for several days in July 2016.

8. Giannis Antetokounmpo is the second of four children. He has an older brother, Thanasis, and two younger siblings, Kostas and Alexis, who both play basketball.

9. In the 2018/19 season, Giannis was able to triple-double 5 times. A record that is certainly extraordinary for the player in his position, but certainly not many know if he did it for the first time in 2016. This happened on February 22, 2016 when his team beat the LA Lakers with a score of 108-101, where he scored 27 points, 12 rebounds and 11 assists.

10. On January 19, 2018, Giannis was able to register his name on the Eastern Conference NBA All-Star team and immediately became a starter.

11. Giannis Antetokoumpo admits that he wants to be loyal to the Bucks, even though he has received many offers from big teams, such as the LA Lakers, Houston Rockets, San Antonio Spurs, Golden State Warriors, Miami Heat.

This Feature Can Prevent Theft of Personal Data on Smartphones

Edwar Ramadhan 12:33:00 AM Add Comment
This Feature Can Prevent Theft of Personal Data on Smartphones

Not only as a means of communication, smartphones also offer a variety of other uses for consumers, such as tools for doing work, entertainment devices, recording devices, to personal assistants. Even today, smartphones are often used as digital wallets. When the smartphone function becomes a tool for digital transactions, it needs to be balanced with a qualified security system. This is to prevent theft of data and confidential information belonging to users.

Personal data on smartphones has the potential to be digitally stolen through various cyber attack techniques such as phishing, malware, or malicious applications or even conventional techniques such as smartphone spying or peeking at the screen. Various information contained there such as personal data, money in the application, or contact lists can be easily shared or misused by cyber criminals. This is OPPO's concern to protect the privacy and data of smartphone users.

To provide better privacy, OPPO introduced the Smart Spying Prevention technology at OPPO Reno4. This technology will hide the contents of the notification when someone else looks at the smartphone screen that is being opened by the user. To enable the Smart Spying Prevention feature, users need to register a face first so that the smartphone camera recognizes it as the legitimate owner of the cellphone. After this feature is active, users do not need to worry about the possibility that the contents of application notifications on smartphones can be tipped off by other people while on public transportation.

When users install new applications, sometimes they are not aware that some applications require approval to access sensitive things on smartphones such as contacts, cameras to take photos, and location. Even some applications require access to more personal data which are often ignored by users who voluntarily give access permission to be able to retrieve their personal data.

On OPPO Reno4 devices, users don't need to worry about this bad possibility because of the Personal Information Protection feature. When this feature is activated, the system will automatically determine several malicious applications that try to read personal information and provide information in the form of blank data to avoid data leakage. Users can activate this feature by going to the option [Settings]> [Privacy]> [Personal Information Protection]> switch to [Smart Protection] to activate. When it is active, the system will automatically protect Call History, Contacts, Messages, and User Activities.

In connection with digital payments that are increasingly plural, OPPO also provides data protection options in the form of Payment Protection. This feature will perform an automatic scan of the payment application and protect it from data breaches. Still related to digital payments, OPPO also provides a Secure Keyboard feature. In this feature, the device will automatically change the default keyboard to OPPO Secure keyboard when the user needs to enter sensitive information. OPPO Secure keyboard will not record information entered by the user such as passwords, connecting to the internet network or the autocomplete feature.

Tips for Recording Professional Videos with Samsung Galaxy Note 20 and Galaxy Note 20 Ultra

Edwar Ramadhan 12:20:00 AM Add Comment

Tips for Recording Professional Videos with Samsung Galaxy Note 20 and Galaxy Note 20 Ultra

Armed with 8K quality recording features to Pro Video mode, making videos at the level of professional creations is easy thanks to the Samsung Galaxy Note 20 and Note 20 Ultra. Yes, the camera to the microphone on the Samsung Galaxy Note 20 and Note 20 Ultra has been developed with a focus on improving video recording quality. This is the answer from Samsung in answering the needs of consumers who want to get more professional video results by relying on a smartphone.

Talking about video recording, there is one of the most significant improvements from the Samsung Galaxy Note 20 and Note 20 Ultra compared to previous generations, namely audio. The ability to capture audio is the most special feature in the Pro Video mode of the Samsung Galaxy Note 20 and Note 20 Ultra. Users can adjust the focus on the direction of the sound to create their own effects from the resulting video. There are three audio capture options that can be selected by the user, namely Rear, Front, and Omni. This feature comes thanks to the three microphones owned by the Samsung Galaxy Note 20 and Note2 0 Ultra that surround the body of the smartphone.

Furthermore, users are also able to see the input level of the audio in real-time while recording. The user can immediately adjust the input level by increasing or decreasing the volume.

Apart from maximizing the audio input via the microphone, the Samsung Galaxy Note20 and Note20 Ultra also provide a better experience when capturing audio through the earbuds. Users can use the Galaxy Buds Live as a pin microphone with sound quality that is not inferior to the microphone embedded in the Samsung Galaxy Note20 and Note20 Ultra. The recorded voice will be heard very clearly even if speaking in the middle of noise or open environment. The Samsung Galaxy Note20 and Note20 Ultra have a camera feature that allows users, no matter who they are, to create videos like a pro. A Behind-the-Scenes Look at the Galaxy Note20's Pro-Grade Camera

Tips and Tricks for Creating the Best Videos

The Samsung Galaxy Note20 and Note20 Ultra have various features that allow any user to shoot videos like a professional film with simple settings. One of the features referred to is Controlling Zoom Speed. This feature allows users to adjust the zoom speed when recording video.

In addition, the Samsung Galaxy Note20 and Note20 Ultra offer various video recording options, ranging from recording at up to 8K quality and creating slow-motion videos of up to 24fps. Talking about slow-motion, users can make these videos by recording slow-motion videos from scratch or changing the speed from ordinary videos. Through the Speed ​​Control feature in the video editor section, users can highlight emotional feelings from standard speed video to slow-motion. The video results will also remain smooth even if the speed is set to 4x slower.

Not only that, for the first time, Samsung allows users to record video at 120fps with very smooth image quality, supported by a screen that has a refresh rate of 120Hz. When recording at 120fps, the cameras of the Samsung Galaxy Note20 and Note20 Ultra are able to take scenes smoothly even if the subject or object being recorded is moving very fast.

All the video recording capabilities of the Samsung Galaxy Note20 and Note20 Ultra are of course inseparable from the best camera specifications embedded in the Samsung Galaxy Note20 and Note20 Ultra. The Samsung Galaxy Note20 is equipped with three cameras, each 12MP wide angle lens, 64MP telephoto lens, and 12MP ultra wide lens. Meanwhile, the Samsung Galaxy Note20 Ultra has three cameras with 108MP wide angle lens specifications, 12MP ultra wide angle lens, and 12MP telescopic lens.

“Samsung always puts user experience first in the development of every product it has. In this case, every technology we present through the Samsung Galaxy Note 20 and Note20 Ultra is the fruit of the desire of users who increasingly use smartphones to record and share videos on the internet, such as social media, "said Taufiqul Furqan Mobile Product Manager of Samsung Electronics Indonesia.

Why is TikTok getting banned ?

Edwar Ramadhan 11:49:00 PM Add Comment
Why is TikTok getting banned

Chinese technology companies are again in the spotlight of the United States (US) government. After ZTE and Huawei, this time the US government is eyeing TikTok. US Secretary of State Mike Pompeo said the US government was considering blocking TikTok and other Chinese social media. 

The reason is no different from blocking Huawei, namely a threat to national security. The US government is concerned that social media like TikTok will share user data with the Chinese government. Reuters reported, Pompeo warned US residents who use TikTok. 

 "Unless you want personal information to be in the hands of the Chinese Communist Party," Pompeo said. TikTok representatives did not hold back on Pompeo's statement. TikTok claims the US government's allegations of user data security are false. 

"We never gave user data to the Chinese government, even though we were asked to provide it," explained a TikTok representative. This China-based subsidiary of ByteDance informed that the CEO of TikTok is an American citizen. Hundreds of employees and top brass in the security, protection, product, and public policy divisions, also filled by employees of US nationality.

 "We have no other priority besides promoting a safe experience for users," explained TikTok, summarized by Teknokia from The Verge, Wednesday (8/7/2020).  Previously, the Indian government blocked 59 Chinese-made apps, including TikTok and WeChat for the same reason. The Indian government claims that blocking dozens of applications can protect the privacy and data security of its citizens. However, TikTok expressed its defense. 

"TikTok will continue to comply with personal data protection and security regulations under Indian law, and not share our users' information in India with foreign governments, including the Chinese government," TikTok claims. China has also been known to be trying to get rid of the 'made in China' stamp. such as moving headquarters outside of China, and looking for US CEO figures.

Force LTE Only Enabled Lock 4G in Samsung Xiaomi Realme Oppo Vivo Nokia Huawei and All android Phones

Edwar Ramadhan 12:03:00 PM Add Comment
Hello guys, Now I will share tips on how to activate LTE Only Mode on an android device. including some well-known brands such as SAMSUNG Galaxy, Xiaomi, Realme, Oppo, Vivo and other android brands.

Force LTE Only Enabled Lock 4G in Samsung Xiaomi Realme Oppo Vivo Nokia and All android Phones

If you have a free package on a 4G or LTE network and your 3G network is paid. You can use this method.

As for if the signal coverage in your area is weak. so the network mode often switches to 3G or 2G. then we can lock LTE only permanently.

The method is very easy: 

1. Use SIM 1 as the default connection setting 

2. Download the Force 4G LTE only 2020 application via the Google Play store.

3. Run the application, press the SIM 1 only or Android testing button. You will enter two LTE Switcher options and also 2 Android testing options.

4. You can try all of them which support your phone.

Alternatively, if all button doesnot support your device ROM caused by new update lika Android 11 or old Android version please try Method 2 below : 

2. Run The Application. select SIM 1 Only - Hidden Activity - type "Radio Info" in Search Box - select the Activity that shown below for like RadioInfo
3. Select the LTE Only at set Preferred network type.
4 done
5. if you want to create shortcut to home screen : Long Tap the App and then select create shortcut and then ok. 

If the telecommunication operator you are using does not support VoLTE (Voice over LTE) and uses LTE Only Mode, so regular calls will be blocked.

English Version

bahasa Indonesia version

How To Fix Error Could Not Find Java Via CMD On Windows 10

Edwar Ramadhan 12:02:00 AM Add Comment
Have you ever encountered an error when using java via the command prompt as below:

Error opening registry key 'Software\JavaSoft\Java Runtime Environment.3'
Error: could not find Java.dll
Error: could not find Java 2 Runtime Environment 

A few days ago, I experienced this. I have tried reinstalling Java (JDK) and making updates. However, this does not affect at all.

Now, I have found a solution and I will share it with you. Follow the steps below. Remember! You don't need to update or reinstall JDK.

Please follow the instructions below:

1. Make sure to delete the ava.exe, javaw.exe and javaws.exe files from your Windows\System32 folder and if you have an x64 system (Win 7 64 bits) also do the same under Windows\ SysWOW64.

2. If you do not find the files above, especially on the Windows 10 Operating System. You must deleting them from C:\ProgramData\Oracle\ Java\javapath directory.

Good luck and hopefully work well. If there are questions, criticisms or suggestions. Feel free to write it in the comments column below this post.

OMG! Nokia 9 PureView with 5 ZEISS Lenses

Edwar Ramadhan 11:06:00 PM Add Comment
Finally, after rumors have been hotly discussed lately, HMD Global proved the rumor by officially announcing the Nokia 9 PureView today (Feb. 24) at the Mobile World Congress event in Barcelona, ​​Spain.

The announcement of the Nokia 9 Pureview also started the return of PureView technology that was once used in several Nokia Symbian and Windows Mobile phones and at the same time made this phone the first cellphone in the world to use 5 camera lenses at once in one cellphone.

5 Zeiss Lenses

Nokia 9 PureView is equipped with 5 Zeiss lenses on its back that can work together to produce 1 high-quality photo with a resolution of 60 to 240 megapixels. These five Zeiss lenses have a strength of 12 megapixels each, 2 color lenses and 3 other lenses to capture black and white. The result, with the combination of its five lenses, the resulting photo will have a very wide dynamic range and more detailed depth-of-field control from 7 cm to 40 M.

The ability of 3 black and white lenses will produce atmospheric black & white photos that are extraordinary for the size of a smartphone today. Then, with the Nokia 9 PureView, we don't need to choose focus before taking a photo, because the focus settings can be done well after the photo is taken. Because, using "depth mode", these 5 lenses will identify more than 1,200 layers that will produce photographs in great detail. This feature allows us to choose the focus after the photo was taken with the help of the Google Photos application.

All photography capabilities in the Nokia 9 PureView can be produced with good collaboration between HMD, Qualcomm and Light. Juho Sarvikas (Chief Product Officer of HMD) said that this is the first time a smartphone has fully optimized Qualcomm's resources from CPU, GPU, Digital Signal Processor (DSP), and ISP camera modules. Extraordinary!

On the side of supporting applications, the Nokia 9 PureView is equipped with the latest generation "Pro Camera" application that supports real-time photo management. If it's still lacking, 5 lenses on the Nokia 9 PureView can produce RAW Photos and can be modified with the help of the Adobe Lightroom application.
Other features

Not only a qualified camera side, but the Nokia 9 PureView also features many latest features. HMD still entrust Qualcomm Snapdragon 845 to its processor and is equipped with "image co-processor". Of course, to accommodate the ability of the camera, the Nokia 9 PureView is equipped with 6GB RAM and 128GB ROM for internal storage.

On the power side, the Nokia 9 PureView uses a battery of 3320mAH and already supports Qi wireless charging. On the screen, the Nokia 9 PureView uses PureDisplay technology for a large screen of 5.99 ". For screen protection, the Nokia 9 PureView also uses Corning® Gorilla® Glass 5. Oh yes, the Nokia 9 PureView is also the first Nokia Android phone to use the fingerprint sensor on the screen.

For those of you who like an adventure in the wild, don't worry because you can take the Nokia 9 PureView to swim because it has an IP67 rating for a resistance of 1 meter underwater for about 30 minutes and is resistant to dust.
And here are the full specifications of the Nokia 9 PureView :

Operating System  :Android Pie 

Processor : Qualcomm® Snapdragon ™ 845 Mobile Platform 

RAM  : 6GB 

Internal Memory  : 128GB 

External Memory  ; - 

Screen : PureDisplay 5.99 ”QHD + pOLED - corning® Gorilla® Glass 5 

Resolution : K HD 

Main Camera : 5 x 12 MP, f / 1.82 (2 x RBG, 3 x mono) 

Front camera : 20 MP, flash display 

Network : LTE Cat 16 4x4 MIMO 

Wifi : 802.11 a / b / g / n / ac 

NFC : Yes 

Bluetooth : Bluetooth® 5.0 


Audio : USB-C 

USB type : USB-C 3.1 

Battery : 3320 mAh - Qi Wireless Charging 

Sensor : In-screen fingerprint sensor, ALS / PS, G-sensor, E-compass, Gyro, Hall sensor, Barometer, Haptic vibrator 

Size : 155 x 75 x 8 mm 

Weight : 172 g 

Color : Midnight Blue