简体   繁体   English

没有应用程序可以执行此操作 android studio

[英]no apps can perform this action android studio

Im new to this area, I have a mission, I have build up an application that register some data that I have insert.我是这个领域的新手,我有一个使命,我已经建立了一个应用程序来注册我插入的一些数据。 lets call this app "A", now i copy the same app and called it "B".让我们称这个应用程序为“A”,现在我复制同一个应用程序并将其称为“B”。 In app "A" and "B" in the manifest file I write this:在清单文件中的应用程序“A”和“B”中,我这样写:

<activity
            android:name=".Register"
            android:exported="false">
            <intent-filter>
                <action android:name="com.action.ex3.register" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

Now in app "C" I want to use what app "A" or "B" doing, in order to to that in the app "C" I write this:现在在应用程序“C”中,我想使用应用程序“A”或“B”所做的事情,为了在应用程序“C”中做到这一点,我这样写:

public void registerBtnClicked(View view) {
        Intent intent = new Intent(); //implicit activity.
        intent.setAction("com.action.ex3.register");
        startActivityForResult(intent, REGISTER_ID);
    }

what I expected that will happen it that when I press in my app "C" on the regiser button a pop out with a "chooser dialog" with option to choose "A" or "B", but instead of that I got "chooser dialog" with "no apps can perform this action android studio"我期望会发生什么,当我在我的应用程序中按下注册器按钮上的“C”时,会弹出一个带有“选择器对话框”的选项,可以选择“A”或“B”,但我得到的不是“选择器”对话框”与“没有应用程序可以执行此操作 android studio”

what im doing wrong?我做错了什么? here a picture of the problem这是问题的图片

App C "no apps can perform this action android studio"应用程序 C“没有应用程序可以执行此操作 android 工作室”

Im using pixel emulator in android studio IDE.我在 android 工作室 IDE 中使用像素模拟器。

Your activities are not exported.您的活动不会导出。 They cannot be accessed from other apps.无法从其他应用程序访问它们。 Change android:exported to be true if you want other apps accessing your activities.如果您希望其他应用程序访问您的活动, android:exported更改为true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有应用可以执行此操作(Android) - No Apps can perform this action android Android没有应用可以执行此操作 - Android no apps can perform this action 没有应用程序可以执行此操作 - 打开图像 - No Apps Can Perform This Action - Opening Image 如何对在Android Studio中动态创建的多个按钮执行onclick操作 - How to perform onclick action on multiple buttons created dynamically in Android Studio 尝试将EditText表单提交到我的电子邮件时出错? 没有应用程序可以执行此操作吗? - Error When Trying To Submit EditText Form To My Email? No Apps Can Perform This Action? 没有应用程序可以执行此操作(Android电子邮件) - no app to perform this action android email Android - 使用语音命令执行操作 - Android - Perform an action with voice command Android Studio TextViews onClick都执行相同的操作,如何解决? - Android Studio TextViews onClick all perform the same action, how do I fix it? 我可以在没有 Android Studio 和 Intelij idea 的情况下构建 Android 应用吗 - Can I build Android apps without Android Studio and Intelij idea and just with netbeans by knowing how to make android apps Android-尝试发送whatsapp消息时收到错误消息“没有应用程序可以执行此操作”? - Android - getting an error “no application can perform this action” while trying to send a whatsapp message?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM