Failed to parse file gradient_drawable1.xml - Java for Android App Development

I created gradient_drawable1.xml file and the eclipse is showing error that "failed to prase file gradient_drawable1.xml.
source code of gradient_drawable1.xml is
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</animation-list>
and exception stact trace are :
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
help !!
thanks..

sonidepanshu said:
I created gradient_drawable1.xml file and the eclipse is showing error that "failed to prase file gradient_drawable1.xml.
source code of gradient_drawable1.xml is
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</animation-list>
help !!
thanks..
Click to expand...
Click to collapse
why <animation-list xmlns:android="http://schemas.android.com/apk/res/android" > </animation-list> this would require animation properties, your missing "duration"
so maybe change "animation-list" to "layer-list"
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</layer-list>
hope that helps, if it's not what you want let me know.

Related

BuildOS

Does anyone know what i need to put to make the below have its only heading so i can split different types up.
Code:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<Items>
<Item name="Help" group="[B]test[/B]" checked="true">
<Tip>Help</Tip>
<Guid type="P">76164568-f00e-11db-8314-0800200c9a66</Guid>
</Item>
</Items>
Code:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<Items>
<Item name="Adobe Reader LE" group="[B]System[/B]" checked="true">
<Tip>Adobe Reader LE</Tip>
<Guid type="p">820697b6-f803-45e4-9b4b-d38814a71fbc</Guid>
</Item>
</Items>
or am i missing something!!!

[Q] app wont save to SD?

heres the starting of my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hyperbyte.app3"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" />
// etc...
But it won't allow for installs to the SD card. Any ideas?

How to correct change APK background

hello everybody
I have a problem
I want change my apk background but have trouble
i edit style.xml
original
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RE_Main" parent="@*android:style/Theme.DeviceDefault.Light">
<style name="RE_Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
</resources>
Change
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RE_Main" parent="@*android:style/Theme.DeviceDefault.Light">
<item name="android:background">@drawable/semc</item>
</style>
<style name="RE_Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
</resources>
Can not be used after changing

speed dial enable

All,
steps to enable speed dial on Sony Xperia Z1 compact
Speeddial is enabled on D5503_14.4.A.0.157_R4C_RU
But disabled on D5503_14.4.A.0.157_Baltic
After I have copied "com.sonyericsson.android.socialphonebook-res.apk" to system/vendor/overlay folder I got speeddial with 99 positions.
This apk file must have the following files:
\res\values\bools.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="enable_speed_dial">true</bool>
</resources>
and \res\values\public.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="bool" name="enable_speed_dial" id="0x7f020000" />
</resources>

Where is the source code for "Background app refresh"

Some tablets have a "Background app refresh" setting under the apps settings menu. What does this setting actually do and where is the source code for it? I am wanting to programmatically modify this setting.
I found that the settings for this screen are stored in the following database on the TB-8504F
/data/data/com.archer.providers.autoboot/databases/autoboot.db
AndroidManifest.xml
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.archer.providers.autoboot" platformBuildVersionCode="25" platformBuildVersionName="7.1.1">
<application android:allowBackup="true" android:supportsRtl="true">
<provider android:authorities="com.archer.autobootprovider" android:exported="true" android:name=".AutoBootProvider"/>
</application>
</manifest>
apk and odex is here:
https://github.com/dazza5000/lenovo_auto_boot_provider

Categories

Resources