I want to pass the "infor" string to the class entrar_antes_camera how can i do it? I tried using intent but i cant put the ManagingRequests class inside the intent along the entrar_antes_camera class
public class ManagingRequests
{
private void makeMaps()
{
this.mapped.put
(
"homeActions", //\MakeMaps.homeActions
new ManagingRequests.Callback()
{
public void callback(String callback, String[] proposed_data)
throws Exception
{
JSONObject jo = comply(proposed_data).getJSONObject(0);
switch( jo.getString("action") )
{
case "Notification": {
ManagingRequests.this.db.updateAlertas(jo.getString("codigo"));
}
break;
case "Register": {
info = entry_point.getSharedPreferences("info", MODE_PRIVATE);
if (info.contains("cc")) {
String infor = info.getString("cc", "");
Log.i("CC INFO", infor);
Intent intent = new Intent (ManagingRequests.this, entrar_antes_camera.class)
}else
ManagingRequests.this.initiateRegister();
}
break;
case "Mirror":
ManagingRequests.this.showSystemTab( Asset.TIMESHEET_SUFFIX_URL );
break;
case "Schedule":
ManagingRequests.this.showSystemTab( Asset.SCHEDULE_SUFFIX_URL );
break;
}
}
}
);
i want to put infor in this activity
public class entrar_antes_camera extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_entrar_antes_camera);
}
}