Category : methods

im struggling when using the method to force stop another running application in my app. I already see another thread in StackOverflow that my app need signed apk to run the force stop method. However, i already build and run in my android but it still says like below: Caused by: java.lang.SecurityException: Permission Denial: forceStopPackage() ..

Read more

Please help, I dont really know how this happened, my app was working fine, then an update from Android Studio and a dependencie and this happened, I have tried putting everything as it was, but still nothing, please help.enter image description here public Double alltotalprice=0.00; //need to access inn adpater so thy are public public ..

Read more

When using Proguard some methods bodies are replaced by this: public void someMethod(int paramInt1, int paramInt2, boolean paramBoolean, String paramString){ // Byte code: // 0: aload_1 // 1: invokeinterface getItemId : ()I // 6: istore_2 // 7: iload_2 // 8: ldc_w 2131296320 // 11: if_icmpne -> 31 // 14: aload_0 // 15: new android/content/Intent // ..

Read more

I need to call a fragment method in the activity…. FirstFragment.kt class FirstFragment: Fragment() { fun getToast(context: Context) { return Toast.makeText(context, "hello", Toast.LENGTH_SHORT).show() } } MainActivity.kt class MainActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val transaction = supportFragmentManager.beginTransaction() transaction.replace(R.id.fragment_container, FirstFragment, FistFragmentTAG_NAME) transaction.commit() //expecting to use fragment method… parameter.getToast() //parameter is the code neede ..

Read more