Your code is a bit confusing and unclear. Please indicate the purpose. Anyway, some things that I see:
1. Do not use getApplicationContext (), Activity is the context itself, so itβs better to use:
new Intent (this, landingPage.class);
2- You do not need to create a bundle to add a string to an intent.
viewIntent.addExtra("ApplicationName", a_Bean.getApplicationName ());
Anyway, skipping your steps, the application name seems like a terrible idea to me. If you really need the application name in all actions, create the application class as the center point of the application. I really recommend you return to your architecture.
3- Are you sure you want to access the step upon arrival from your father? I assume that an instance of landPage is being created somewhere. I think this is a terrible approach. If I am mistaken, please provide examples.
As for the rest of the code and your exact question, I canβt answer it, I didnβt work with the Progress dialog boxes, but we donβt even know what the βbpβ variable is, and as I said, you should try asking your question, specifying some points.
source share