繁体   English   中英

如何发送Android意向以将当前笔记保存在evernote中,以便可以使用其他意向创建新笔记?

[英]How do I sent an Android intent to save the current note in evernote so that a new one can created with another intent?

我目前使用以下代码创建新的Evernote快照笔记:

    Intent intent = new Intent("com.evernote.action.NEW_SNAPSHOT");
    startActivity(intent);

如果没有音符打开,这会带来新的效果,因此效果很好。 如果我一次使用该功能并且不保存便笺,则下次我运行此意图时会弹出未保存的便笺,并且不会创建新的快照便笺。

我想先发送一个意图以保存当前笔记,然后运行该意图以创建新笔记。

Evernote可以做到吗? 如果是这样,意图将如何呈现?

我没有将Evernote用于编程目的。 但是,我可以解释一种解决方案。

检索APK文件并在Android Studio中将其打开。 尝试读取Manifest.xml文件。

因此,应用程序与其他程序进行交互的唯一位置是:

 <activity
            android:theme="@ref/0x7f0d022c"
            android:name="com.evernote.note.composer.NewNoteAloneActivity"
            android:configChanges="0x5a0"
            android:alwaysRetainTaskState="true"
            android:allowTaskReparenting="true"
            android:windowSoftInputMode="0x2">

            <intent-filter>

                <action
                    android:name="com.evernote.action.VIEW_NOTE" />

                <category
                    android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <intent-filter>

                <data
                    android:scheme="*" />

                <action
                    android:name="com.evernote.action.CREATE_NEW_NOTE" />

                <action
                    android:name="com.evernote.action.EDIT_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_PAGE_CAMERA_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_VIDEO_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_VOICE_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SKITCH_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SPEECH_TO_TEXT_NOTE" />

                <action
                    android:name="com.evernote.action.SWAP_RESOURCE" />

                <action
                    android:name="com.evernote.action.UPDATE_NOTE" />

                <action
                    android:name="com.evernote.action.DELETE_NOTE" />

                <category
                    android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <intent-filter>

                <action
                    android:name="com.evernote.action.CREATE_NEW_NOTE" />

                <action
                    android:name="com.evernote.action.EDIT_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_PAGE_CAMERA_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_VIDEO_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_VOICE_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SKITCH_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SPEECH_TO_TEXT_NOTE" />

                <action
                    android:name="com.evernote.action.SWAP_RESOURCE" />

                <action
                    android:name="com.evernote.action.UPDATE_NOTE" />

                <action
                    android:name="com.evernote.action.DELETE_NOTE" />

                <category
                    android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <intent-filter>

                <data
                    android:mimeType="*/*" />

                <action
                    android:name="com.evernote.action.CREATE_NEW_NOTE" />

                <action
                    android:name="com.evernote.action.EDIT_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_PAGE_CAMERA_SNAPSHOT" />

                <action
                    android:name="com.evernote.action.NEW_VIDEO_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_VOICE_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SKITCH_NOTE" />

                <action
                    android:name="com.evernote.action.NEW_SPEECH_TO_TEXT_NOTE" />

                <action
                    android:name="com.evernote.action.SWAP_RESOURCE" />

                <action
                    android:name="com.evernote.action.UPDATE_NOTE" />

                <action
                    android:name="com.evernote.action.DELETE_NOTE" />

                <category
                    android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

与此处描述的相同。

https://dev.evernote.com/doc/articles/android_intents.php

因此,看来您的方案是不可能的。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM