AndroidでIntentを発行した時に、同一のIntent(データURIも同一)によって起動したタスクが存在する場合、 タスクがフロントにやってくるのみでActivityが起動しないという挙動をするようです。
例としてadb経由でIntentを発行してみます。
adb shell am start \
-a android.intent.action.VIEW \
| #!bin/sh | |
| FILES=*@3x.png | |
| for file in ${FILES[@]} | |
| do | |
| convert $file -resize '66%' ${file%@3x.png}@2x.png | |
| convert $file -resize '33%' ${file%@3x.png}.png | |
| done |
| #import <Foundation/Foundation.h> | |
| @interface NSData (AES) | |
| - (NSData *)AES256EncryptWithPassphrase:(NSString *)pass; | |
| - (NSData *)AES256DecryptWithPassphrase:(NSString *)pass; | |
| @end |
| # require ImageMagick | |
| # usage: find . -type f -name '*.png' | xargs android_res_gen.sh | |
| # mkdir | |
| [ ! -d xxxhdpi ] && mkdir xxxhdpi | |
| [ ! -d xxhdpi ] && mkdir xxhdpi | |
| [ ! -d xhdpi ] && mkdir xhdpi | |
| [ ! -d hdpi ] && mkdir hdpi | |
| [ ! -d mdpi ] && mkdir mdpi |
| package com.example.yatatsu.simpletodo.task; | |
| import android.os.AsyncTask; | |
| /** | |
| * simple abstract wrapper for AsyncTask | |
| * @author yatatsu | |
| */ | |
| public abstract class BaseAsyncTask<T1, T2, T3> extends AsyncTask<T1, T2, T3> { |
| public class SingletonClass { | |
| private static SingletonClass instance; | |
| private SingletonClass() {} | |
| // basic style | |
| public static SingletonClass getInstance() { | |
| if (instance == null) { // <- not thread safe | |
| instance = new SingletonClass(); | |
| } |
| /** | |
| * Action interface | |
| */ | |
| public abstract class EventAction { | |
| } |
| /* | |
| * Decompiled with CFR 0_110. | |
| */ | |
| static final class Method | |
| extends Method { | |
| Method(String string2, int n2) { | |
| super(string, n, null); | |
| } | |
| @Override |
| public enum DialogEventBus { | |
| OK, | |
| CANCEL, | |
| CLOSE, | |
| ; | |
| private final SerializedSubject<String, String> bus; | |
| DialogEventBus() { | |
| bus = new SerializedSubject<>(PublishSubject.create()); |
| package com.github.yatatsu.repository; | |
| import io.realm.RealmObject; | |
| import io.realm.RealmQuery; | |
| public interface RealmObjectQuery<T extends RealmObject> { | |
| T apply(RealmQuery<T> query); | |
| } |