This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
**Image removed for security reasons**
This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
**Image removed for security reasons**
@Elizvxeth Poole can you help with this question?
@Joe Axwvhvm @Blvke Bond @Phil Wvtson can you help here?
Cast the KonyMain.getActivityContext() to Activity class before calling startActivity method to resolve it
@Joe Axwvhvm Do you mean like this
Activity.class.cast(KonyMain.getActivityContext()).startActivity(pdfIntent); ?
I haven't tested that snippet .
This is how we usually do
((AppCompatActivity) KonyMain.getActivityContext()).startActivity(new Intent());