Android - Open File with another specific app -
My app will download to open with another app called .zip, .js, and .png and I Bloklancr them. There is a specific activity setup of the blocklink to open these files. There is an intent filter setup for .js files, so open them open. But .zip and .png files are not so easy here is how the .png file activity Blocklaunchers appear
& lt, activity android: name = "net.zhuoweizhang.mcpelauncher.api.ImportSkinActivity "& Gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "net.zhuoweizhang.mcpelauncher.action.SET_SKIN" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "image / png" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity aka android: name = "net.zhuoweizhang.mcpelauncher.ImportSkinActivity" Android: export = "true" Android: targetActivity = "net.zhuoweizhang.mcpelauncher.api.ImportSkinActivity" / & gt; & Lt; Activity android: name = "net.zhuoweizhang.mcpelauncher.api.ImportTtexturepackActivity" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "net.zhuoweizhang.mcpelauncher.action.SET_TEXTUREPACK" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "* / *" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt;
Anyone have any ideas? ! Thank you
Well if BlockLauncher import script with this: you have tried to change and < / p> and ? Please tell me that you had started (): p
effect IntentMTex = new intent ("net.zhuoweizhang.mcpelauncher.action.IMPORT_SCRIPT"); Uri texMPath = Uri.fromFile (new File (Environment.getExternalStorageDirectory () getPath () + '/Download/","Mech_Texture.zip ").); IntentMTex.setDataAndType (texmpath," text / plain ");
intentMTex.setDataAndType (texmpath, "text / plain");
intent ( "net.zhuoweizhang.mcpelauncher.action.IMPORT_SCRIPT);
intentMTex.setDataAndType (texMPath, "image / png");
Intent ( "net.zhuoweizhang. Mcpelauncher.action.SET_SKIN);
Comments
Post a Comment