1

I want to call a class of another project. I added it in the build path and also declared that class in the manifest file but when I call it gives me a no class found error. I am calling it from intent.

Intent intent = new Intent(getApplicationContext(), org.coolreader.CoolReader.class);
intent.putExtra("path", adapter.getItem(position).getPath());
startActivity(intent);
jonsca
  • 9,342
  • 26
  • 53
  • 60
madeeha ameer
  • 449
  • 1
  • 7
  • 21

1 Answers1

0

If you want to launch CoolReader from your program than look at this answer:

Intent coolReaderIntent = getPackageManager().getLaunchIntentForPackage("org.coolreader.CoolReader");
coolReaderIntent.putExtra("path", adapter.getItem(position).getPath());
startActivity(coolReaderIntent);

Of course, CoolReader (program) should be installed on the device.

Community
  • 1
  • 1
ArtemStorozhuk
  • 8,542
  • 4
  • 30
  • 52