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:

  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 ");  

you have tried to change

  intentMTex.setDataAndType (texmpath, "text / plain");  

and < / p>

  intent ( "net.zhuoweizhang.mcpelauncher.action.IMPORT_SCRIPT);  

  intentMTex.setDataAndType (texMPath, "image / png");  

and

  Intent ( "net.zhuoweizhang. Mcpelauncher.action.SET_SKIN);  

?

Please tell me that you had started (): p


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -