Toast Messages

Limper

Advance Member
468
09/25/14
199
Thread Author
I feel kind of foolish for asking this but it is a legit question lol I am aware of modding apks and have become decent at smali and such but I never learned how to add the pop up toast message to mark the apks with credits for the mod.

Anyone mind sharing the info?
I plan on whipping up some mods public and vip for AR soon once I'm done moving.
 
hi

use notepad++ and search
Code:
.method protected onCreate(Landroid/os/Bundle;)V

on smali folder and put this code below
Code:
.method protected onCreate(Landroid/os/Bundle;)V

Code:
    const/4 v0, 0x1

    const-string v1, "Mod By YOUR NAME"

    invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V
 
hi

use notepad++ and search
Code:
.method protected onCreate(Landroid/os/Bundle;)V

on smali folder and put this code below
Code:
.method protected onCreate(Landroid/os/Bundle;)V

Code:
    const/4 v0, 0x1

    const-string v1, "Mod By YOUR NAME"

    invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

Hi am trying to find out how to create colored toast msg like this image below for that am using this APK

upload_2018-3-6_6-3-8.webp


Please help me to find out where is the code for this in this apk I tried finding in com.king.candycrushsaga.CandyCrushSagaActivity folder but i can't succeed

@iAndroHackerDK
 
fyi colored toast is same as any other toasts, you use html coloring for the text.
search google on html font coloring - can't remember but it's fairly simple
 
Back
Top Bottom