en
Feedback
⏤͟͞Aantik Mods

⏤͟͞Aantik Mods

Open in Telegram

🚩 Channel was restricted by Telegram

Show more
No data
Subscribers
+424 hours
+247 days
+8430 days
Posts Archive
Repost from apkinsight
To create a dialog using JNI in C++, you need to call Java-based UI classes and methods through JNI, as Android UI runs on Java or Kotlin threads. This code demonstrates how to use JNI in C++ to create and customize an Android AlertDialog by calling Java methods (like AlertDialog.Builder, setTitle(), setMessage(), etc.) to dynamically construct and display the dialog with custom properties such as title, message, and buttons. You can use the JNI_OnLoad function to load a native library using System.loadLibrary. When this is done, you'll be able to see the AlertDialog in your Android app. However, to make this work, you need to retrieve the Context from Java. For instance, you might use a variable like: private Context antik; You can then rerun the JNI call to display the dialog. It's important to note that dialogs require a Context to be shown, while a Toast can be displayed without one because you can retrieve the Application Context from ActivityThread. In short, while AlertDialog needs a Context to show, Toast can work without it. Example My C++ Code
jclass alertDialogClass = env->FindClass("android/app/AlertDialog$Builder"); jmethodID constructor = env->GetMethodID(alertDialogClass, "<init>", "(Landroid/content/Context;)V"); jobject alertDialogBuilder = env->NewObject(alertDialogClass, constructor, instance); jmethodID setTitleMethod = env->GetMethodID(alertDialogClass, "setTitle", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;"); jstring title = env->NewStringUTF("Antik Test Project"); env->CallObjectMethod(alertDialogBuilder, setTitleMethod, title); jmethodID setMessageMethod = env->GetMethodID(alertDialogClass, "setMessage", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;"); jstring message = env->NewStringUTF("JNI Dialog"); env->CallObjectMethod(alertDialogBuilder, setMessageMethod, message); jmethodID setPositiveButtonMethod = env->GetMethodID(alertDialogClass, "setPositiveButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;"); jstring positiveButtonText = env->NewStringUTF("JOIN TG"); env->CallObjectMethod(alertDialogBuilder, setPositiveButtonMethod, positiveButtonText, nullptr); jclass alertDialogClassFinal = env->FindClass("android/app/AlertDialog"); jmethodID createMethod = env->GetMethodID(alertDialogClass, "create", "()Landroid/app/AlertDialog;"); jobject alertDialog = env->CallObjectMethod(alertDialogBuilder, createMethod); jmethodID showMethod = env->GetMethodID(alertDialogClassFinal, "show", "()V"); env->CallVoidMethod(alertDialog, showMethod); env->DeleteLocalRef(title); env->DeleteLocalRef(message); env->DeleteLocalRef(positiveButtonText); env->DeleteLocalRef(alertDialogClass); env->DeleteLocalRef(alertDialogBuilder); env->DeleteLocalRef(alertDialogClassFinal); env->DeleteLocalRef(alertDialog);
POST BY - @aantik_mods C++ Base Dialog Make I'm Just Learning Dex2c logic 😐 calling Java methods with classes constructor Jni Native java Interfere

photo content
+1

Vai Ay Keya Huya Game Ka Ma chod Geya

🤣

৪টা ব্যান্ড ৩টা কালকে ১টা আজকে
+3
৪টা ব্যান্ড ৩টা কালকে ১টা আজকে

sticker.webp0.31 KB

Repost from apkinsight
Android IDE NDK BUILD Android.mk
APP_STL := c++_static
Application.mk
APP_STL := c++_static APP_ABI := arm64-v8a APP_PLATFORM := android-19
build.gradle
plugins { id 'com.android.application' } android { namespace 'com.ax.hellojni' compileSdk 33 defaultConfig { applicationId "com.ax.hellojni" minSdk 19 targetSdk 33 versionCode 1 versionName "1.0" vectorDrawables { useSupportLibrary true } ndk { abiFilters 'arm64-v8a' } } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } buildFeatures { viewBinding true } externalNativeBuild { ndkBuild { path file('src/main/jni/Android.mk') } } ndkVersion "24.0.8215888" } dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("com.google.android.material:material:1.9.0") }
NDK Install
wget https://raw.githubusercontent.com/arcans1998/ndk-r24-installer/main/ndk-install.sh && chmod +x ndk-install.sh && ./ndk-install.sh

𝐔𝐫𝐢𝐞𝐥 𝐗𝐢𝐭𝐞𝐫 𝐀𝐧𝐝𝐫𝐨𝐢𝐝 𝟏.𝟏𝟎𝟖.𝐗 [✔️] Apk cracked 😆 User: Random Pss:Random Setup Video https://t.me/deltanewuser/233 Paid File 🗃️ Share By ❤️Channel: https://t.me/PKteamdwnlhk2077 HACKER 😍 @gamerdelta

PAID uSER NEW update Done Enjoy 🤡👉👌

photo content

photo content

photo content

photo content

Mother fucker garena banned my main account without any reason 😭
Mother fucker garena banned my main account without any reason 😭

photo content
+2

Repost from ZEGOXRY OFFICIAL
LEARN SOMETHING DIFFRENT WITH US
HOW TO USE https://youtu.be/7H-M6BzTUBI https://youtu.be/7H-M6BzTUBI
JOIN HEAR FOR MORE 👉 @Zegoxry_official