- I am using
GNU/Linux - My IDE is
IntelliJ IDEA - The project is
Antbased. - My working directory is
$JNI - My C++ IDE is
QtCreator(I'll mention the build steps inline). - NDK should be installed and
ndk-buildshould be available in$PATH javahshould be available in$PATH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.nieldeokar.whatsappaudiorecorder.recorder; | |
| import android.media.AudioFormat; | |
| import android.media.AudioRecord; | |
| import android.media.MediaCodec; | |
| import android.media.MediaCodecInfo; | |
| import android.media.MediaFormat; | |
| import android.media.MediaRecorder; | |
| import android.os.Build; | |
| import android.util.Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import android.util.Log; | |
| import com.bumptech.glide.Glide; | |
| import com.bumptech.glide.Registry; | |
| import com.bumptech.glide.annotation.GlideModule; | |
| import com.bumptech.glide.module.AppGlideModule; | |
| import com.google.firebase.storage.StorageReference; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.joda.time.LocalDate | |
| /** | |
| * @return true if the supplied date is in the future else false | |
| */ | |
| fun isUpcoming(millis: Long): Boolean { | |
| return !isTomorrow(millis) && LocalDate(millis).isAfter(LocalDate.now()) | |
| } | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.gabesechan.android.reusable.receivers; | |
| import java.util.Date; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.telephony.TelephonyManager; | |
| public abstract class PhonecallReceiver extends BroadcastReceiver { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This layout will display its children with rounded corners | |
| // It works with Glide image library placeholders and animations | |
| // It assumes your background is a solid color. If you need the corners to be truly transparent, | |
| // this solution will not work for you. | |
| package com.myapp.ui; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This layout will display its children with rounded corners | |
| // It works with Glide image library placeholders and animations | |
| // It assumes your background is a solid color. If you need the corners to be truly transparent, | |
| // this solution will not work for you. | |
| package com.myapp.ui; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -optimizationpasses 5 | |
| -dontusemixedcaseclassnames | |
| -dontskipnonpubliclibraryclasses | |
| -dontskipnonpubliclibraryclassmembers | |
| -dontpreverify | |
| -verbose | |
| #your package path where your gson models are stored | |
| -keep class com.project.models.** { *; } |