0

I have problem with sending intent for array. Actually I have asked before this question. but I realized I couldn't send it to another activity. I have error when debugging it,when it comes to using intent:

public void sendMessage(View view) 
    {
        Bundle bundle = new Bundle();
        final String data[][] = storePrintIMC; 
        int count = data.length; 
        bundle.putInt(ARRAYS_COUNT, count); 
        for (int i = 0; i < count; i++)
        { 
            bundle.putStringArray(ARRAY_INDEX + i, data[i]); 
        } 
         Intent intent = new Intent(this,ActivityReceiver.class); 
         intent.putExtras(bundle);
         startActivity(intent);

In this line

Intent intent = new Intent(this,ActivityReceiver.class);

It says Source not found. I have activityReceiver class, I also declare the intent in manifest.

Do you know why this is happen?

Community
  • 1
  • 1
Carlos
  • 59
  • 1
  • 6

1 Answers1

0

Try this way.....

Intent intent = new Intent(CurrentActivity.this, ActivityReceiver.class);
Piyush
  • 18,895
  • 5
  • 32
  • 63