manifest

android.permission.WRITE_SETTINGS cant use in manifest

淺唱寂寞╮ 提交于 2019-12-11 00:56:19
问题 Can't use android.permission.WRITE_SETTINGS in android manifest. im trying to turn on airplane mode by programatticaly and I can't add this permission in manifest. <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 回答1: The Android docs says: Note: If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. The app requests the user's approval by sending an intent with action ACTION_MANAGE

How can I perform a negative match in Android intent filter?

懵懂的女人 提交于 2019-12-10 21:15:31
问题 In an Android manifest, how can I use a negative match in the android:pathPattern ? I'd like to use a pathPattern that matches on all URLs except for a specific hostname, if it's possible. 回答1: It doesn't look like that's possible--in fact, it seems to be designed not to work that way. I suspect <intent-filter> is the wrong tool for whatever you're trying to do. Even if you could use android:pathPattern to specify the hostname (isn't that what android:host is for?), it's more of a glob than a

maven: no main manifest attribute

断了今生、忘了曾经 提交于 2019-12-10 19:29:53
问题 I am working on my web java project. When I try to run java jar file built by maven, I get an error: no main manifest attribute, in "project name". I think the reason is maven can't find my main class. I have created test project with this hierarchy: /test /src /main Main.java pom.xml The pom.xml file contains this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache

Best Practices for developing an Activity with a background Service

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 18:27:04
问题 My Application has an Activity for the UI and a Service for background polling fun. Seems like standard fare. Can AlarmManager trigger the Service Intent without Activity OnCreate being called? Is there any benefit to putting the Activity & Service into different Applications? Would this create 2 apk's and make it impossible to put into Market as one app? Can you put 2 applications into one manifest somehow? Regarding communication between the two: -If Activity & Service are part of the same

Manifest.mf: reference Main-class in jar file

妖精的绣舞 提交于 2019-12-10 18:07:22
问题 I am making a runnable jar where my main class is eclipse's JarRsrcLoader. This is my Package Structure : org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader And my Manifest : Manifest-Version: 1.0 Rsrc-Class-Path: ./selenium-server-standalone-2.39.0.jar Class-Path: . Rsrc-Main-Class: test.Main Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader And the directory structure within my jar: When I try to run the jar from command line using: java -jar output.jar I get: Error:

Android Studio - App not installed onto phone, but runs

纵饮孤独 提交于 2019-12-10 16:23:01
问题 I use Android Studio to run my app on my phone and it runs fine. But the application itself is never installed... There is no icon for it in the menu. I have to "run" any time I want to test my app. I am presented with no errors. I believe there is an issue with my manifest. What am I doing wrong here?: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jb854.eda.kent.ac.uk.edanews"> <uses-feature android:name="android.software

What is causing desktop shield icon overlay on *SOME* desktops

只谈情不闲聊 提交于 2019-12-10 15:54:48
问题 I have a C++ Builder/Delphi application. It has the following manifest embedded as a resource: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity type="win32" processorArchitecture="*" version="1.0.0.0" name="Manufacturer.Division.MyName" /> <description>MyName</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"

Listing an application's activity and intent-filters?

半城伤御伤魂 提交于 2019-12-10 15:54:36
问题 I am interested in activating another application's activity. I know from reading the Android SDK that it's probably better to do this with an implicit intent. However, this activity doesn't reside in an application I own, so I don't know the action and category and data flags on the intent-filter. How can I examine an Android applications metadata like the activity classes and the intent-filters for those activities (if declared in the manifest)? Thanks! 回答1: I would try this. Check on

PWA Add To Home screen button in Chrome with Angular 4

大兔子大兔子 提交于 2019-12-10 15:27:56
问题 I have started working on PWA with Workbox3. And it is working out pretty amazing so far. I have added code to Add to Home Screen button so User can add it to there Mobile's Home screen. But the prompt box to add icon on Home screen showing only single time. Once I added that Icon to Home screen then after that it if I delete it and try same again then it shows nothing. I am checking in Desktop chrome from Chrome's DevTool->Application->Mainfest sectoin->Add to Home Screen . My Service worker

How to set classpath in manifest file , while creating JAR from eclipse?

时间秒杀一切 提交于 2019-12-10 15:06:52
问题 I am trying to creat JAR file through eclipse. I read some of the threads from stackoverflow as well as other forums. But nothing is helping. I have created a separate manifest file like this one. Manifest-Version: 1.0 Main-Class: Main Class-Path: gnujaxp.jar iText-2.1.5.jar jcalendar.jar jcommon-1.0.16.jar jfreechart-1.0.13.jar jfreechart-1.0.13-experimental.jar jfreechart-1.0.13-swt.jar junit.jar servlet.jar swtgraphics2d.jar tinyos.jar I have put all this jars in same project folder. While