manifest

Apply a theme to an activity in Android?

冷暖自知 提交于 2019-12-27 10:33:28
问题 I know how to apply a theme to a whole application, but where would I go to apply a theme to just a single activity? 回答1: You can apply a theme to any activity by including android:theme inside <activity> inside manifest file. For example: <activity android:theme="@android:style/Theme.Dialog"> <activity android:theme="@style/CustomTheme"> And if you want to set theme programatically then use setTheme() before calling setContentView() and super.onCreate() method inside onCreate() method. 回答2:

Apply a theme to an activity in Android?

风流意气都作罢 提交于 2019-12-27 10:33:12
问题 I know how to apply a theme to a whole application, but where would I go to apply a theme to just a single activity? 回答1: You can apply a theme to any activity by including android:theme inside <activity> inside manifest file. For example: <activity android:theme="@android:style/Theme.Dialog"> <activity android:theme="@style/CustomTheme"> And if you want to set theme programatically then use setTheme() before calling setContentView() and super.onCreate() method inside onCreate() method. 回答2:

How do i declare my Activity as Launcher?

对着背影说爱祢 提交于 2019-12-25 18:23:09
问题 I am trying to build a kind of custom lockscreen. In order to achieve that I need to disable the HOME button. From this post I understand that I can achieve that by declaring my Activity as a Launcher. Please how do I do that? (it is in the Manifest obviously) This is the Manifest. The Activity that "acts" as a lockscreen is LockScreen <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.appengine.paranoid_android.lost"

Where to define the classpath for server side jars ? manifest.mf versus CLI argument -cp

给你一囗甜甜゛ 提交于 2019-12-25 07:30:10
问题 Realized a similar question was posted earlier but had no answers. Uuse both a manifest.mf and also pass jars using cp? What is the best way to define classpath in java batch environment? Can both Manifest.MF and cp argument via Command line be used or Do one override the other or Do one takes precedence over the other? If I am using JavaEE-API jar instead of the actual JMS* and XML* jars which are available on the server. Do I need to include each individual jar in the build.gradle as

Contentaccesible and Chrome.Manifest

会有一股神秘感。 提交于 2019-12-25 04:26:09
问题 This is my chrome.manifest file: content ghforkable ./ content_scripts ghforkable content_scripts/ contentaccessible=yes It doesn't seem to work though, I keep getting this security error: Security Error: Content at https://github.com/ may not load or link to chrome://ghforkable/content/content_scripts/inject.js. 回答1: Solution thanks to litho and pat from mozillazine. There can be more than one content folder, with one being marked as contentaccessible: content ghforkable ./ content

Android App ForceCloses on Starting of a new activity

試著忘記壹切 提交于 2019-12-25 04:21:40
问题 I am new to android development and I have been having issues with Force Close on new Android Activity Pages. My Structure is like this: Main Page -> Menu Page (Works Fine) -> New Game Screen(force closes) Call to the Activity: public void btnNewGame_Click(View view) { Intent i = new Intent(this, NewGameScreen.class); startActivityForResult(i, ACTIVITY_CREATE); } Manifest <activity android:name=".NewGameScreen" android:label="@string/app_name"> <intent-filter> <action android:name="android

Using an external manifest to turn off Windows DPI scaling

会有一股神秘感。 提交于 2019-12-25 03:29:15
问题 I have a Java application on Windows that's launched through a packr exe. I need to turn off DPI scaling by default. I don't have control of the exe's generation. My understanding is that I can do this by adding an external .manifest file, but it doesn't seem to work. This is the manifest file, which I put at "Airships.exe.manifest" next to "Airships.exe". <?xml version="1.0" encoding="utf-8"?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn

Manifest Line 1, Column 1, Syntax Error when pushed to production

人盡茶涼 提交于 2019-12-25 01:47:00
问题 First I have scoured the platform and google with no luck. Getting a random Manifest error when I push to production. With one push everything is fine. With another, the error appears. And when it errors all the icon links break. I can't figure this out at all. Any help is appreciated. Served from https://zeit.com live app: https://ryancarville.com repo: https://github.com/ryancarville/portfolio-app manifest code { "short_name": "Full-Stack-Portfolio", "name": "Ryan-Carville-Full-Stack

java manifest internal jar link

别来无恙 提交于 2019-12-25 00:34:48
问题 I'm trying to package some external libraries into my java project, but failing miserably. I've got a .jar-file, with external libraries packaged into ./lib/jars. If I have the manifest pointing the Class-Path: at lib/jars/theJar.jar, I get a NoClassDefFoundError. If I have the Class-Path pointing at C:\Users\Owner\workspace\theProject\lib\jars\theJar.jar, the jar file is found - but I suppose that will only work on my computer. How do I make the program go looking for the jars inside of the

Manifest for an exe?

家住魔仙堡 提交于 2019-12-24 21:28:57
问题 I have an executable say A.exe, which finds architecture of the OS and depends on the architecture it calls either A64.exe or A86.exe. In this case do I want to have manifests for all the exe's ( A.exe, A64.exe, A86.exe )? Right now I have manifest only for A.exe? 回答1: Yes, each module needs its own manifest. In your case, if you were to start A64.exe from A.exe , and A64.exe does not have a manifest, then A64 will run virtualized, it will not have access to comctl32 v6 and so on. A process