Questions tagged [package-info]

PackageInfo class help developers to provide overall information about the contents of a package.

PackageInfo class help developers to provide overall information about the contents of a package. Information corresponds to all of the information collected from AndroidManifest.xml .

PackageInfo getPackageInfo (String packageName,int flags)

Retrieve overall information about an application package that is installed on the system.

Usually this class is used by PackageManager .

List<PackageInfo> getPackagesHoldingPermissions (String[] permissions, 
                                int flags)

Return a List of all installed packages that are currently holding any of the given permissions.

List<PackageInfo> getInstalledPackages (int flags)

Return a List of all packages that are installed on the device.

44 questions
0
votes
1 answer

package_info_plus 4.0.1 issue with version number

I try to get the version of my app and the value is empty from PackageInfo. Please help! PackageInfo packageInfo = await PackageInfo.fromPlatform(); print('package info: $packageInfo'); And I try to print PackageInfo in…
Robban13
  • 21
  • 3
0
votes
1 answer

Annotation type not applicable to this kind of declaration error in package info class in Java 8

I have a package info class, it used to compile in Java 6/7. But in Java 8, I get compilation errors: *****error: annotation type not applicable to this kind of declaration @NamedNativeQueries({ error: annotation type not applicable to this kind of…
redds1
  • 5
  • 4
0
votes
0 answers

XMLAdapter - How is it possible to create a XMLAdapter for a List object using package-info

I have an Element that's being used many times. This element is a List of a specific class. I created an Adapter for each item of this list and, considering it's inside of many nodes, I'd like to put the adapter at package-info level instead of…
Adriano
  • 1
  • 2
0
votes
0 answers

because when I import this camel-jaxb library all marshall works differently

Context When I don't import this library (org.apache.camel - camel-jaxb), the code performs the conversions normally from json to pojo, pojo to xml and xml to pojo, but i want to use javax annotations for namespace and xsd sample repository with…
0
votes
1 answer

How to associate package-info with class in Byte-buddy?

I create package-info of package foo.bar and class foo.bar.BarCl in next code public static void main(String[] args) throws ClassNotFoundException, IOException { DynamicType.Unloaded make = new ByteBuddy().makePackage("foo.bar").make(); …
0
votes
0 answers

How to retrieve iOS App info from another iOS App?

so I'm trying to create plugin for Flutter, where I'll be able to use it in order to show information regarding device/app. I've managed to do it for android/java by including if (call.method.equals("getPackageInfo")) { String packageName =…
Uros
  • 303
  • 1
  • 3
  • 13
0
votes
0 answers

How to get only valid python package index

As per https://pypi.org/simple/ we have 200,000 packages. I feel there are lot of packages found to be dummy/Experimental. Where can we get the properly maintained package list for python? If not, atleast please let me know what kind of strategy…
0
votes
1 answer

Can i ignore child's namespaces from @XmlRootElement

I'm using Kotlin 1.3, Java 8 and Spring 4.0+. Just i want to attach a namespace only to , not to childs of it. But, when i define the namespace using @XmlRootElement for then also get a default namespace even i don't define any…
0
votes
0 answers

I can´t insert annotations or code inside package-info,java in android studio

I made jaxb working inside my android project but for jaxb purposes i need to use @xmlschema and @xmlns inside porject-info.java @XmlSchema(namespace = "espacio_person", elementFormDefault = XmlNsForm.QUALIFIED, xmlns = { …
0
votes
6 answers

Spring boot, runnable jar can't load package-info.class

We use Spring boot with hibernate database mapping. The entities contains JSON columns mapped as a customized types defined using package-info.java file. When we run the spring-project from Eclipse IDE everything is ok and we can call our web…
Vicking
  • 553
  • 6
  • 15
0
votes
1 answer

Check whether install is first install or user have installed app previously

What I want to achieve is get to know whether app is installed first time or user have installed this app previously in android.
Asmita Bhiware
  • 383
  • 1
  • 3
  • 9
0
votes
1 answer

Java 8: hierarchically scan for package-level annotations

In Java 8, how can I hierarchically scan for package-level annotations (i.e. annotations in package-info.java files)? e.g., I want to find out for Class, the first annotation of type A that is found existing on the following packages, in…
XDR
  • 4,070
  • 3
  • 30
  • 54
0
votes
1 answer

List of just installed apps

I need to store all the installed apps icons in an array, and names in another array, so I´ve this code: List apps = getPackageManager().getInstalledPackages(0); int numberApps = apps.size(); String[] appsNames = new…
Javierd98
  • 708
  • 9
  • 27
0
votes
1 answer

Error message not going away in Netbeans, why? "java.net.BindException: Address already in use: bind"

It seems like a duplicate question of how to kill a process already running on that port, but it is a different question. When I killed the process and restart it, it still gives me that error message, seems like Netbeans has a problem, and the…
Frank
  • 30,590
  • 58
  • 161
  • 244
1 2
3