skip to Main Content

Android Studio – Android 11 not fetching path for file

I have been working to fetch file path from storage till now, For example file path is /storage/emulated/0/Download/NTL_ANDRODI_DOGMA_SYSTEMS_SRL_A_SOCIO_UNICO_TEST NEW.afgclic After android 11 it's unable to fetch FilePath. After giving permission uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" It's allowing for Android 11 also, but app…

VIEW QUESTION

Android Studio – error ArrayIndexOutOfBoundsException occurs only sometimes, user permission?

Some users in my app get this error: Caused by: java.lang.ArrayIndexOutOfBoundsException: at com.file.gt.MainActivity.onRequestPermissionsResult (MainActivity.java:234) at android.app.Activity.requestPermissions (Activity.java:5323) at com.file.gt.MainActivity.onCreate (MainActivity.java:85) at android.app.Activity.performCreate (Activity.java:8114) at android.app.Activity.performCreate (Activity.java:8098) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3480) It occurs only sometimes, with some users. I…

VIEW QUESTION

Android Studio – Displaying "Happy birthday null" in the second activity of my app

Main Activity `public class MainActivity extends AppCompatActivity { private Object Context; public static final String MSG="com.mp.exampleapp.ORDER"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void createBirthdayCard(View view) { EditText text = (EditText)findViewById(R.id.nameInput); String str = text.getText().toString(); Toast.makeText(this, "Button…

VIEW QUESTION
Back To Top
Search