Android :: How Does PackageManager Detect What Architecture APK Targets?

Aug 11, 2010

i'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing "adb install app.apk" Logcat informs me that: W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK. With searching I was able to trace down that the problem might have something to do with the architectures not matching on the APK and the platform. Is this it? How does the PackageManager find out the architecture from the APK file? I'm guessing it's not trying to execute the binary or anything, it just checks the files meta data? If so, is there a place in the APK where this information is located? Or am I completely hitting blank here and I should look somewhere else?

Android :: How does PackageManager detect what architecture APK targets?


Android :: Getting Packages From PackageManager

Oct 10, 2010

I'm writing an app, that has a somewhat modular system. It has a core app, and some apps, that consist of a single Service, that implements the desired interface. I followed the guide to create the IPC communication. But now I need to get all the services, installed on the system, that my core app can work with. How do I do this? I mean, is there any way to mark my Service apps with some kind of a tag, and then filter results, presented by the PackageManager#getInstalledPackages() based on that tag value? What's the common practice of doing so?

View 1 Replies View Related

Android :: Books For Web Application Architecture?

Nov 12, 2009

I'm scoping a new software project and haven't had much experience with software development. This is a multipart question.

What are some recommended books for web application architecture?
We are basically looking to develop several front end applications (mobile and websites) that can query a central application pool that'll hit our backend database to retrieve the data. Is there a name for this kind of architecture?

View 3 Replies View Related

General :: Compile Android On ARM Architecture?

Apr 27, 2013

getting a dev board for use as a mini pc. Wondering can you compile android on arm hardware or only on x86 hardware. If you can compile android on arm I will get a high end quad core dev board, if not will just go for a mid range dual core board. Thought it would be a fun project to have an auto android builder along with file and print server. Yes I know it will be slow to compile.

View 2 Replies View Related

Android :: SDK Navigating From PackageManager To Activity To IntentFilters

May 22, 2009

I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from the Context -> PackageManager -> ActivityInfo is easy. I am stuck trying to figure out how to retrieve the mappings from Activity -> Intent-Filter. Looks like from what i could tell from the SDK documentation, i can obtain the ResolveInfo (if i know the Intent). But how do i retrieve Activity to Intent-Filter mapping?

View 2 Replies View Related

Android :: Application Architecture - What Is Suggested Model?

Jul 23, 2010

In the same way a web or desktop app might have 3 or n tiers - UI, Business, Data for example - what is the suggested structure for an Android application? How do you group classes together, what layers do you have etc.? I'm just starting Androi dev (an internet based app that must respond to incoming notifications) and have no real feel for the structure I'm aiming at.

View 2 Replies View Related

Android :: Different Versions Of Searchable.xml For Different Sdk Targets?

Nov 3, 2009

I have implemented a SearchManager which make uses of a searchable.xml with all the settings and put it in the xml/ directory.

I tried to create a new directory called xml_v4/ to add some attributes (the android:includeInGlobalSearch ie) which isn't supported in sdk3/1.5 but the xml directory seems not to be supported by the dir_suffixes.

How do I deal with this?

View 4 Replies View Related

Android :: PackageManager Component Info Error Getting Assets?

Aug 6, 2009

my application caches static resources in its /assets directory and implements a content provider to provide them to a WebView on request. i kinda have to drive around the houses a bit because it seems i can't get a linear file descriptor on an asset, i get "this resource is zipped" or somesuch, don't know why that's a problem. the content provider just caches the asset in /sdcard and then returns a file descriptor off that. this has been mostly working fine, but i've started seeing errors from the PackageManager. nothing's changed on my end, the assets are still there, etc. the actual error i'm getting is -ndroid.content.pm.PackageManager$NameNotFoundException: ComponentInfo{package/activity} (where "package" is the name of the package, etc) can i get anything wrong with this stuff? caching javascript and css stuff in the apk has been a big performance win.

View 6 Replies View Related

Android :: PackageManager.getInstalledPackages() Returns Empty List

Aug 11, 2010

I am running into a very strange situation when using the PackageManager.getInstalledPackages() method. The first time I launch my activity I get a valid list of all the installed packages. But the second time I launch my activity I get an empty list... What could possibly be causing this?

I am using this code to get the list:

CODE:...........

I am building against the 1.6 SDK with compatibility for 1.5+

View 1 Replies View Related

Android : Live Wallpaper Architecture Run In Same Process As Launcher?

Apr 26, 2010

Does the Live Wallpaper run in the same process as the Launcher? I looked through the Launcher code and cannot really figure out where the wallpaper "layer" fits in. I am looking at this with the lens of memory consumption and safeguards that the Launcher has in place against a bloated Live Wallpaper.

View 2 Replies View Related

Android :: Business Card Sample / Targets 1.5 And 1.6 Vs 2.0

Nov 16, 2010

I would like to know what I have to do in order to have the Business Card Sample in SDK 3 (android 1.5), because it uses some stuff that does not compile in android 1.5, example: - if (sdkVersion < Build.VERSION_CODES.ECLAIR)... -import android.provider.ContactsContract.Contacts; -import android.provider.ContactsContract.CommonDataKinds.Phone; What is the best way to have the application compiling in eclipse and be able to run in android 2.0 and 1.5?

View 2 Replies View Related

Android :: Retrive Different Icon When App Targets MinSdkVersion 3 And 4

May 30, 2010

My application retrieve icons of installed apps on the phone. But for the dialer, the icon is different when I target a minSdkVersion = 3 or minSdkVersion = 4. I did not found different icon for an other application.

I am testing on a motorola milestone. and I use ActivityInfo.loadIcon() to load icons.

Can someone explain this behavior ?

View 2 Replies View Related

Android :: Books And Resources For Learning Smart Phone Architecture

Nov 24, 2010

Can anyone recommend any books or resources for learning smart phone architecture (specifically iphone or droid)? I am looking to learn and get into smart phone development, having been doing desktop development for a few years now.

View 3 Replies View Related

Android :: Multiple Versions Of Same Class File For Different SDK Targets?

Nov 5, 2009

This is for an Android application but I'm broadening the question to Java as I don't know how this is usually implemented. Assuming you have a project that targets a specific SDK version. A new release of the SDK is backward incompatible and requires changing three lines in one class. How is this managed in Java without duplicating any code(or by duplicating the least amount)?

I don't want to create two projects for only 3 lines that are different. What I'm trying to achieve in the end is a single executable that'll work for both versions. In C/C++, you'd have a #define based on the version. How do I achieve the same thing in Java?

View 5 Replies View Related

Android :: Is Binary Representation Of Native Types Guaranteed Same On All Targets?

Aug 5, 2010

I"m planning to store my data in a binary format as a resource, read it into an int buffer and basically pass it straight down to a native C++ function, which might cast it to a struct/class and work with it. No pointers, obviously, just ints and floats. The question is - what kind of fixing up do I need to do? I suppose that I need to check ByteOrder.nativeOrder(), figure out if it's big Indian or little Indian, and perform byte-swapping if need be. Other than that, floats are presumably guaranteed to be expected in IEEE 754 format? Are there any other caveats I'm completely overlooking here? (Also - since I'm compiling using the NDK, I know what architecture it is already (ARMv7-A, in my case), so can I technically skip the Indian shenanigans and just take the data the way it is?)

View 1 Replies View Related

Games :: Agent - Shoot The Targets - Shooter On Android Market

Nov 7, 2010

I haven't posted here in a while and I thought I'd share some stuff on the new update.

If you aren't familiar with Agent, here are some screenshots:
Episode 1

Episode 2

New Bonus Level in Episode 2

Episode 3

Halloween Episode

QR Code for the Full Game

QR Code for the Demo Game

YouTube Video: http://www.youtube.com/watch?v=I42G2Tc2qOI

View 12 Replies View Related

General :: Eclipse Can't Find Device / No Compatible Targets Were Found

Feb 8, 2013

"No compatible targets were found. Do you wish to a add new Android Virtual Device?"

I'm using windows 7 and a sony Xperia J.I rebooted both already, and re-installed the drivers (assuming I installed the correct drivers, but I'm pretty sure I did)

View 3 Replies View Related

Android :: Android OpenGL Game - App Architecture / Threading Logic

Apr 8, 2010

Surprisingly, I don't seem to have issues with the OpenGL side of things (which is very unusual), but my problems stem from getting a clear idea for app architecture and a few other problems. Right now, most tutorials on the net just describe the render portion. I know that when I create a GLSurfaceView and hook a Renderer into it, it uses it's own thread for rendering.

I want to do logic operations and other gameplay stuff (like moving characters and whatnot) in it's own thread as well. Can anyone explain a good approach to this? I'm guessing the two threads will have to be synchronized (do logic, render, repeat), and limited based on time so that it performs smoothly across different devices.

View 1 Replies View Related

Android :: Purpose Of Using PackageManager In Android

Sep 7, 2010

What is Package Manager ? What is the purpose of using it ?What does the following methods describe:
(1) getPackageManager()
(2) getApplicationInfo()
(3) getPackageName()
Can any one give detailed description as I could not get complete inf. in Android developer guide.
And also one sample program that comprises all the methods.

View 2 Replies View Related

Android :: Error While Using PackageManager In Android

Sep 7, 2010

I got a problem in one Android Application which I am working in which I am getting error when I use PackageManager.I am getting error getPackageManager() does not exists in this class file.How do I solve this issue? I will be eagerly waiting for valuable reply.

View 2 Replies View Related

Android :: How To Detect CPU Speed?

Jun 5, 2010

Is there a way of getting the speed at which the device is running?

View 5 Replies View Related

Android :: How To Detect Key Held Down?

Apr 29, 2010

I need to catch event when a key is held down, not pressed down and but held for some time, equivalent to long click but for the key. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To un subscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en.

View 2 Replies View Related

Android :: Detect The Usb Device

Dec 11, 2009

I have ported the Android to a x86 platform. And i want to detect the USB plug-in.But follow the information about the android.intent.action.MEDIA_MOUNTED in the SDK's DOC, i can't receive the event of the USB's plug-in. i have checked my code and it can receive the other event ( ps:intent action) .

Besides, in the CLI, i could mount the USB device to /sdcard but it couldn't mount automatically. have seen some source code about the mount and mountlistener and it should be effective. my SDK's version is 1.5.

View 7 Replies View Related

Android :: Detect The Emulator

May 9, 2010

I would like to have my code run slightly differently when running on the emulator than when running on a device. (For example, using 10.0.2.2 instead of a public URL to run against a development server automatically.) What is the best way to detect when an Android application is running in the emulator?

View 9 Replies View Related

Android :: Detect Car Acceleration In App

Jun 5, 2010

I want to incorporate some Accelerometer code into a Android application im working and want to see if this is possible. Basically what I need is for the code to detect car acceleration motion. I am not wanting to determine speed with the code but just distinguish if the phone is in a car and has accelerated motion (Hence the car is moving for the first time). I have gone through many different accelerometer applications to see if this motion produces a viable profile to go off of and it appears it does. Just looking for something that popups a "Hello World" dialog when it detects your in the car and its moving for the first time down the street. Any help would be appreciated and a simple yes or no its possible would work. I would also be interested in compensating anyone that is capable of doing this as well.

View 2 Replies View Related

Android :: Detect End Of Scroll

Jun 6, 2010

I need to implement HorizontalScrollView which is scrolled to predefined positions (similar to Home behaviour). It works with slow gestures, but does not work with neither flings nor arrow key press.

I hooked to View.onScrollChanged() and it is called when scrolling happened, but I can't determine when scrolling animation ends.

In theory there should be a way to say that fling movement is over. Is there such API?

View 1 Replies View Related

Android :: Detect If Specified Url Is An Image

Aug 10, 2010

How to detect quickly if a specified URL contains an image in Android?

I have link of type http://foo.bar/w23afv so naive approach like checking end of URL string won't work here.

View 1 Replies View Related

Android :: Is It Possible To Detect If Has Trackball?

Sep 8, 2010

My application requires users to hold down the trackball in order to access an advanced menu.Not all phones have a trackball, however, so I need to remove this requirement for such phones.Is there a way to detect if the phone has a trackball?

View 1 Replies View Related

Android :: Detect If An App Was Uninstalled

Apr 21, 2010

Is there a way to get a system notification when an app has been uninstalled?I would like to maintain a table of all clients' info currently using my app. However, that seems impossible if there is no way to detect this event. The first solution I can think of is to have an always running service in the background listening for android.intent.action.PACKAGE_REMOVED. But then would that service be killed once the uninstallation process has ended, or would it be stopped just before the process has kicked off? Also even if this is a solution it's has the potential to put off a lot of people when they realise that part of the app is running in the background.

View 2 Replies View Related

Android :: How To Detect Homescreen?

Jun 5, 2009

I've asked "how to detect home screen" before. I'm still searching. I noticed when I press "home" button on Android emulator, I got this statement in catalog so I went to ActivityManager to see if I can find a clue there. Here is my findings: 1. I can not instantiate ActivityManager because it's constructor is not public, and it's not a singleton 2. it has a function called: getRunningAppProcesses sounds promising -- would it give me all the running processes? 3. since I can not instantiate ActivityManager I tried to use one of the derived class: RunningAppProcesseInfo to see if I can use it's parent methods: getRunningAppProcesses. Nope.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved