構文 | system.impCallActionSend( データ文字列 [,タイプ] ) |
説明 | 暗黙のintent呼び出しコマンドです。ACTION_SEND呼び出しを行います。 |
引数 | データ文字列: 送信データです。 タイプ: タイプは省略化です。例えば、text/plain など。 アプリを呼び出した場合は、Luaridaは終了します。呼び出せなかった場合は、後の処理を続けます。 |
戻り値 | なし |
------------------------------------------
-- 暗黙のintent呼び出しコマンドのサンプル system_impCallActionSend.lua
------------------------------------------
function main()
canvas.drawCls(color(255,255,255))
canvas.drawText("暗黙のintent呼び出しコマンドのサンプル", 0, 0, 24, color(0,0,0))
while(true)do
item.clear()
item.add("1:text/plain")
item.add("2:text/html")
item.add("3:終了")
no = item.list( "暗黙のintent呼び出しコマンドのサンプル" )
if( no == 3 )then
toast( "終了します", 0 )
break
elseif( no == 1 )then
system.impCallActionSend("text/plain test", "text/plain")
elseif( no == 2 )then
system.impCallActionSend("text/html test","text/html")
end
end
end
main()