Bug 18185 - FullPath to custom component from preferences xml is causing Error Inflating
Summary: FullPath to custom component from preferences xml is causing Error Inflating
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: 4.12.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-03-05 09:13 UTC by T.Zenkner
Modified: 2014-10-22 04:45 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Example solution (6.84 MB, application/octet-stream)
2014-03-05 12:43 UTC, T.Zenkner
Details

Description T.Zenkner 2014-03-05 09:13:48 UTC
I was trying to use custom SeekBarDialogPreference in my application settings.

But when I was referencing full project path to SeekBarDialogPreference, I was getting "Error Inflating" on this class and java ClassNotFoundException.

I decompiled the apk and i found that My.Project.SeekBarDialogPreference is translated to packages:

my.project.SeekBarDialogPreference.

But in preferences xml is still original path:
My.Project.SeekBarDialogPreference
Comment 1 T.Zenkner 2014-03-05 12:43:28 UTC
Created attachment 6230 [details]
Example solution

Here are 2 xmls
1. called working.xml (where is the full path in lower case)
2. called notworking.xml (where is the full path original)
Comment 2 Udham Singh 2014-03-06 05:10:45 UTC
I have checked this issue with attached sample application and able to reproduce this.

screencast : http://screencast.com/t/srkiUMSF7aK

Environment Info:

Windows 8.1
VS 2013
Xamarin.Android 4.12.00028
Comment 3 Udham Singh 2014-03-06 05:16:46 UTC
Please refer the application output log : 
https://gist.github.com/saurabh360/fd2a5c851976241c1846

Note You need to log in before you can comment on or make changes to this bug.