AndroidでIntentを発行した時に、同一のIntent(データURIも同一)によって起動したタスクが存在する場合、 タスクがフロントにやってくるのみでActivityが起動しないという挙動をするようです。
例としてadb経由でIntentを発行してみます。
adb shell am start \
-a android.intent.action.VIEW \
/* | |
* Decompiled with CFR 0_110. | |
*/ | |
static final class Method | |
extends Method { | |
Method(String string2, int n2) { | |
super(string, n, null); | |
} | |
@Override |
/** | |
* Action interface | |
*/ | |
public abstract class EventAction { | |
} |
public class SingletonClass { | |
private static SingletonClass instance; | |
private SingletonClass() {} | |
// basic style | |
public static SingletonClass getInstance() { | |
if (instance == null) { // <- not thread safe | |
instance = new SingletonClass(); | |
} |
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> { |
# 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 |
#import <Foundation/Foundation.h> | |
@interface NSData (AES) | |
- (NSData *)AES256EncryptWithPassphrase:(NSString *)pass; | |
- (NSData *)AES256DecryptWithPassphrase:(NSString *)pass; | |
@end |
#!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 |
#!/bin/sh | |
# According to https://developer.apple.com/LIBRARY/PRERELEASE/IOS/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html | |
# And Referring to https://gist.github.com/lexrus/1984984 | |
convert $1 -resize 180x180 AppIcon@3x.png | |
convert $1 -resize 120x120 AppIcon@2x.png | |
convert $1 -resize 152x152 AppIcon-iPad@2x.png | |
convert $1 -resize 76x76 AppIcon-iPad@1x.png |
iOS8での通知関連の変更について, WWDC2014, また以後公開されているリファレンスによる情報をまとめた.
iOS8から変わる点はおおきくわけると以下の3つになる.