簡體   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