• Register
0 votes
490 views

Problem :

In my current application I want to get the MS-Word and PDF files through the Storage Access Framework which works well on some of the devices I have worked upon however on the Samsung note 4 API 6 I am facing following error :

All apps associated with this action have been disabled, blocked, or are not installed

Please find below my Code:

Button.setOnClickListener(new View.OnClickListener() {
@Override 
public void onClickButton(View view) {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("application/pdf,application/msword");
Intent i = Intent.createChooser(intent, "File");
getActivity().startActivityForResult(i, FILE_REQ_CODE);
}
});
7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had personally faced similar error while using the Intents. I had received the same error when I was attempting to declare an Intent globally. Please find below example :

public class MyTestClass{
// Class Variables in (BAD)
private Intent someTestActivity = new Intent(this, SomeTestClass.class);
@Override 
protected void onTestCreate(Bundle savedTestInstanceState){
        // Some Code below
    }
}

Then, I discovered that this issue was fixed when I made following change:

public class MyTestClass{
// Class Variables in (Not Bad)
private Intent someTestActivity;
@Override
protected void onTestCreate(Bundle savedTestInstanceState){
someTestActivity = new Intent(this, SomeTestClass.class);
    }
} 

There was no trace of this as an "error." I guess it is more of an OS-handled exception for incorrect usage of Intents.

38.6k points

Related questions

0 votes
1 answer 41 views
41 views
Problem: I am getting an error : All apps associated with this action have been disabled, blocked, or are not installed
asked Apr 25 ochena 23.3k points
0 votes
1 answer 14 views
14 views
Problem: My app is sending an email with an attachment using an Intent: Intent emailIntent = new Intent(Intent.ACTION_SEND); Uri emailUri = new FileHelper().getUri(file, context); emailIntent.putExtra(Intent.EXTRA_STREAM, emailUri); emailIntent.setFlags(Intent. ... find anything applicable to my situation. Anyone have ideas on what to try other than telling him to factory reset?
asked Apr 25 munim01 21k points
0 votes
1 answer 1 view
1 view
Problem: All apps associated with this action?
asked 6 days ago Mezbah 130k points
0 votes
1 answer 8 views
8 views
Problem: Where can I look for a solution to this problem? >All apps associated with this action have been turned off
asked May 10 Sawyer Parviz 168k points
0 votes
1 answer 21 views
21 views
Problem: Does anyone skills to resolve this error? > Action is only valid for products that are currently installed.
asked May 7 Ashok Dileep 21.5k points
0 votes
1 answer 5 views
5 views
Problem: Having a tough time with this, help please : All apps associated with this action have been
asked May 26 Sawyer Parviz 168k points
0 votes
1 answer 10 views
10 views
Problem: Please help me fix this dilemma “The file does not have a program associated with it for performing this action”?
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 14 views
14 views
Problem: To enable 'Ad Hoc Distributed Queries' I can run the following statement in SQL. Does anyone know how to enable from PowerShell?
asked May 4 sumaiya simi 43.9k points
0 votes
1 answer 47 views
47 views
Problem: How to solve this issue ? wrn assembly binding logging is turned off
asked Feb 26 Azlan2020 2.5k points
0 votes
1 answer 12 views
12 views
Problem: Android no apps can perform this action.
asked Jul 22 Priscilla Gurpreet 74.7k points