Imageview in XML - adding content - Galaxy Note II, Galaxy S III Developer Discussion

So I am having an issue I cannot work out on my own regarding xml layouts. I have, for the last couple of weeks, been working and learning deeper level xml edits, and have worked out quite a bit on my own, but this one has me stumped. I am trying to add images into systemui, in particular to tw_status_bar_expanded. I have managed to center certain pieces of text, but now I wish to add images to either side of the text, just to add a touch of flare. This is a mock up of what I want it to look like in photoshop; the lines on either side of ongoing and notifications would be the image files. I do need them to to be images, and not blocks declared in xml, for other plans I have for those images.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So I got the text centered, drew up a fresh ninepatch file to handle the stretching called notification_accent.9.png, and wrote up some xml code that I had hoped would display the images. The image is stored in res/drawable-xhdpi. But, when I flash the new systemui to my phone, it just repeatedly force closes.
I am sure there are several issues you can see immediately with the following brick of code. I am sure that using fill_parent on the text will override the images, which I will need to work out. But I cannot understand why it is force closing. Here is the bit of code:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="left|center" android:layout_width="wrap_content" android:padding="2.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:src="@drawable/notification_accent" android:scaleType="fitXY" />
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="center" android:id="@id/latestNotificationText" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="false" />
<ImageView android:layout_gravity="right|center" android:layout_width="wrap_content" android:padding="2.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:src="@drawable/notification_accent" android:scaleType="fitXY" />
</LinearLayout>
</LinearLayout>
If anyone can give me any kind of insight, it would be very much appreciated. Like I said, I have been trying to learn how to do this on my own, and have done decently so far - but this one just eludes me. If you can help me figure it out, you will get a huge thanks when i post this in themes and apps on the l900 forms as well as in the roms I build that use this.

The logcat would be very useful! And if you could post the code between code tags [ code ] without spaces that'd be better too!

Kryten2k35 said:
The logcat would be very useful! And if you could post the code between code tags [ code ] without spaces that'd be better too!
Click to expand...
Click to collapse
I fixed the code - sorry about that, I posted it up in a hurry last night and didn't have time to fight the formatting. As for a logcat: I ran and I (believe) I have isolated the bit regarding the crash. Not sure that I know what a class inflation error is.
Code:
W/dalvikvm( 3124): threadid=1: thread exiting with uncaught exception (group=0x410b92a0)
E/AndroidRuntime( 3124): FATAL EXCEPTION: main
E/AndroidRuntime( 3124): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 3124): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 3124): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 3124): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 3124): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3124): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3124): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 3124): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3124): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 3124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 3124): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3124): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 3124): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 3124): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 3124): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 3124): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 3124): ... 10 more
E/AndroidRuntime( 3124): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 3124): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 3124): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 3124): ... 32 more
E/AndroidRuntime( 3124): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}
E/AndroidRuntime( 3124): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 3124): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 3124): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 3124): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 3124): ... 35 more
E/android.os.Debug( 2557): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
I/ActivityThread( 3204): Pub com.samsung.helphub.provider: com.samsung.helphub.provider.HelpHubContentProvider
I/dumpstate( 3219): begin

Now I did not make any smali edits with this... I am assuming that is where I failed. I am super uncomfortable inside a smali file, but I will do my darndest to get this working.

Hmm, which part is line 32? You should be ok for smali, this is an XML error

Kryten2k35 said:
Hmm, which part is line 32? You should be ok for smali, this is an XML error
Click to expand...
Click to collapse
Its the first image view I had posted. Second line of the code I have up. I have gone into public and given it a declaration, added that declaration into the smali r$drawable, and added it into the ids xml... still no dice.
New logcat -
Code:
E/AndroidRuntime( 5835): FATAL EXCEPTION: main
E/AndroidRuntime( 5835): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 5835): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 5835): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 5835): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5835): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5835): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 5835): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5835): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 5835): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 5835): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 5835): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 5835): ... 10 more
E/AndroidRuntime( 5835): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 5835): ... 32 more
[COLOR="Red"]E/AndroidRuntime( 5835): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}[/COLOR]
E/AndroidRuntime( 5835): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 5835): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 5835): ... 35 more
E/android.os.Debug( 2422): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
W/ActivityManager( 2422): Process com.android.systemui has crashed too many times: killing!
The bit in red is new. Time to do some digging. And that is the resource ID I used to declare that drawable.
EDIT:
I found the issue. I needed to declare it as an id and not a drawable. Thank you very much for your assistance.
Its still all kinds of broken, like the image isn't displaying, but its no longer force closing on me.
EDIT AGAIN:
Yeah, no, you can't display an image that way. so now I am back where I started today, but furious now. I have mirrored exactly another image file that displays correctly. Tracked down every single declaration... but mine is not working.

lickarock said:
Its the first image view I had posted. Second line of the code I have up. I have gone into public and given it a declaration, added that declaration into the smali r$drawable, and added it into the ids xml... still no dice.
New logcat -
Code:
E/AndroidRuntime( 5835): FATAL EXCEPTION: main
E/AndroidRuntime( 5835): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 5835): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 5835): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 5835): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5835): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5835): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 5835): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5835): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 5835): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 5835): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 5835): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 5835): ... 10 more
E/AndroidRuntime( 5835): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 5835): ... 32 more
[COLOR="Red"]E/AndroidRuntime( 5835): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}[/COLOR]
E/AndroidRuntime( 5835): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 5835): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 5835): ... 35 more
E/android.os.Debug( 2422): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
W/ActivityManager( 2422): Process com.android.systemui has crashed too many times: killing!
The bit in red is new. Time to do some digging. And that is the resource ID I used to declare that drawable.
EDIT:
I found the issue. I needed to declare it as an id and not a drawable. Thank you very much for your assistance.
Its still all kinds of broken, like the image isn't displaying, but its no longer force closing on me.
EDIT AGAIN:
Yeah, no, you can't display an image that way. so now I am back where I started today, but furious now. I have mirrored exactly another image file that displays correctly. Tracked down every single declaration... but mine is not working.
Click to expand...
Click to collapse
Post a screenshot with the working image if it works with it and a screenshot with the one that doesnt u aint far from success. .
Sent from my SAMSUNG-SGH-I317 using xda premium

Related

Email policy mod with ParanoidAndroid

Hi All,
I've installed Paranoid Android 3.15, it works fine except when I install email+exchange packages with policy modded. After some minutes email start to crash and it never ends .
Below the log:
W/dalvikvm( 5178): threadid=1: thread exiting with uncaught exception (group=0x4
1d09a08)
E/AndroidRuntime( 5178): FATAL EXCEPTION: main
E/AndroidRuntime( 5178): java.lang.RuntimeException: Unable to bind to service [email protected] with Intent { act=com.android.email.POLICY_INTENT }: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2700)
E/AndroidRuntime( 5178): at android.app.ActivityThread.access$1700(ActivityThread.java:156)
E/AndroidRuntime( 5178): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337)
E/AndroidRuntime( 5178): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5178): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5178): at android.app.ActivityThread.main(ActivityThread.java:5234)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 5178): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5178): Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 5178): at android.app.admin.IDevicePolicyManager$Stub$Proxy.setPasswordQuality(IDevicePolicyManager.java:889)
E/AndroidRuntime( 5178): at android.app.admin.DevicePolicyManager.setPasswordQuality(DevicePolicyManager.java:295)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.setActivePolicies(SecurityPolicy.java:457)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.<init>(SecurityPolicy.java:87)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.getInstance(SecurityPolicy.java:74)
E/AndroidRuntime( 5178): at com.android.email.service.PolicyService.onBind(PolicyService.java:75)
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2687)
E/AndroidRuntime( 5178): ... 10 more
Have you some idea ?

Weird error

One day I turned on my phone and now when I freez and de-freez the apk with link2sd Google Play Services crashes.
Here's the logcat of the error:
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
E/AndroidRuntime( 4857): FATAL EXCEPTION: Thread-11
E/AndroidRuntime( 4857): java.lang.NullPointerException
E/AndroidRuntime( 4857): at com.google.android.gms.common.download.DownloadService.a(SourceFile:513)
E/AndroidRuntime( 4857): at eky.a(SourceFile:129)
E/AndroidRuntime( 4857): at ejm.a(SourceFile:2584)
E/AndroidRuntime( 4857): at eki.f(SourceFile:535)
E/AndroidRuntime( 4857): at eki.a(SourceFile:529)
E/AndroidRuntime( 4857): at enf.d(SourceFile:81)
E/AndroidRuntime( 4857): at enb.run(SourceFile:237)
E/AndroidRuntime( 4857): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4857): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4857): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 4857): at end.run(SourceFile:40)
E/dalvikvm( 4897): Could not find class 'android.database.sqlite.SQLiteCantOpenDatabaseException', referenced from method com.google.android.gms.plus.provider.PlusProvider.a
E/dalvikvm( 4897): Could not find class 'android.app.AppOpsManager', referenced from method box.a
E/AndroidRuntime( 4897): FATAL EXCEPTION: Thread-11
E/AndroidRuntime( 4897): java.lang.NullPointerException
E/AndroidRuntime( 4897): at com.google.android.gms.common.download.DownloadService.a(SourceFile:513)
E/AndroidRuntime( 4897): at eky.a(SourceFile:129)
E/AndroidRuntime( 4897): at ejm.a(SourceFile:2584)
E/AndroidRuntime( 4897): at eki.f(SourceFile:535)
E/AndroidRuntime( 4897): at eki.a(SourceFile:529)
E/AndroidRuntime( 4897): at enf.d(SourceFile:81)
E/AndroidRuntime( 4897): at enb.run(SourceFile:237)
E/AndroidRuntime( 4897): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4897): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4897): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 4897): at end.run(SourceFile:40)
I hope you can help me Thank you so much!
Delete second partition ext.sd and restart your device
Can you please explain me what appened exactly? Why I need to wipe my ext partition?
Simple trick
Backup all data and reset your device....

Rom Port Need Some help =)

Hello im trying to port lattest muiu v6 to nexus 5 and now im stuck on this very anoying error =( can someone help me?
Code:
E/AndroidRuntime( 2092): Error reporting WTF
E/AndroidRuntime( 2092): java.lang.NullPointerException
E/AndroidRuntime( 2092): at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:339)
E/AndroidRuntime( 2092): at android.util.Log$1.onTerribleFailure(Log.java:104)
E/AndroidRuntime( 2092): at android.util.Log.wtf(Log.java:297)
E/AndroidRuntime( 2092): at android.util.Log.wtf(Log.java:290)
E/AndroidRuntime( 2092): at android.os.Environment.throwIfUserRequired(Environment.java:783)
E/AndroidRuntime( 2092): at android.os.Environment.getExternalStorageDirectory(Environment.java:384)
E/AndroidRuntime( 2092): at miui.os.Environment.<clinit>(SourceFile:31)
E/AndroidRuntime( 2092): at com.android.server.pm.PreinstallApp.<clinit>(PreinstallApp.java:43)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerServiceInjector.performPreinstallApp(PackageManagerServiceInjector.java:397)
E/AndroidRuntime( 2092): at com.android.server.pm.MiuiPackageManagerService.performPreinstallApp(MiuiPackageManagerService.java:50)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:1395)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:1051)
E/AndroidRuntime( 2092): at com.android.server.ServerThread.initAndLoop(SystemServer.java:253)
E/AndroidRuntime( 2092): at com.android.server.SystemServer.main(SystemServer.java:1205)
E/AndroidRuntime( 2092): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2092): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2092): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805)
E/AndroidRuntime( 2092): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
E/AndroidRuntime( 2092): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2092): Original WTF:
E/AndroidRuntime( 2092): android.util.Log$TerribleFailure: Path requests must specify a user by using UserEnvironment
E/AndroidRuntime( 2092): at android.util.Log.wtf(Log.java:294)
E/AndroidRuntime( 2092): at android.util.Log.wtf(Log.java:290)
E/AndroidRuntime( 2092): at android.os.Environment.throwIfUserRequired(Environment.java:783)
E/AndroidRuntime( 2092): at android.os.Environment.getExternalStorageDirectory(Environment.java:384)
E/AndroidRuntime( 2092): at miui.os.Environment.<clinit>(SourceFile:31)
E/AndroidRuntime( 2092): at com.android.server.pm.PreinstallApp.<clinit>(PreinstallApp.java:43)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerServiceInjector.performPreinstallApp(PackageManagerServiceInjector.java:397)
E/AndroidRuntime( 2092): at com.android.server.pm.MiuiPackageManagerService.performPreinstallApp(MiuiPackageManagerService.java:50)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:1395)
E/AndroidRuntime( 2092): at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:1051)
E/AndroidRuntime( 2092): at com.android.server.ServerThread.initAndLoop(SystemServer.java:253)
E/AndroidRuntime( 2092): at com.android.server.SystemServer.main(SystemServer.java:1205)
E/AndroidRuntime( 2092): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2092): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2092): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805)
E/AndroidRuntime( 2092): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
E/AndroidRuntime( 2092): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2092): Caused by: java.lang.Throwable
E/AndroidRuntime( 2092): ... 15 more
Full logcat here: https://drive.google.com/file/d/0Bxt51MAjKyi0NEs0UzFIV244TG8/view?usp=sharing
Thanks every help is apreciated

[Q] "android.process.media has stopped" Stock 5.1.1

Hi,
I've just updated my phone to stock 5.1.1 and I've deleted some system apps I don't need like I've done with 5.1.
Everythings works perfectly except that when I try to open the Download Manager it says "android.process.media has stopped" and I can't use it.
I've seen that I've deleted one more app thant with 5.1, DocumentsUI. Can it be this missing app that cause this error ?
Ive tried to put it back by extracting it from the system.img and moving it's folder in the right place with the same system right but the problem is still the same.
Kind regards
As it's a UI - User interface I'd say so. Start again and freeze apps you are not 100%sure of. You can unfreeze if it's needed.
SENT BY ENTANGLEMENT
I've done some investigations on my brother's phone and now I'm pretty sur that my problem is because I've deleted the Docs app that was in system\app\DocumentsUI.
Is there a way to put it back without flashing the whole ROM again ?
I've still got this problem. I have this logcat if someone is able to help me...
E/AndroidRuntime( 5031): FATAL EXCEPTION: main
E/AndroidRuntime( 5031): Process: android.process.media, PID: 5031
E/AndroidRuntime( 5031): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.providers.downloads.ui/com.android.providers.downloads.ui.DownloadList}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
E/AndroidRuntime( 5031): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
E/AndroidRuntime( 5031): at android.app.ActivityThread.access$800(ActivityThread.java:151)
E/AndroidRuntime( 5031): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
E/AndroidRuntime( 5031): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5031): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5031): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
E/AndroidRuntime( 5031): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1781)
E/AndroidRuntime( 5031): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3745)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3706)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:4016)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:3984)
E/AndroidRuntime( 5031): at com.android.providers.downloads.ui.DownloadList.onCreate(DownloadList.java:35)
E/AndroidRuntime( 5031): at android.app.Activity.performCreate(Activity.java:5990)
E/AndroidRuntime( 5031): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
E/AndroidRuntime( 5031): ... 10 more
Just dirty flash same rom. All the apps will be there

Launcher background image not possible on rooted [Tolino Page 11.2.3]

I rooted my Tolino Page some times ago and was able to install "ADW Launcher" and set background image using "Wallpaper Changer". At the time the firmware was 10.0.1 based on Android 4.0.4.
Since some weeks tolino published an update to 11.2.3, based on Android 4.4.2.
Device updated, factory-reset, rooted, installed all apps again, all is working as expected with the exception the background image cannot be set in launcher. I tried different launchers, all with the same issue, I just get a message "Error appears, please try again after reboot" (message free translated from german).
Any idea what is missed? Is there any software I can install to try to solve the issue? What I can check to find the reason?
I am firm with linux-command line and can apply patches and compile components if I get the right howto how to setup build environment.
I can manupulate directly the system as root trough adb shell
The used build is [not allowed to post , search for "mytolino update", then "page"]
The source code is [not allowed to post , search for "mytolino open source", then "page"]
Found the next mesages in logcat
Code:
W/WallpaperManager( 3098): WallpaperService not running
W/WallpaperManager( 3098): WallpaperService not running
D/AndroidRuntime( 3098): Shutting down VM
W/dalvikvm( 3098): threadid=1: thread exiting with uncaught exception (group=0x40e27ba8)
E/AndroidRuntime( 3098): FATAL EXCEPTION: main
E/AndroidRuntime( 3098): Process: com.simplemobiletools.gallery, PID: 3098
E/AndroidRuntime( 3098): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.simplemobiletools.gallery/com.simplemobiletools.gallery.activities.SetWallpaperActivity}: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime( 3098): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 3098): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 3098): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 3098): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3098): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 3098): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 3098): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3098): Caused by: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropOverlayView.setAspectRatioX(SourceFile:274)
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropImageView.a(SourceFile:523)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.setupAspectRatio(SourceFile:75)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.handleImage(SourceFile:60)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.onCreate(SourceFile:42)
E/AndroidRuntime( 3098): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 3098): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime( 3098): ... 11 more
W/ActivityManager( 2462): Force finishing activity com.simplemobiletools.gallery/.activities.SetWallpaperActivity
Any idea what is missed?
I am Android noob, but I get set up a working AOSP build environment for ntx_6sl. So I can try some compiled files if I know which are necessary to set the WallpaperService running

Categories

Resources