Android : Aapt Backwards Compatibility

Dec 14, 2009

Are the newest versions of aapt backwards compatible with the older versions? i.e. can i read 1.0 & 1.5 apks with the 2.0.1 SDK aapt? My tests show me it works, but is it failsafe?If this is not the case, what's the easiest way to determine the android version an APK was developed for and know which aapt binary to use?

Android : Aapt backwards compatibility


Android :: StartForeground Backwards Compatibility

Nov 15, 2009

I've got a question as I don't have an Android 2.0 device to test on and this particular aspect seems untestable in the emulator. I've got a service that needs to be run as a foreground service. I have a notification that stops it etc, so I have no problem using startForeground instead of setForeground. However, I'd like to have 1 version of my app that works across all platforms... Is this possible? If my app is compiled with Android 1.5 and uses setForeground, then will that command actually work on an Android 2.0 device, or does it not matter which sdk was used to compile? I've tried compiling with 2.0, and surrounding the call to startForeground with a try/catch, but that throws a VerifyError when the service is started, when run on a 1.5/6 device since startForeground doesn't exist there. Can I catch and ignore the VerifyError somehow and make it work that way?

View 5 Replies View Related

Android : How To Maintain Backwards-compatibility?

Apr 17, 2010

According to the instructions found here, to make your app state which screen sizes you can support, you'll need to compile your app against Android 1.6.

View 1 Replies View Related

Android :: Create Separate Applications - Backwards Compatible?

Dec 1, 2009

Is Android backwards compatible, in other words can an application developed in Android 1.6 run in Android 2.0? I just published a 2.0 application and discovered that I can't find it in the market using my G1 (Android 1.6) phone. But apparently others are downloading it. Should I downgrade the application to 1.6 or do I need to create separate applications for each Android version?

View 8 Replies View Related

Android :: Better Way To Implement Backwards Notification From Installd To Installer?

May 21, 2010

I plan to make some tasks like DEX file optimization be processed by installd on the background asynchronously, thus installd needs to notify the Installer of the result at some uncertain point when the request has been processed. Currently, a socket connection will be established each time when Installer sends request to installd and the connection will be closed when it returns. Thus I plan to hold another persistent socket connection for the backwards notification. Then whenever a request has been processed, installd can notify Installer through the persist socket.

Is there any other way to implement this?

View 2 Replies View Related

Android :: ADT Master And Aapt

Sep 14, 2010

ADT master execute aapt with the debug-mode option. aapt in Android SDK 07 doesn't support this option. Is there Windows build of SDK which support this ?

View 5 Replies View Related

Android :: Create Apk With Aapt Tool

Dec 15, 2009

I've been trying to create my .apk with aapt tool, but I couldn't get it. can somebody help me?

View 2 Replies View Related

Android :: Stay Backwards And Forwards Compatible - TargetSDKVersion Hdpi MinSDKVersion?

Apr 16, 2010

Here's my situation: I have an app that's been compiled using 1.5 SDK and minSdkVersion=3. Now I want to add 2 icons: one for high density screens like Droid and another one for low density screens like G1.

For this, I added the high density icon to new directory drawable-hdpi- v4/. I then compiled using 1.6 sdk and added targetSdkVersion="4" to the manifest. minSdkVersion is still 3.

This is working in limited testing, but I'm not sure if I have done everything correctly.

I have many questions:
1. By specifying v4 in drawable-hdpi-v4, the icon will not be displayed to 1.5 or below OS's. But what about users with 2.0 or higher SDK's? Will they get the non-hdpi icon, since they will have v6 or v7 ?

2. The documentation for targetSdkVersion states, "Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility)". Does this mean that my app will not be forward compatible as soon as I specify a targetSdkVersion? What exactly is being turned off?

3. Even if I leave out the targetSdkVersion="4", the app runs ok. So do I really need it?

4. Should I be using the latest SDK (2.1) and setting that as the targetsdkversion and compiling against that? Or some other combination of targetsdkversion and compiling sdk? I'm not using any API's that are not in 1.5..

5. Is any of this related to why some of my HTC Eris users have complained that they can no longer find my app in Market after upgrading to 2.1?

View 3 Replies View Related

Android :: When To Use Aapt Add For Shared Object Files

Jul 16, 2010

I need to carry over the "lib/armeabi" part as well. First off, is this the correct approach for add a 3rd party .so file, and if so, can I force it to preserve the dir structure? If I'm barking up the wrong tree, what is a better way to handle this?

View 2 Replies View Related

Android :: Aapt Crashes After Update To SDK 1.1r1 / Resolve This

Feb 18, 2009

I update my SDK from 1.0 to 1.1r1 running on Windows XP environment. I develop applications using Eclipse Ganymede.

Since this update my build process crashes on aapt calling.

I tried to reinstall ADT plugin but this doesn't change anything.

Do you have an idea to resolve this issue?

View 2 Replies View Related

General :: App Data Backwards Compatible?

Feb 5, 2012

I am currently running CM 7.0.3 (2.3.3) and want to update ROM to CM 7.1.0.1 (2.3.7)

My Question is this: can I use THE SAME Titanium Backup APK from 2.3.3 to BACK UP ALL APP DATA and IMPORT APP DATA TO 2.3.7?

View 3 Replies View Related

Android :: Passing Custom Arguments To Aapt In Eclipse

Feb 12, 2010

Is it possible to tell Eclipse to use some extra arguments for aapt (-0 in specific)?I have been looking for past couple of hours and the best hack I came up with was to create a wrapper for the aapt tool to inject the argument to the command line. The trouble with this approach is that whenever I should lose that wrapper, then I'll be quietly introducing a bug into my application.

View 1 Replies View Related

Android :: How To Apply AAPT Flag In Eclipse Project?

Apr 7, 2009

In the Android.mk, there are AAPT flags set as below. LOCAL_AAPT_FLAGS := -0 .dat.I'm wondering how to apply this AAPT flag in the eclipse project, so that the .dat raw data files will not be compressed in .apk?

View 3 Replies View Related

Android :: Unknown Error With AAPT Tool While Build Project

Jun 18, 2010

I am in need of help to complete my application. I am trying to execute a project that uses and android library. Basically I am trying to execute the android facebook sdk to run the sample code provided at http://github.com/facebook/facebook-android-sdk 1. I have downloaded the sdk and extracted the zip file to a folder 2. I used Eclipse galileo import to create an android project from existing resource. I imported the sdk source code (facebook folder of the sdk) into my project explorer successfully. I can also run Build Project for this source code. 3. Now, I am trying to import the sample example in it. The project is imported but I cannot execute it. I cannot build the project. Code...

View 2 Replies View Related

Android :: Aapt Error With Standard Menu Icons Resource Is Not Public

Jun 3, 2009

I've been trying to include standard android icons in a menu XML file, as described in Android Icon design guidelines. However the build fails with the following errors : [2009-06-04 00:00:31 - Laser] W/ResourceType(16578): Bad XML block: header size 2475 or total size 0 is larger than data size 0 [2009-06-04 00:00:31 - Laser] /home/niko/dev/workspace/Laser/res/menu/ main.xml:4: ERROR Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_play_clip'). [2009-06-04 00:00:31 - Laser] Unknown error: The only threads I could find with this error were about rebuilding android platform xml files. Any idea about what I could have missed?

View 5 Replies View Related

Android :: Programs Running Aapt In Android Sdk From Shell And From Sbt

Oct 16, 2010

I have a weird problem where I cannot run aapt from an sbt command as well as from the shell.

I run this command: sbt update package-debug

And everything hums along until I get this error: java.io.IOException: Cannot run program "/home/egervari/Programs/android-sdk-linux_x86/platforms/android-7/tools/aapt": java.io.IOException: error=2, No such file or directory

So I try running it manually, just for the heck of it: egervari@ken:~/Programs/android-sdk-linux_x86/platforms/android-7/tools$ ./aapt bash: ./aapt: No such file or directory

This is pretty weird because it's right there:

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

View 1 Replies View Related

Android :: Screen Compatibility Not Quite Right

Nov 21, 2009

<supports-screens android:anyDensity="false" android:largeScreens="false" android:normalScreens="true" android:smallScreens="false" android:resizeable="false"></supports- screens>

first of all what is the resizeable attribute? It does not seem to be documented. This is working almost 90% for my game except when testing in WVGA screen resolution, all my images are scaled incorrectly, it is longer vertically than horizontally. I was expecting the screen compatibility to maintain aspect ratios as that of HVGA.

Also in my layout I have a scrollview and it is designed in such a way that in HVGA when it is not scrolled down, the items are hidden away, however now in WVGA those things are shown. If the aspect ratio of HVGA is maintained I won't have this issue. How can I make sure the aspect ratio is maintained? Also in my layout I am positioning some items using pixel positions. Should I convert these to dpi? How do I calculate what dpi they should be?

View 9 Replies View Related

Android :: Application Compatibility Between SDK 1.5 And 1.6

Oct 12, 2009

What is the recommended approach to have currently shipping 1.5-SDK compliant apps to start offering 1.6 features (such as TTL) in the Market? Can we just publish 2 versions of the same package name each compiled with a different SDK level (will the Market automatically push out only the right version of the app) or do we have to use different package name and assume that the user will find a way to understand the version of the OS he has. A public statement to the developper community would be more than welcomed here!

View 5 Replies View Related

Android :: DevPhone1 SDK Compatibility

Apr 21, 2010

I've found again my DevPhone1 (aka G1) on a shelf and though that this time I should really give it a try and create an app for it. But I've really lost touch with the Android world and now I don't know where to start really. There have been many SDK releases lately for many new and better devices. Which one of these can I use with G1? What is the most recent one which can be used on that hardware (although with reduced performance) but which will enable development for rather modern Android releases as well. The firmware update received today, while recharging the phone, is 1.6. Can I go higher with some R&D build?

View 3 Replies View Related

Android :: Os Compatibility On Mobiles

Jan 24, 2010

i want to develop an application on android,webos,wince. how to develop application that should run on all paltform with developing each paltform

View 2 Replies View Related

Android :: Application Compatibility Between Different Versions

Jan 26, 2010

I can run my application on 1.5, 1.6 and 2.0 emulator and on a 1.5 device without any problems. But some of my users are reporting force close and strange menu entries (see the attachment) using 1.6 and higher version devices.
This screen should look like this:
http://www.taypo.com/blog/WindowsLiveWriter/TurkceKlavye0.7_6F1/settings_0.7_2.png

And the code that generates this screen is:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/general_settings">
<CheckBoxPreference android:title="@string/haptic_feedback" android:defaultValue="true"android:summary="@string/haptic_feedback_summary" android:key="vibrate"/>
<CheckBoxPreference android:title="@string/sound_feedback" android:defaultValue="false" android:summary="@string/sound_feedback_summary" android:key="sound" />
<CheckBoxPreference android:title="@string/auto_caps" android:defaultValue="true"
android:summary="@string/auto_caps_summary" android:key="auto_caps" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/layout_settings">
<ListPreference android:title="@string/keyboard_layout" android:defaultValue="TRQ" android:key="kbd_layout" android:entries="@array/layout_names" android:entryValues="@array/layout_values" />
</PreferenceCategory>
</PreferenceScreen>

View 1 Replies View Related

Android :: App2sd Backward Compatibility

Sep 4, 2010

I recently enabled the app2sd functionality in my app.When i test the apk on my NexusOne (2.2) the app goes to the SD card, perfect! But when i publish the app on the market and install the same apk from the market on the same Nexus, the app2sd function is missing, I can't install it to my SD card.

View 5 Replies View Related

Android :: 1.5_r3 Backward Compatibility

Aug 2, 2009

If I build against the 1.5_r3 SDK are there any compatibility issues with running it on devices that are at previous levels of 1.5? I would certainly hope not, but I've learned not to make such assumptions.

View 11 Replies View Related

Android :: How To Develop For Forward Compatibility?

Dec 10, 2009

I have an app that uses People provider. This is deprecated in version 2.0. I have built my application against API1.6 and set <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" /> Everything was fine until I wanted to run the app on Android 2.0. Not only is People deprecated it actually doesn't even work! So, I have changed the API I'm compiling against API2.0 and do the OS version check in my code and use People provider or ContactsContract accordingly. I still keep <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" /> so I can target 1.6 devices. Now when I want to debug in Eclipse it insists on running it on 2.0 emulator. How can I tell Eclipse that I really want to debug on 1.6 emulator? I have installed my APK on 1.6 emulator via the browser. It installed fine, but when I want to use People provider it crashes. I need to be able to debug it.

View 3 Replies View Related

Android :: No Technology Compatibility Kit On Platform?

Mar 9, 2009

Is there any TCK (Technology Compatibility Kit) on Android such like Sun TCK? How can I assure my android platform after changing it as own style. Can some one help me clarify this point?

View 2 Replies View Related

Android :: Any Way To Emulate Particular Device Compatibility?

Jun 22, 2010

I program and test using the Droid Incredible. The other day my friend downloaded my alpha version, which works flawlessly on the Incredible, but crashed on his Moto Droid. I just updated my app to use 2.1 api's instead of 1.6; maybe this will make a difference? I upped my min version requirements to 7. My question is how can you make sure your app works on all phones and not just the phone your are building and testing on? Is there a way to emulate a particular device?

View 3 Replies View Related

Android :: Compatibility With Nonexistant Classes

Apr 19, 2010

I have read the Backward Compatibility Article, and I don't full understand how (or if I can) make a program backwards compatible if I want to use a class introduced in later versions. For example, I want to use WallpaperManager for apis 5+, but make the app as a whole compatible with api 3+. Is this possible?

View 14 Replies View Related

Android :: Froyo Still Breaks Compatibility

Jun 30, 2010

You can no longer send the ACTION_ATTACH_DATA intent with an image URI to a custom content provider without crashing the Gallery app. This bug was reported more than a month ago. It is a stupid bug that is super easy to fix, and as soon as Froyo was open sourced a patch was submitted. Still Froyo was officially released and the bug remains leaving developers who use this with an app that is no longer compatible and no easy way to work around it for 2.2. There are other bugs that also have not been acknowledged. This 'open' thing is great but it is not of much use this way.

View 2 Replies View Related

Android :: Development Platform Compatibility

Mar 15, 2009

I am getting a new OS, which OS is Android SDK/IDE development environment compatible with XP64, Vista64 or Windows7? Or Do I need to keep a XP32 partition around?

View 5 Replies View Related

Android :: Screen Size Compatibility

Dec 17, 2009

I want to make my app compatible to different screen sizes. I am right now developing on the Droid and need to know how can I import the screen image on eclipse emulator? I don't have a droid phone but want to make sure my app layout doesn't change on the Droid.

View 2 Replies View Related







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