我正在使用 Evernote API 创建一个 Android 应用程序。我正在尝试根据标签列出笔记。但是当我添加过滤器时,我的笔记列表是空的,当我不添加任何过滤器时,我可以列出所有笔记。虽然有过滤器,但我没有收到任何笔记
EvernoteNoteStoreClient evernoteNoteStoreClient = EvernoteSession.getInstance().getEvernoteClientFactory().getNoteStoreClient();
NoteFilter noteFilter = new NoteFilter();
noteFilter.setTagGuids(tags);//List of Tag GUIds
try{
NoteList notes = evernoteNoteStoreClient.findNotes(noteFilter,100,100);
Log.d("Evereee", "size is "+ String.valueOf(notes.getNotesSize()));
//I get 0 when noteFilter has tags
}catch (Exception e){
Toast.makeText(this, "Error Occured!", Toast.LENGTH_SHORT).show();
}
Run Code Online (Sandbox Code Playgroud)
当我添加标签的 GUID 时说“DOG”,大小给出 0。而它应该显示 3,因为我创建了带有标签“DOG”的示例笔记。
我开发了一个动态壁纸应用程序,它只能从谷歌的动态壁纸应用程序访问,但像小米、Oppo 这样的手机有自己的壁纸应用程序,而我的应用程序没有显示在他们的壁纸部分。谁能帮我解决这个问题或将我重定向到一个想法来解决这个问题?
这是我的 Wallpaper.xml 文件
<?xml version="1.0" encoding="UTF-8"?>
<wallpaper
xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/wallpaper_description"
android:thumbnail="@raw/element1"
android:settingsActivity=""/>
Run Code Online (Sandbox Code Playgroud)
这是我的清单文件
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.edustan.mywallpaper">
<uses-feature
android:name="android.software.live_wallpaper"
android:required="true" />
<uses-permission android:name="android.permission.SET_WALLPAPER_HINTS"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning" >
<service
android:name=".MyWallpaperService"
android:enabled="true"
android:label="Wallpaper Example "
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/wallpaper" />
</service>
</application>
Run Code Online (Sandbox Code Playgroud)
这是我的 WallpaperService 类文件
@Override
public Engine onCreateEngine() {
return new MyWallpaperEngine();
}
private class MyWallpaperEngine extends Engine{
public Bitmap image1, image2, image3;
private int count_new =0;
private …Run Code Online (Sandbox Code Playgroud)