manifest

Application with 2 launcher activities

纵然是瞬间 提交于 2019-12-03 15:28:00
I have an application that contains two Activities with <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> in the manifest. I did this so that there are 2 separate entries in the app drawer. It functions properly with regards to the app drawer as it is. My question comes during the install. After you install an app with only one MAIN/LAUNCHER activity the last page has an open button that will launch the app that was just installed. With my app this open button is greyed out. I assume it is because it

Chrome Extension Send Message From Background.js to Content Script

半世苍凉 提交于 2019-12-03 15:09:27
问题 I have read the documentation on how to do Send Message From background javascript file(main.js) to Content Script (content.js) but I cannot get the onMessage to open my alert. Manifest.json { "name": "Example", "version": "1.0.1", "manifest_version" : 2, "description": "Example Description", "background" : { "scripts" : ["main.js"] }, "page_action" : { "default_icon": { "19": "icons/19.png", "38": "icons/38.png" }, "default_title" : "Example Title" }, "content_scripts": [{ "matches": ["<all

starting an activity from preferences.xml

五迷三道 提交于 2019-12-03 14:02:54
I'm trying to go to the settings screen found at - android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS From an entry in my preferences activity but am having no luck. At the moment, pressing the entry just refreshes the same screen as I was on. My preferences.xml looks like this: <Preference android:title="@string/my_location_settings"> <intent android:action="android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS"> </intent> </Preference> And my manifest entry looks like this: <activity android:name=".Preferences"> <intent-filter> <action android:name="android.provider.Settings

About Manifest file

半城伤御伤魂 提交于 2019-12-03 11:11:13
Recently, I encountered a very strange issue, this issue only happens in Windows XP SP3 and Vista. Here are my steps: Create two new folders in desktop (assume folder names are A and B) Copy Microsoft GraphEdit ( graphedt.exe ) application to A folder, then create a empty graphedt.exe.manifest file as well. Run graphedt.exe , you will see a error message, the graphedt.exe can’t run due to the wrong manifest. Copy Microsoft GraphEdit ( graphedt.exe ) application to B folder, run graphedt.exe and close it, then create a empty graphedt.exe.manifest file, run graphedt.exe again, you will see the

What does the Java Applet security warning “JAR file manifest does not contain the Permissions attribute”mean?

纵然是瞬间 提交于 2019-12-03 10:52:28
问题 I have a Java Applet which needs access to the local filesystem of the client. I have created a simple certificate for my own (it is NOT certified by Verisign,Commodo, ...). I signed the jar with the following template: del \Users\koalabruder\.keystore "C:\Program Files\Java\jdk1.7.0_45\bin\keytool" -genkey -alias %1 -keypass kp -dname "cn=inin" -storepass ab987c "C:\Program Files\Java\jdk1.7.0_45\bin\jarsigner.exe" -storepass abc -keypass kp %2 %1 "C:\Program Files\Java\jdk1.7.0_45\bin

Using attributes from API level beyond minSdkVersion

只谈情不闲聊 提交于 2019-12-03 09:29:20
I am new to Android development and am wondering what happens if you use attributes on XML tags from an API level greater than your minSdkVersion. For example having: <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="20" /> And then using this: <activity android:logo="@drawable/iconwhatever"></activity> The "android:logo" attribute is from API level 11. In Android Studio it gives the following error, but I want to know what could happen if this is left alone: Attribute "logo" is only used in API level 11 and higher. (Current min is 9) Any help regarding this would be greatly

What is signing ClickOnce manifests for?

谁说胖子不能爱 提交于 2019-12-03 09:26:10
According to Microsoft , you must sign your ClickOnce application. But it seems to me that it works just fine when I publish it without signing it (by turning off the 'Sign the ClickOnce manifests' option). I really didn't care and kept the default values (I think I was using a test certificate) until I changed computer and started getting a message telling me that 'The application is signed with a different key than the existing application on the server', which seems will cause my users to stop getting automatic updates. Apparently, VS uses my computer's name to create the key. So, should I

How do I write a manifest file for the new java security barriers

≯℡__Kan透↙ 提交于 2019-12-03 08:14:43
I have a Java applet that I need to deploy on my website. My website has a lot of pages and the applet appears on a number of them. My website's base domain is www.mycompany.com . But the applet will appear on, for example: www.mycompany.com/dog , www.mycompany.com/cat , www.mycompany.com/pen , etc. The package of the entry point is com.mycompany.MyApplet . Following the instructions at Java Security Manifest Changes in the Browser , I have created the below manifest for my app. Will someone please review it for me so that I get it correct? Basically I don't want any sort of warning to show up

Android Studio - Action Bar remove

混江龙づ霸主 提交于 2019-12-03 05:52:48
问题 I'm trying to remove/disable the ActionBar. I tried to put in the Manifest: <activity ... android:theme="@android:style/Theme.NoTitleBar" </activity> and it doesn't work. It doesn't remove the ActionBar. Please help me. Thanks. 回答1: in your oncreate() method use this getActionBar().hide(); If your minSdkVersion is 10 or lower, instead use: getSupportActionBar().hide(); 回答2: I had this issue too. I went to styles.xml and changed parent="Theme.AppCompat.Light.DarkActionBar" to parent="Theme

Is it possible to load webfonts through the offline storage cache manifest?

喜夏-厌秋 提交于 2019-12-03 05:51:09
问题 I understand that I can import my fonts through html/css but I am wondering if this is a achievable approach. Thanks! 回答1: Yes, if you add fonts to your manifest file they will be downloaded along with the rest of the files, and then be available offline. The fonts will need to be available from the same server where your offline app is, because you can't cache resources not on your domain. You couldn't cache a Google Web Font, for instance. I've been doing some testing on this, it seems