• Register
0 votes

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() {
public void onClickButton(View view) {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Intent i = Intent.createChooser(intent, "File");
getActivity().startActivityForResult(i, FILE_REQ_CODE);
6 5 3
7,540 points

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);
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;
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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 34 views
Problem: I have recently started understanding Android Programming. I have some doubts about Androids compatibility. I am trying to understand whether my Android provides some sort of the compatibility I want to say either is it forward or backward compatible. Just like in Blackberry if I ... the Android SDK 1.5 then will that app properly work on any of the handsets having the OS 1.5 or higher.
asked Jul 13 Raphael Pacheco 4.9k points
0 votes
2 answers 15 views
Problem: Android obesity is associated with a higher incidence of all the following except A) heart disease. B) diabetes mellitus. C) hypertension. D) cancer.
asked Apr 12 ArifulIslam 5.7k points
0 votes
1 answer 130 views
Problem : I want to run the Eclipse JSF project on the Apache Tomcat on some other computer. I created the WAR file. But, when I try to deploy the WAR and open my Facelet page in Firefox, I usually face only the below error message: “This XML file does not appear ... first time when I am trying to run the JSF app without my Eclipse. How is this issue popping up and how can I fix the issue?
asked Jan 3 alecxe 7.5k points
0 votes
2 answers 93 views
Problem : I wanted to create a custom dialog by displaying the Activity as the dialog instead of using a Dialog APIs. By creating an activity and seting its theme to the Theme.Holo.Dialog in my <activity> manifest element: <activity android:theme="@android:style/Theme ... was something I wanted to do, because I have already completed my layout. Can somebody tell me how I can resolve this problem?
asked Jan 28 jwilliam 3.9k points